Help - Search - Members - Calendar
Full Version: Linux Support?
RCBot Forums > RCBot > Linux
djdomi
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
Cheeseh
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.
djdomi
and if i give you access to a shell, would it help?
Cheeseh
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.
billcat
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
Cheeseh
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
billcat
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..
Cheeseh
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)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2020 Invision Power Services, Inc.