PDA

View Full Version : trouble compiling bots ( zone ) on ubuntu 10.4 server


patyrn2k1
06-28-2010, 08:21 PM
Hello - I'm having an issue compiling bots, it's probably something simple, but I'm not sure what I'm doing wrong, I can compile without bots without a problem ( version 1579 I think, just downloaded it today )

I tried doing the following:

Linux
---------------
1. Edit your "makefile" in .\zone and add "-DBOTS" to DFLAGS.
2. Edit your "makefile.common" file in .\zone and add both "bot.o" and "botspellsai.o"
3. Edit your "makefile" in .\world and add "-DBOTS" to DFLAGS.
4. Compile it.

but I get the following errors:

make -C zone
make[1]: Entering directory `/home/quest/eqemulator/projecteqemu/zone'
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated -Wcomment -Wcast-align -O -g -march=i686 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE -DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386 -DBOTS -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE botspellsai.cpp -o botspellsai.o
In file included from botspellsai.cpp:3:
bot.h:46: warning: âtypedefâ was ignored in this declaration
bot.h:51: warning: âtypedefâ was ignored in this declaration
bot.h:57: warning: âtypedefâ was ignored in this declaration
botspellsai.cpp: In member function âvirtual bool Bot::AI_EngagedCastCheck()â:
botspellsai.cpp:585: warning: unused variable âbotLevelâ
botspellsai.cpp: In static member function âstatic Mob* Bot::GetFirstIncomingMobToMez(Bot*, BotSpell)â:
botspellsai.cpp:1055: error: no matching function for call to âEntityList::GetNPCList()â
entity.h:359: note: candidates are: void EntityList::GetNPCList(std::list<NPC*, std::allocator<NPC*> >&)
botspellsai.cpp:1055: error: no matching function for call to âEntityList::GetNPCList()â
entity.h:359: note: candidates are: void EntityList::GetNPCList(std::list<NPC*, std::allocator<NPC*> >&)
make[1]: *** [botspellsai.o] Error 1
make[1]: Leaving directory `/home/quest/eqemulator/projecteqemu/zone'
make: *** [all] Error 2
quest@everquest:~/eqemulator/projecteqemu$


any help would be much appreciated!

robinreg
06-28-2010, 09:05 PM
I had a compiling issue too. http://www.eqemulator.org/forums/showthread.php?t=31544

patyrn2k1
06-28-2010, 09:33 PM
Hi robinreg, thanks for your reply, I made the change suggested by Derision in your thread and it worked - compiled without further issues, thanks !