AMD Athlon64 Compile

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Post Reply
User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

AMD Athlon64 Compile

Post by Scatman » Mon Jan 30, 2012 10:05 pm

I recently bought a new Linux box (Debian AMD64) and I just tried compiling World on it and holy crap, major problems. Initially the problem was "CPU you selected does not support x86-64 instruction set". After fixing that there were numerous 64bit problems I found that didn't let me finish the compiling process. So I spent a bunch of time tonight getting World to compile for this architecture. The new Makefile is called makefile.a64 and should only be used if you're running AMD Ahtlon64.

I made the decision to create a separate Makefile for this, so we can leave the Linux 32bit version alone. If you are running AMD64 and want to compile you have one of two options:

Keep the files the same but issue a different make command (recommended if you commit to SVN in order to avoid conflicts)

Code: Select all

make -f makefile.a64
Rename the original Makefile to something else and rename the AMD Makefile to makefile.

Code: Select all

mv makefile makefile.orig
mv makefile.a64 makefile
make
Additional Notes
The new makefile uses a utility called mysql_config to determine where your MySQL includes and libraries are so you can keep them installed where ever you want and we don't have to include static directories in the Makefile. If you do not have mysql_config you'll need the mysqlclient developer library. It's very easy to install:

Debian (Ubuntu, etc):

Code: Select all

sudo apt-get install libmysqlclient-dev
Redhat, CentOS, etc (it should be something like this - I don't have one of these distros so I'm not sure):

Code: Select all

yum install libmysqlclient-dev
yum install mysql-devel.x86_64
Please let me know if anyone runs into any issues.

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: AMD Athlon64 Compile

Post by John Adams » Tue Jan 31, 2012 8:39 am

Excellent work, Scatman! Thanks for giving us an "official" 64-bit option, finally :)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests