Compiling EQ2Worldx64 with VS2008

Tutorials on setting up a server, configuring your client, and connecting to an EQ2Emulator server.
Only moderators can start new topics here
Forum rules
Most information about EQ2Emulator and Tutorials can be found at the Project Wiki. Look there for the most current information.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Compiling EQ2Worldx64 with VS2008

Post by John Adams » Sat Apr 03, 2010 1:54 pm

After figuring out how to get x64 to compile (with the help of LE and a secret stash of x64 libraries ;)) here is my brain dump.

First, download and extract MySQL 5.1.45-win64 somewhere on your hard drive. You need this for the dependencies described later (btw, you can just go to dev.mysql.com and get any current release version of MySQL x64, this one is just the one I use).

DOWNLOAD: http://dev.mysql.com/get/Downloads/MySQ ... ql.he.net/

Extract the zip file somewhere - here is my example folder structure (can be anything you wish):
mysqlx64.jpg
With the EQ2World sources checked out, open World.sln with Visual Studio 2008 (should work the same for Express as Pro)

First, click on Tools / Options:
tools_options.jpg
and select VC++ Directories on the left, and Platform = x64, and Show Directories For "Includes" on the right.
includes64.jpg
Notice how I added the full path to the same place I extracted the MySQLX64 files to, the "include" directory.

On the same Options screen, now choose References (still on the x64 platform):
reference64.jpg
Again, the full path as shown.

Finally, select Libraries from the same Options screen:
library64.jpg

Once these 3 options are added, click OK and save your settings. One more thing to verify before we compile.

Right-Click on World in the Solution Explorer, and select Properties:
world_options.jpg

Expand Configuration Properties / Linker and select Input.

Switch the Configuration selector in the top left to Release, and the Platform to x64. You should not have to make any changes here, you are merely verifying your project file is setup properly (and it should be).

You should see some LIBs listed that are specifically for x64 in the Additional Dependencies box:
release.jpg
Switch the Configuration selector in the top left to Debug, and verify the same for those Additional Dependencies:
debug.jpg
Without those files, x64 will fail to compile - and this is where we were stuck for the longest time, trying to figure out how to compile our own LIBs. But LE came to the rescue, and has provided us with a set of pre-compiled libraries we can use.


Download this LIB archive, and unpack it to the Source/LUA folder in your EQ2World source files.

DOWNLOAD: http://eq2.mmoemulators.com/files/EQ2World_x64Libs.zip (we'll get these onto the public SVN asap)
Libs.jpg

Press F7, and you should now get x64 Debug or Release binaries built of the latest SVN code.

I would like to see our devs get this setup and start batch-building both x86 and x64 release binaries to commit to SVN whenever there is a code change.
You do not have the required permissions to view the files attached to this post.
John Adams
EQ2Emulator - Project Ghost
"Everything should work now, except the stuff that doesn't" ~Xinux

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: Compiling EQ2Worldx64 with VS2008

Post by John Adams » Sat Apr 03, 2010 1:57 pm

Let me also add, you can compile x64 binaries even if you only have an x86 machine - one of the options when installing your VS2008 is to include x64 compile ability. Re-run your installer to see the options under VC++.

Locked

Who is online

Users browsing this forum: No registered users and 1 guest