Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ Linux _ Linux Support?

Posted by: djdomi Jan 6 2006, 05:56 PM

Hi

I would ask about the linux support, because im setup atm a server and want run as alien and not only play myself as marine vs bot aliens

will be there a release or will it stopped and only now for win?


thx

Posted by: Cheeseh Jan 6 2006, 07:30 PM

discussed many times, there are only windows versions of the latest beta at the moment, I dont have access to a linux machine right now.

Posted by: djdomi Jan 30 2006, 04:11 PM

and if i give you access to a shell, would it help?

Posted by: Cheeseh Jan 30 2006, 05:52 PM

I already have access to a shell, just I don't know if it has the correct C libraries and don't know what build it is either, since I haven't tried it yet.

It is advised for linux users to download the source and build their own to be compatible with their own build of linux, but some have said there exist errors in building with linux right now, I'll deal with those sometime unless those that build it themselves can correct them.

Posted by: billcat Feb 23 2006, 11:49 PM

ok,

I downloaded the source on my slackware hlds box. gcc version 3.3.6 and egcs-2.91.66

as I try to compile I get the following errors:

make -fmakefile_linux_sa
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -mcpu=i486 -O2 -w -I. -I../engine -I../common -I../pm_shared -fpermissive -c bot.cpp -o bot.o
In file included from bot.h:60,
from bot.cpp:59:
generic_class.h: In member function `T* dataStack<T>::ChoosePointerFromStack()
[with T = weapon_preset_t]':
bot_weapons.h:378: instantiated from here
generic_class.h:717: error: `BugMessage' undeclared (first use this function)
generic_class.h:717: error: (Each undeclared identifier is reported only once
for each function it appears in.)
In file included from bot.cpp:59:
bot.h: At global scope:
bot.h:116: error: `void BugMessage(edict_t*, char*, ...)' used prior to
declaration
make: *** [bot.o] Error 1

I'm willing to download any other sources needed to get this built. Since it looks like whichbot project is inactive I'm more than willing to do whatever it takes to get this built and help support the linux builds if needed.

Thanks,

-Billcat

Posted by: Cheeseh Feb 24 2006, 11:21 AM

I'd just add another prototype for BugMessage in generic_class.h (prototype found in bot.h : void BugMessage (edict_t *pEntity, char *fmt, ...) )

and move the Weapon Preset functions to the bot_weapons.cpp

Posted by: billcat Feb 24 2006, 05:42 PM

since I didn't really require debug messages I commented out everything related to bugmessage. This cleared these build messages.

now I get the following:

root@suitcase:/raid/transfer/rcbot/dlls# make -fmakefile_linux_sa
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -mcpu=i486 -O2 -w -I. -I../engine -I../common -I../pm_shared -fpermissive -c bot.cpp -o bot.o
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -mcpu=i486 -O2 -w -I. -I../engine -I../common -I../pm_shared -fpermissive -c bot_client.cpp -o bot_client.o
generic_class.h: In member function `void
dataUnconstArray<T>::RemoveByPointer(T*) [with T = TSObjective]':
bot_client.cpp:409: instantiated from here
generic_class.h:976: error: no matching function for call to `
std::vector<TSObjective, std::allocator<TSObjective> >::erase(TSObjective*&)
'
/usr/local/include/c++/3.3.6/bits/vector.tcc:105: error: candidates are:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >) [with _Tp = TSObjective, _Alloc =
std::allocator<TSObjective>]
/usr/local/include/c++/3.3.6/bits/vector.tcc:117: error:
__gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >, __gnu_cxx::__normal_iterator<_Tp*,
std::vector<_Tp, _Alloc> >) [with _Tp = TSObjective, _Alloc =
std::allocator<TSObjective>]
make: *** [bot_client.o] Error 1


I saw something about getting a differing vector file, unsure what needs to be done here. It seems like the syntax of the std::vector call doesn't match quite right, but I'm guessing..

Posted by: Cheeseh Feb 25 2006, 11:57 AM

can't remember what linux uses for the STL stuff, might need to do some 'research' on your own right now before i have a look at it.. it looks as though its complaining for that particular vector only though, perhaps moving the stuff to the CPP file and decalre them only in the H file, it is a bad code design I have in that bot (I do it much better in rcbot2, all declarations in H files, all code in CPP files except inline functions)