Ubunto 7 Errors while compiling while following Wiki walkthr

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

Moderator: Team Members

Post Reply
intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Ubunto 7 Errors while compiling while following Wiki walkthr

Post by intodesi » Thu Feb 07, 2008 9:14 am

Ok this is long, I followed Ubunto compilation instructions to a Q all the way down to the make command this is what i get after that.

Code: Select all

g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/timer.cpp -o ../common/timer.o
../common/timer.cpp:191:2: warning: no newline at end of file
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/packet_dump.cpp -o ../common/packet_dump.o
../common/opcodemgr.h:48: warning: ‘class OpcodeManager::OpcodeSetStrategy’ has virtual functions but non-virtual destructor
../common/opcodemgr.h:109: warning: ‘class RegularOpcodeManager::NormalMemStrategy’ has virtual functions but non-virtual destructor
../common/../common/servertalk.h: In member function ‘std::string TableQuery::GetQueriesString()’:
../common/../common/servertalk.h:381: warning: comparison between signed and unsigned integer expressions
../common/../common/servertalk.h: In destructor ‘TableDataQuery::~TableDataQuery()’:
../common/../common/servertalk.h:460: warning: comparison between signed and unsigned integer expressions
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include races.cpp -o races.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/unix.cpp -o ../common/unix.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/Mutex.cpp -o ../common/Mutex.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/MiscFunctions.cpp -o ../common/MiscFunctions.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/emu_opcodes.cpp -o ../common/emu_opcodes.o
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual  -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include Commands.cpp -o Commands.o
In file included from Commands.cpp:24:
WorldDatabase.h:27:19: error: mysql.h: No such file or directory
../common/../World/SpawnLists.h: In member function ‘void SpawnCommandList::SetCommands(SpawnCommandList*)’:
../common/../World/SpawnLists.h:56: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/../World/SpawnLists.h:56: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/DataBuffer.h: In member function ‘void DataBuffer::AddDataCommandList(SpawnCommandList*)’:
../common/DataBuffer.h:231: warning: comparison between signed and unsigned integer expressions
../common/opcodemgr.h: At global scope:
../common/opcodemgr.h:48: warning: ‘class OpcodeManager::OpcodeSetStrategy’ has virtual functions but non-virtual destructor
../common/opcodemgr.h:109: warning: ‘class RegularOpcodeManager::NormalMemStrategy’ has virtual functions but non-virtual destructor
../common/servertalk.h: In member function ‘std::string TableQuery::GetQueriesString()’:
../common/servertalk.h:381: warning: comparison between signed and unsigned integer expressions
../common/servertalk.h: In destructor ‘TableDataQuery::~TableDataQuery()’:
../common/servertalk.h:460: warning: comparison between signed and unsigned integer expressions
../common/dbcore.h: At global scope:
../common/dbcore.h:53: error: ‘MYSQL_RES’ has not been declared
../common/dbcore.h:65: error: ‘MYSQL’ does not name a type
../common/database.h:83: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:83: error: expected ‘;’ before ‘*’ token
../common/database.h:84: error: expected `;' before ‘MYSQL_RES’
../common/database.h:84: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:84: error: expected ‘;’ before ‘*’ token
../common/database.h:100: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:100: error: expected ‘;’ before ‘*’ token
../common/database.h:106: error: ‘MYSQL_ERRMSG_SIZE’ was not declared in this scope
../common/database.h:107: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
../common/database.h:107: error: expected ‘;’ before ‘*’ token
../common/database.h:112: error: ISO C++ forbids declaration of ‘MYSQL_ROW’ with no type
../common/database.h:112: error: expected ‘;’ before ‘*’ token
../common/database.h:113: error: ‘MYSQL’ does not name a type
../common/database.h: In constructor ‘Query::Query()’:
../common/database.h:61: error: ‘result’ was not declared in this scope
../common/database.h:65: error: ‘row’ was not declared in this scope
../common/database.h: In destructor ‘Query::~Query()’:
../common/database.h:72: error: ‘result’ was not declared in this scope
../common/database.h:73: error: ‘mysql_free_result’ was not declared in this scope
../common/database.h:74: error: ‘result’ was not declared in this scope
../common/database.h: In member function ‘char* Query::GetError()’:
../common/database.h:85: error: ‘errbuf’ was not declared in this scope
../common/database.h: In member function ‘char* Query::GetQuery()’:
../common/database.h:87: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/database.h: In member function ‘char* Query::GetField(int8)’:
../common/database.h:89: error: ‘row’ was not declared in this scope
../common/database.h:89: error: ‘result’ was not declared in this scope
../common/database.h:90: error: ‘mysql_fetch_row’ was not declared in this scope
../common/database.h:91: error: ‘row’ was not declared in this scope
../common/database.h:91: error: ‘result’ was not declared in this scope
../common/database.h:91: error: ‘mysql_num_fields’ was not declared in this scope
../common/database.h: In member function ‘void Query::NextRow()’:
../common/database.h:97: error: ‘result’ was not declared in this scope
../common/database.h:98: error: ‘row’ was not declared in this scope
../common/database.h:98: error: ‘mysql_fetch_row’ was not declared in this scope
net.h: In member function ‘char* ZoneAuthRequest::GetCharacterName()’:
net.h:104: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/PacketStruct.h: In member function ‘void PacketStruct::setArrayAddToPacketByName(char*, bool, int16, int16)’:
../common/PacketStruct.h:159: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
../common/PacketStruct.h: In member function ‘char* PacketStruct::GetName()’:
../common/PacketStruct.h:352: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
zoneserver.h: At global scope:
zoneserver.h:66: warning: ‘class ZoneServer’ has virtual functions but non-virtual destructor
WorldDatabase.h:116: error: ‘MYSQL_ROW’ has not been declared
Commands.cpp: In member function ‘void Commands::Process(int32, EQ2_16BitString*, Client*)’:
Commands.cpp:348: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:367: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:369: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:370: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:371: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:372: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:381: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:384: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:385: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:386: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:427: warning: comparison between signed and unsigned integer expressions
Commands.cpp:442: warning: comparison between signed and unsigned integer expressions
Commands.cpp:466: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:473: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:481: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:488: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:496: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:503: warning: cast from type ‘const char*’ to type ‘char*’ casts away constness
Commands.cpp:732: warning: large integer implicitly truncated to unsigned type
Commands.cpp:1000: warning: large integer implicitly truncated to unsigned type
Commands.cpp:1069: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1071: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1094: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1095: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1098: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1138: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1140: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1156: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1159: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1161: warning: deprecated conversion from string constant to ‘char*’'
Commands.cpp:1163: warning: deprecated conversion from string constant to ‘char*’'
Spawn.h: In member function ‘void Spawn::Set(Field*, Value) [with Field = sint16, Value = float]’:
Spawn.h:241:   instantiated from ‘void Spawn::SetPos(Field*, Value, bool) [with Field = sint16, Value = float]’
Spawn.h:310:   instantiated from here
Spawn.h:230: warning: converting to ‘short int’ from ‘float’
make: *** [Commands.o] Error 1
Not sure if I messed this up, or if there is a problem, any help would be appreciated

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Thu Feb 07, 2008 10:14 am

WorldDatabase.h:27:19: error: mysql.h: No such file or directory
You dont have mysql development packages properly installed.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Thu Feb 07, 2008 11:30 am

ty :)

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Thu Feb 07, 2008 12:22 pm

I did this

Code: Select all

sudo apt-get install mysql-server build-essential subversion
get this

Code: Select all

Building dependency tree       
Reading state information... Done
mysql-server is already the newest version.
build-essential is already the newest version.
subversion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
what am I missing with it? really a noob to linux, so forgive me.
[/code]

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Thu Feb 07, 2008 1:10 pm

I've never used apt-get, but I believe the package you want to install is mysql-devel if your distro comes with it. Otherwise, just download the source from mysql.com directly.

Andrew
Retired
Posts: 71
Joined: Fri Dec 14, 2007 8:33 am
Location: England
Contact:

Post by Andrew » Thu Feb 07, 2008 10:12 pm

Code: Select all

sudo apt-get install libmysqlclient15-dev

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Feb 08, 2008 12:08 am

Thank you Andrew, exactly what ive been looking for but unable to find.. i know, google is your friend
http://gameinfo.castus-militis.com
but all i could find were the outdated apt-gets for that lib.
Thanks again.. hope this works now

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Feb 08, 2008 1:39 am

Ok it compiled, now when i try and run it, i get the updates but at the end it tells me failed to open port 9000
its forwarded in my router on both udp and tcp and i guess stock ubuntu has no ports blocked, no firewall..
So noy sure why Port 9000 wont ope

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Feb 08, 2008 2:17 am

Scratch above question.. changed port to 9100, works fine :)
This is cool.. now i need to update my real client...
What Can someone to to contribute that isnt very adept at coding, db's, etc? been playing eq2 about three years, well someone let me know.. would like to help with this project.

Yeorwned
Posts: 4
Joined: Fri Feb 08, 2008 9:08 am
Location: 127.0.0.1

Post by Yeorwned » Fri Feb 08, 2008 9:17 am

Quality Assurance always comes in handy. Get in your server and try to break it and report compiled error information. Packet collectors used to be very handy...

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Feb 08, 2008 10:53 am

Breakin is something I can do :P

Andrew
Retired
Posts: 71
Joined: Fri Dec 14, 2007 8:33 am
Location: England
Contact:

Post by Andrew » Fri Feb 08, 2008 5:10 pm

intodesi wrote:What Can someone to to contribute that isnt very adept at coding, db's, etc? been playing eq2 about three years, well someone let me know.. would like to help with this project.
Documentation, Translation, Researching how EQ2 works (xp, mobs, etc)

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Mon Feb 11, 2008 1:53 am

what does this mean

Code: Select all

sudo apt-get install libmysqlclient15-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package libmysqlclient15-dev
trying to install the mysql dev
it worked before but i reinstalled ubuntu and now i am getting this.
The IRS, its not an agency, its a service. They do it because they love us.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests