Compiled on Ubuntu Today from Subversion

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

Moderator: Team Members

Post Reply
jaxl
Posts: 8
Joined: Tue Dec 23, 2008 8:54 pm

Compiled on Ubuntu Today from Subversion

Post by jaxl » Tue Dec 23, 2008 9:06 pm

I'm trying to figure out atm why its not auto populating my database with the tables and I also don't quite have my head wrapped around this login server setup but atleast its complied now..


Anyays, I Had to hack the code a little bit..

1. Since I was on an AMD machine, I had to edit the Makefile and remove -DARCH=i686. I actually started to rebuild the make system with Autoconf but ran out of time.

2. Tons of warnings about casting from const char* to char* with GCC 4.2.3 (its deprectaed now)

3. I updated the wiki to include zlib in the apt-get pre'reqs. I know most have this but its not just called zlib (stupid ubuntu) but rather zlib1g..

4. Had to patch a few files just to get past GCC complaining about loss of precision errors:

===================================================================
--- Source/World/client.cpp (revision 180)
+++ Source/World/client.cpp (working copy)
@@ -1336,7 +1336,7 @@
MClients.lock();
for(client_iter=client_list.begin(); client_list.size() > 0 && client_iter!=client_list.end(); client_iter++){
client = *client_iter;
- LogFile->write(EQEMuLog::Debug, "World: ClientList[0x%08x]::FindByAccountID(0x%08x) client[0x%08x]", (int32) this, account_id, client);
+ //LogFile->write(EQEMuLog::Debug, "World: ClientList[0x%08x]::FindByAccountID(0x%08x) client[0x%08x]", (int32) this, account_id, client);
if (client->GetAccountID() == account_id) {
ret = client;
break;


===================================================================
--- Source/common/CRC16.cpp (revision 180)
+++ Source/common/CRC16.cpp (working copy)
@@ -308,7 +308,7 @@
ecx ^= eax; //xor ecx, eax
ecx &= 0xFF; //and ecx, 0FFh
esi = IntArray[ecx]; //mov esi, dword_0_10115D38[ecx*4]
- ecx = (int) buf; //mov ecx, [esp+4+arg_0]
+ ecx = (unsigned long) buf; //mov ecx, [esp+4+arg_0]
eax = eax >> 8; //sar eax, 8
eax &= 0x00FFFFFF; //and eax, 0FFFFFFh
eax ^= esi; //xor eax, esi

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests