IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Building bot on linux
Atreyu
post Dec 17 2005, 03:35 AM
Post #1


Newbie
*

Group: Members
Posts: 7
Joined: 7-December 05
From: SPA!N
Member No.: 660



hi,
i have been playing with gcc and the results are attached for this try:

fantasia:/opt/rcbot_beta/dlls# make -fmakefile_linux_mm 2>error.log
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DRCBOT_META_BUILD -march=i486 -O2 -w -I../engine -I../common -I../pm_shared -c bits.cpp -o bits.o


I slightly have modified makefile for better compatibility:


MOD_DIR = /opt/dev

CPP = g++

BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -DRCBOT_META_BUILD

CPPFLAGS = ${BASEFLAGS} -march=i486 -O2 -w -I../engine -I../common -I../pm_shared

OBJ = bits.o bot.o bot_client.o bot_commands.o bot_ga.o bot_menu.o \
bot_navigate.o bot_nn.o bot_rep.o \
bot_visibles.o bot_weapons.o client.o dir.o dll.o engine.o ga.o globals.o h_export.o linkfunc.o megahal.o \
netmessages.o perceptron.o rcbot_meta_api.o util.o waypoint.o

rcbot_mm_i486.so: ${OBJ}
${CPP} -fPIC -shared -o $@ ${OBJ} -ldl -lm
cp -f rcbot_mm_i486.so ${MOD_DIR}/dlls

clean:
-rm -f *.o
-rm -f *.so

%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@

%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@


GCC version:

fantasia:/opt/rcbot_beta/dlls# gcc -v
Leyendo especificaciones de /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configurado con: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Modelo de hilos: posix
gcc versión 3.3.5 (Debian 1:3.3.5-13)


Any idea? unsure.gif

Thanks smile.gif


Attached File(s)
Attached File  error.log ( 36.46k ) Number of downloads: 20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Syrka
post Dec 18 2005, 10:04 PM
Post #2


Newbie
*

Group: Members
Posts: 4
Joined: 8-November 05
Member No.: 644



You are my hero, if you get a working Linux binary rolleyes.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Dec 18 2005, 10:18 PM
Post #3


Admin
*****

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



it says in the linux error log, exactly whats wrong with everything. I cant change the code.. i'm away for more than a week. and I can't be bothered too!! better getting someone who knows c++ well and can build on linux to do it
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: 8th December 2019 - 04:02 AM