Postado Julho 21, 2020 4 anos Tenho uma source OTX aparece um erro que eu não consegui identificar para resolver, na ultima etapa da compilagem. o erro é esse Spoiler root@Client4:/home/otserver/sources# sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make clean && make -j 2 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=none autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force --warnings=none configure.ac:156: error: possibly undefined macro: AM_PATH_XML2 If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /usr/bin/autoconf failed with exit status: 1 root@Client4:/home/otserver/sources# ./configure --enable-server-diag --enable-mysql --enable-root-permission checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/otserver/sources/missing: Unknown `--is-lightweight' option Try `/home/otserver/sources/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for stdbool.h that conforms to C99... no checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for ptrdiff_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for ceil... yes checking for floor... yes checking for ftime... yes checking for gethostbyname... yes checking for gethostname... yes checking for memset... yes checking for pow... yes checking for sqrt... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes ./configure: line 4988: syntax error near unexpected token `2.6.5,' ./configure: line 4988: `AM_PATH_XML2(2.6.5, , as_fn_error $? "You need libxml2 >= 2.6.5 to compile otxserver!" "$LINENO" 5)' root@Client4:/home/otserver/sources# make clean rm -f obj/actions.o obj/cylinder.o obj/inputbox.o obj/monster.o obj/protocol.o obj/status.o obj/admin.o obj/database.o obj/databasemanager.o obj/ioban.o obj/monsters.o obj/protocolgame.o obj/talkaction.o obj/allocator.o obj/depot.o obj/ioguild.o obj/movement.o obj/protocolhttp.o obj/teleport.o obj/baseevents.o obj/dispatcher.o obj/iologindata.o obj/networkmessage.o obj/protocollogin.o obj/textlogger.o obj/beds.o obj/exception.o obj/iomap.o obj/npc.o obj/protocolold.o obj/thing.o obj/chat.o obj/fileloader.o obj/iomapserialize.o obj/otpch.o obj/quests.o obj/tile.o obj/combat.o obj/game.o obj/itemattributes.o obj/otserv.o obj/raids.o obj/tools.o obj/condition.o obj/gameservers.o obj/item.o obj/outfit.o obj/scheduler.o obj/trashholder.o obj/configmanager.o obj/globalevent.o obj/items.o obj/outputmessage.o obj/scriptmanager.o obj/vocation.o obj/connection.o obj/group.o obj/luascript.o obj/party.o obj/server.o obj/waitlist.o obj/container.o obj/gui.o obj/mailbox.o obj/playerbox.o obj/spawn.o obj/weapons.o obj/creature.o obj/house.o obj/manager.o obj/player.o obj/spectators.o obj/creatureevent.o obj/housetile.o obj/map.o obj/position.o obj/spells.o theotxserver root@Client4:/home/otserver/sources# make -j 2 g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/actions.o actions.cpp g++ -c -march=native -mtune=native -I"." -I"/usr/include/lua5.1" -I"/usr/include/mysql" -I"/usr/include/libxml2" -DBOOST_DISABLE_ASSERTS -DNDEBUG -Werror -Wall -Ofast -g -std=c++11 -pthread -lpthread -fno-strict-aliasing -o obj/cylinder.o cylinder.cpp In file included from actions.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. In file included from cylinder.cpp:17:0: otpch.h:29:30: fatal error: libxml/xmlmemory.h: No such file or directory #include <libxml/xmlmemory.h> ^ compilation terminated. Makefile:40: recipe for target 'obj/actions.o' failed make: *** [obj/actions.o] Error 1 make: *** Waiting for unfinished jobs.... Makefile:40: recipe for target 'obj/cylinder.o' failed make: *** [obj/cylinder.o] Error 1
Postado Julho 26, 2020 4 anos Quando fui compilar o meu, tb em debian, tive dificuldades, até q achei esse codigo aqui q dá certo, por mais q nao seja o otx, as vezes te ajuda né: sudo apt-get install git cmake build-essential libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev libcrypto++-dev liblua5.2-dev libluajit-5.1-dev libmariadb-dev-compat libpugixml-dev cd /home/otbr mkdir build && cd build cmake .. make -j`nproc` ls mv otbr /home/otbr cd .. MEUS POSTS: [Source] Sistema Anti-PVP ~~ PvP on/off por comando [CreatureScript] Sugestão de balanceamento ~~ Uma pequena sugestão de balanceamento das vocations ? [NPC] Daily Task ~~ Daily Task com 4 opções diarias Contador de Monstros ~~Sistema pra contar quantos monstros tem no sv, e uma melhoria pro sistema de Daily Tasks Calma, por enquanto é só, e em breve mais coisas ;} SE AJUDEI, DÁ O REP+, ESQUECE NÃO, VLW BB
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.