Compile 0.3.6 On linux?
Ok, call me dumb, but I can't find any way to make EQEmu on linux. there seems to be no makefile or anything?
Help? |
bash-2.04$ ls -alR * |grep makefile
-rw-rw-rw- 1 fhc fhc 681 Aug 21 20:54 makefile -rw-rw-rw- 1 fhc fhc 1031 Aug 21 20:56 makefile bash-2.04$ ls -lah ./zone/makefile -rw-rw-rw- 1 fhc fhc 1.0k Aug 21 20:56 ./zone/makefile bash-2.04$ ls -lah ./world/makefile -rw-rw-rw- 1 fhc fhc 681 Aug 21 20:54 ./world/makefile bash-2.04$ |
Ok, I'm dumb.. Tottaly missed it.. Must be too used to seeing it in root DIR and with 'M' insted of 'm'
My Bad.. Thanks, Jason |
Too long looking at a bash prompt makes you think 'make' and 'Make' are two completely different words...
|
What flavor and version of Linux have you gotten this to compile on? I maybe be missing some needed library files, so prob just me, just wanted to know if people are using Redhat or Slakware etc.
Thanks. |
I compiled earlier versions on RedHat and Gentoo, and never had any problems...
It doesnt require much, pretty much just the mysql libraries... |
actually I was missing some pretty standard cpp files LOL
Redhat 7.3 myself |
I'm having a problem when trying to compile on Redhat 7.2. I'll post a little clip from the error I'm getting when compiling world, if it's too small let me know and I'll post the whole long messy thing when I get home... there's a lot more to this. Most everything is an error related to the database.cpp file.
I'm using mysql 3.23 and gcc 3 if that helps. If you need more system information I'll post whatever you need. In file included from ../common/database.cpp:36: ../common/database.h:222: type specifier omitted for parameter `MYSQL_RES' ../common/database.h:222: parse error before `*' token ../common/database.h:225: 'MYSQL' is used as a type, but is not defined as a type. |
Issue the following command:
rpm -qa | grep 'sql' You should see: mysql-3.23.xxx mysql-devel-3.23.xxx Are you missing the development libraries for mysql? I'm running Gentoo Linux and was able to compile using gcc-2.9 and gcc-3.1, so I don't think your gcc version is an issue. |
Good catch. I forgot Redhat packaged the mysql development libraries seperately.
|
installed the sql dev stuff, made it further this time but got another error :(
(fyi doing the rpm -qa | grep 'sql' doesn't return anything yet I installed the server, client, and development packages of sql 3.23 via their rpm's) [root@dhcp-242-2 world]# make gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include /mysql ../common/database.cpp -o ../common/database.o `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. In file included from /usr/local/include/c++/3.2/backward/iostream.h:31, from ../common/database.cpp:19: /usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T his file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp les include substituting the <X> header for the <X.h> header for C++ includes, o r <sstream> instead of the deprecated header <strstream.h>. To disable this warn ing use -Wno-deprecated. In file included from ../common/database.h:39, from ../common/database.cpp:36: ../zone/message.h:7:3: warning: no newline at end of file ../common/database.cpp: In member function `bool Database::RunQuery(const char*, unsigned int, char*, MYSQL_RES**, int32*, int32*, bool)': ../common/database.cpp:310: warning: assignment of negative value `-1' to ` unsigned int' ../common/database.cpp:310: warning: argument of negative value `-1' to ` unsigned int' ../common/database.cpp: In member function `bool Database::LoadNPCTypes()': ../common/database.cpp:2014: warning: assignment to `int16' from `double' ../common/database.cpp:2014: warning: argument to `short unsigned int' from ` double' ../common/database.cpp:2995:2: warning: no newline at end of file gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include/mysql ../common/packet_dump.cpp -o ../common/packet_dump.o `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. In file included from /usr/local/include/c++/3.2/backward/iostream.h:31, from ../common/packet_dump.cpp:19: /usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. ../common/packet_dump.cpp: In function `void DumpPacketAscii(uchar*, unsigned int, unsigned int, unsigned int)': ../common/packet_dump.cpp:32: default argument given for parameter 3 of `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:27: after previous specification in `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:32: default argument given for parameter 4 of `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:27: after previous specification in `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp: In function `void DumpPacketHex(uchar*, unsigned int, unsigned int, unsigned int)': ../common/packet_dump.cpp:61: default argument given for parameter 3 of `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:28: after previous specification in `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:61: default argument given for parameter 4 of `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:28: after previous specification in `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:190:2: warning: no newline at end of file make: *** [../common/packet_dump.o] Error 1 [root@dhcp-242-2 world]# |
Hmmm... I'm not using RH, but perhaps
rpm -qa | grep 'SQL' would work? If you installed via rpms then that command will show it. If it shows nothing, then grab em off your CDROM and install them with rpm -Uvh mysql-3.x-foo.rom and rpm -Uvh mysql-devel-3.x.foo.rpm Other than that, you'll have to rely on the experts here. |
use
grep -i sql Tells grep to be case insensitive.. Did RH update 7.2 to gcc3.2? |
Thanks Trumpcard :)
[root@dhcp-242-2 world]# rpm -qa | grep -i sql MySQL-3.23.52-1 MySQL-devel-3.23.52-1 MySQL-client-3.23.52-1 [root@dhcp-242-2 world]# [root@dhcp-242-2 world]# rpm -qa | grep -i gcc gcc3-3.0.1-3 qt-gcc3-devel-2.3.2-1 libgcc-3.0.1-3 gcc3-c++-3.0.1-3 qt-gcc3-2.3.2-1 [root@dhcp-242-2 world]# that's what i have installed. here's the new error i'm getting [root@dhcp-242-2 world]# make gcc -c -g -m486 -O3 -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -I/usr/include /mysql ../common/packet_dump.cpp -o ../common/packet_dump.o `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. In file included from /usr/local/include/c++/3.2/backward/iostream.h:31, from ../common/packet_dump.cpp:19: /usr/local/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning T his file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examp les include substituting the <X> header for the <X.h> header for C++ includes, o r <sstream> instead of the deprecated header <strstream.h>. To disable this warn ing use -Wno-deprecated. ../common/packet_dump.cpp: In function `void DumpPacketAscii(uchar*, unsigned int, unsigned int, unsigned int)': ../common/packet_dump.cpp:32: default argument given for parameter 3 of `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:27: after previous specification in `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:32: default argument given for parameter 4 of `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:27: after previous specification in `void DumpPacketAscii(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp: In function `void DumpPacketHex(uchar*, unsigned int, unsigned int, unsigned int)': ../common/packet_dump.cpp:61: default argument given for parameter 3 of `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:28: after previous specification in `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:61: default argument given for parameter 4 of `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.h:28: after previous specification in `void DumpPacketHex(uchar*, unsigned int, unsigned int = 16, unsigned int = 0)' ../common/packet_dump.cpp:190:2: warning: no newline at end of file make: *** [../common/packet_dump.o] Error 1 |
i fixed that on ST, just change the function prototype to not set a default for #ifdef _LINUX_
|
forgive me if I sound stupid, but I didn't understand what you said Kath... did you post a hint as to how I can fix this or was it just something related? I'm not real experienced with digging through the .h and .cpp files so I'm not sure if I'm missing something or not.
|
Hmm... seems like when I compile there are data types being changed. int to float, float to double and so on....
Where is main()? |
All times are GMT -4. The time now is 11:29 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.