View Single Post
  #3  
Old 06-15-2019, 01:36 PM
phantomghost
Hill Giant
 
Join Date: May 2015
Posts: 126
Default

Here is a how to compile your own binaries, but in all honesty, I only know enough to get mine to work after referencing several posts... I actually spent hours getting errors because of PERL until I realized I just needed to re-install PERL (if you have a working server and you install a different version of PERL, your server will not work, until you re-compile your binaries successfull--- just be warned).

Here is how I got my Binaries, maybe someone who has more knowledge can explain further or fix any innaccurate statements I make... I just kept trying until I got it to work for me, so there may be something that can be done easier.

In order to compile your own binaries you need to install visual studios. https://visualstudio.microsoft.com/downloads/

Make a folder. I call mine Source#. # for me identifies which database I am building the binaries for. (I name my database PEQ1, PEQ2, etc.)

Now you will need GIT.
https://git-scm.com/downloads

Open the following website:
https://github.com/EQEmu/Server

You will need to copy the link (in a green box it says "Clone or Download"--- Copy this link.

Once installed, right click on your Source Folder and choose "git Bash here"
This will open up another window, type:

git clone https://github.com/EQEmu/Server.git
  • Notice the link after git clone is the link I copied from the github website.

Once this is complete, open the folder and you should see Source>Server >Dependencies

Open Dependencies folder and add them to this folder:
https://eqemu.github.io/
  • Download the 86 or 64 based on what your install was.
  • I had issues with PERL myself. I installed x64 PERL and everything else was x86 so it would always fail on the BUILD for Zone. I ended up re-installing PERL using 5.12.3 x86

In the Server Folder, I then create another folder named "Build" (you can use CMake to make this folder for you...)

Now download Cmake:
https://cmake.org/

Once installed, run CMake. In
"Where is the source code", navigate to your Server Folder... for example
C:\PEQ\Source\Server

"Where to build the binaries", Do the exact same thing but add /Build
C:/PEQ/Source/Server/Build

Now at the bottom left, Press Configure. Assuming no issues it should show all of the options to Generate.

Pretty much everything by default is checked, you will likely want to Check EQEMU_BUILD_LOGIN and if you want bots EQEMU_ENABLE_BOTS

Press Generate. This should

Now the portion you will need visual studios (fairly long download/install so you may want to start this first) I use visual studio 2017 (free community version) but currently the download is 2019 (I assume 2019 works--- but honestly not sure).
https://visualstudio.microsoft.com/downloads/

Once downloaded you may want to reference this post on here:
http://www.eqemulator.org/forums/showthread.php?t=35722

In your Source>Server>Build folder there will be a file : EQEmu.sln

Open this file and it will open Visual studios.

Typically, if no issues (this is where I originally had issues, I changed my Zone to use x64 instead of Win32, but I kept getting compile errors--- which is why I switched to perl5.12.3 x86) you should be able to just Build the binaries here:
Build Tab>Build Solution

After a few minutes, if all went well, you should see XX Successful, and hopefully 0 Unsuccessful. (You may see one skipped, under Build>Configuration Manager, Install was not checked by default).
  • If you have any Unsuccesful you will need to read the errors and attempt to correct them.

I used Debug and Win32 for my build. (You will need to match whatever you are compiling for x86 or x64. (Reference the post above).

About a week after my original compile, I had an error Debug Assertion error, I found a few posts regarding this error, but no solution. I fixed mine by Building the Solution in Release and then replacing just these files into my server. (I also had to debug my clients).

If you have to attempt the Build again, I would use Clean Solution first... or use Rebuild solution.

Assuming all is successful, under Source>Server>Build>Bin>Debug will be all of the files you need to copy/paste into your EqEmuServer folder (or whatever your actual server folder name is--- the one with t_start.bat etc.)

I'd suggest making a copy of all the original file, before replacing--- in the event something went wrong... but that is purely up to you.
Reply With Quote