IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Beta Source, Compiling for Linux
Lumpy
post Jul 1 2004, 02:00 AM
Post #1


Member
**

Group: Members
Posts: 10
Joined: 23-September 03
Member No.: 31



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

CODE
#include <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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jul 1 2004, 11:03 AM
Post #2


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



Don't try to build on linux.

I know it won't compile, I need to do more stuff for it to compile correctly.

If you don't know how to fix these errors, don't bother.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ghtadm
post Jul 8 2004, 10:41 PM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 8-July 04
Member No.: 345



I did a few simple, quick hacks to the code to make it compile on my linux machine. I may have, and probably did break something; but it seems to run fine for me.

The attached file is a gzipped patch for the current rcbot_src (1.36, i think. downloaded on 7/6/04). To apply the patch just goto the dlls directory and run:

CODE
patch -p2 < /path/to/rcbot-1.36-patch.diff


Then just edit makefile_linux_mm to your settings and compile as normal.



Attached File(s)
Attached File  rcbot_1.36_patch.diff.gz ( 32.59k ) Number of downloads: 384
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jul 9 2004, 12:00 AM
Post #4


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



I'll be trying to fix them upon next source upload, but I'd only build for linux upon a new release
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lumpy
post Jul 9 2004, 03:13 AM
Post #5


Member
**

Group: Members
Posts: 10
Joined: 23-September 03
Member No.: 31



This is incredible. It worked wonderfully. Thank you so very much.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 3rd November 2024 - 04:48 PM