problem compiling with bots on
ok i compiled just fine no problems from the latest source code.
turned on bots by doing like so zone/make.common changed Code:
../common/guild_base.o guild_mgr.o tasks.o Code:
../common/guild_base.o guild_mgr.o tasks.o botRaids.o botAI.o petAI.o changed Code:
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386 Code:
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386 -DEQBOTS Code:
gcc -o zone .obj/EQPacket.o .obj/EQStream.o .obj/EQStreamFactory.o .obj/CRC16.o ../common/timer.o ../common/packet_dump.o ../common/packet_functions.o ../common/unix.o ../common/packet_dump_file.o ../common/Mutex.o ../common/MiscFunctions.o zone.o entity.o mob.o client.o client_process.o npc.o net.o spawn2.o attack.o hate_list.o ../common/serverinfo.o ../common/moremath.o worldserver.o spells.o spawngroup.o loottables.o faction.o Map.o watermap.o PlayerCorpse.o petitions.o MobAI.o Object.o ../common/eqtime.o groups.o ../common/classes.o ../common/races.o ../common/TCPConnection.o forage.o ../common/crc32.o ../common/guilds.o ../common/md5.o ../common/dbcore.o ../common/dbasync.o zonedbasync.o parser.o embperl.o embparser.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/ptimer.o .obj/debug.o .obj/database.o .obj/Item.o .obj/misc.o tribute.o doors.o command.o beacon.o embxs.o AA.o trap.o client_packet.o bonuses.o trading.o spdat.o spell_effects.o aggro.o guild.o inventory.o client_mods.o tradeskills.o waypoints.o pets.o zone_profile.o effects.o perl_client.o perl_entity.o perl_mob.o perl_npc.o perl_PlayerCorpse.o perl_groups.o perl_raids.o questmgr.o client_logs.o perlparser.o ../common/rdtsc.o ../common/extprofile.o horse.o exp.o pathing.o fearpath.o special_attacks.o ../common/timeoutmgr.o ../common/Condition.o .obj/opcodemgr.o .obj/emu_opcodes.o ../common/SharedLibrary.o zoning.o titles.o perlpacket.o perl_perlpacket.o zonedb.o ../common/shareddb.o ../common/logsys.o .obj/rulesys.o ../common/logsys_eqemu.o ../common/EQEmuConfig.o ZoneConfig.o ../common/XMLParser.o ../common/tinyxml/tinystr.o ../common/tinyxml/tinyxml.o ../common/tinyxml/tinyxmlerror.o ../common/tinyxml/tinyxmlparser.o ../common/EQStreamProxy.o ../common/patches/patches.o ../common/patches/Client62.o ../common/patches/Titanium.o ../common/patches/Anniversary.o ../common/patches/SoF.o ../common/StructStrategy.o ../common/EQStreamIdent.o ../common/patches/Live.o zone_logsys.o ../common/BasePacket.o ../common/worldconn.o ../common/EmuTCPConnection.o ../common/EmuTCPServer.o ../common/TCPServer.o ../common/guild_base.o guild_mgr.o tasks.o raids.o botRaids.o botAI.o petAI.o -fpermissive -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 -DEQBOTS -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql `perl -MExtUtils::Embed -e ccopts` -rdynamic -L. -lstdc++ -ldl -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv `perl -MExtUtils::Embed -e ldopts` |
maybe this thread will have the info you need:
http://www.eqemulator.net/forums/showthread.php?t=27135 It does seem you've done those steps so it might be something else but double check those steps. The first error line might mean you're missing group.h or group.h isn't getting the EQBOTS define. |
i did that already all it said to do was what i posted
|
First, did you add -DEQBOTS to the zone/makefile or the main makefile? It should be in the zone/makefile.
Second, did you run 'make clean' before running 'make'? |
This post here, may be a problem for you. even if it's not a version thing.
I'm thinking maybe the .depend files, should not have been uploaded to the SVN . It appears to me .depend is what customizes the build to your kernel. In my case with my Linux, make clean sees there are already .depend files, and overlooks them (does not make its own), so it uses the dependencies to someone else's configuration. I've had my compiles crash because of this (in this case maybe bots are not included in the .depend files?). |
-DEQBOTS is needed for both zone and world now.
|
ok make clean no one ever told me i had to run that..
i did and now got a new error Code:
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -I../common/SocketLib -DFX -D_GNU_SOURCE -DINVERSEXY -DWORLD -DDEBUG=5 -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2 -DEQBOTS -DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE ../common/timer.cpp -o ../common/timer.o |
[CODE]../common/database.h:237: error: extra qualification
|
ok the line above messed up here is the right code
Code:
../common/database.h:237: error: extra qualification Database:: on member ‘GetBotItems’ and i says Code:
// 3: |
yeah, cut/paste error... delete Database::
I'll update it in my next submit to svn. I guess Visual Studio doesn't mark it as an error :( |
im not understanding what your saying i guess..
i opened /common/database.h and changed it to MYSQL_RES* GetBotItems(int32 botid); removeing Database:: i even tryed removeing the entire line and it sill gives the same error.. could you tel me what i should be doing? |
Unfortunately I'm little help when it comes to Linux, but removing Database:: from database.h should've eliminated your compile message: ../common/database.h:237: error: extra qualification Database:: on member ‘GetBotItems’
Those other messages are just warnings and shouldn't cause an error unless there's some special linux compile thing that says 'after x amount of warning == error' |
so it should read MYSQL_RES* GetBotItems(int32 botid); rather then MYSQL_RES* Database::GetBotItems(int32 botid); or remove the entire line? or what?
|
this is fixed in svn revision 401. please download the latest source for all the newest updated features and bug fixes. I removed Database::
|
that worked great i compiled and everything its showing on the list of servers and is running.. im having some firewall issues with ipcop but ill get them settled thanks for all the help..
|
All times are GMT -4. The time now is 02:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.