Attempting to compile the latest beta for linux.
Metamod Attempts:
CODE | make -f makefile_linux_mm g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DRCBOT_META_BUILD -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot.cpp -o bot.o In file included from osdep.h:48, from h_export_meta.h:40, from bot.cpp:53: log_meta.h:40:54: enginecallback.h: No such file or directory In file included from log_meta.h:41, from osdep.h:48, from h_export_meta.h:40, from bot.cpp:53: sdk_util.h:50:18: util.h: No such file or directory make: *** [bot.o] Error 1 |
The following is the line it chokes on from log_meta.h
CODE | #include <enginecallback.h> // ALERT, etc |
the line from sdk_util.h
I know nothing about programming, but <> seems to be valid so I don't know why it chokes. I noticed other includes use double quotes instead so I gave that a try just to see (possibly the incorrect thing to do, but had nothing to lose). It let's me get much farther and I end up with.
CODE | make -f makefile_linux_mm g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DRCBOT_META_BUILD -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot.cpp -o bot.o In file included from bot.cpp:59: bot.h:138: `FixedUnsigned16 (float, float)' was declared `extern' and later `static' sdk_util.h:104: previous declaration of `FixedUnsigned16 (float, float)' bot.h:139: `FixedSigned16 (float, float)' was declared `extern' and later `static' sdk_util.h:103: previous declaration of `FixedSigned16 (float, float)' make: *** [bot.o] Error 1 |
I get stuck at this point.
Stand Alone attempts:
CODE | make -f makefile_linux_sa g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot.cpp -o bot.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_client.cpp -o bot_client.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_commands.cpp -o bot_commands.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_menu.cpp -o bot_menu.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_navigate.cpp -o bot_navigate.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_rep.cpp -o bot_rep.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c bot_weapons.cpp -o bot_weapons.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c client.cpp -o client.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c dir.cpp -o dir.o g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -m486 -O2 -w -I../engine -I../common -I../pm_shared -c dll.cpp -o dll.o dll.cpp: In function `const char *GetGameDescription ()': dll.cpp:1122: `MB_OK' undeclared (first use this function) dll.cpp:1122: (Each undeclared identifier is reported only once for each function it appears in.) dll.cpp:1122: `MessageBox' undeclared (first use this function) dll.cpp:1123: `PostQuitMessage' undeclared (first use this function) make: *** [dll.o] Error 1 |
I'm guessing in this case a file isn't being referenced. I'm more used plug-ins which have COnfig.mak files which reference all the needed files. I noticed the makefile_linux_sa file has a list of obj files it expects to see. I have no idea if one is missing from the list, and if so which one it would be.
Hoping you may have some input that'll let me compile one of these. Preferably the metamod version. I'd love to get in on the action of rcbots that actually upgrade in NS:combat.
|