Ir para conteúdo
  • Cadastre-se

Suporte {Debian Compilagem} Estou com um erro na hora de compilar.


Posts Recomendados

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
 

 

 

Link para o post
Compartilhar em outros sites

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:

 

SE AJUDEI, DÁ O REP+, ESQUECE NÃO, VLW BB <3

Link para o post
Compartilhar em outros sites

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.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por braianlomas
      Como faço para corrigir esse problema para meu cliente, eu uso o tfs 0.3.6  
      Quero resolver esse problema que tenho no meu cliente, como e onde posso resolver?  
      Eu uso o tfs 0.3.6, não tenho as fontes do cliente, se você puder me dar eu vou amá-las para sempre  
       

       
    • Por A.Mokk
      Ola pessoal, estou tentando compilar o TFS 1.5 Downgrade para 8.60 atraves do MSVC 2022, ao tentar compilar da o seguinte erro:
       
       
      Fiz o download do MSVC, GitDash, TFS-SDK-3.2, e de varios boosts que tentei, ao fazer o seguinte procedimento no GitDash:
       
      Ao chegar em ./bootstrap-vcpkg.bat o GitDash nao consegue realizar o procedimento corretamente, alguem poderia me ajudar ?

      Tentei de diversas formas mas o mesmo erro sempre persiste, atualmente meu servidor utiliza TFS 0.4, consigo compilar sem nenhum problema no MSVC 2010, porem, as limitações do TFS 0.4 estão me fazendo precisar atualizar, se alguem souber como corrigir esses erros eu agradeço !

      Tutoriais utilizados :
      Compiling on Windows (vcpkg) · otland/forgottenserver Wiki · GitHub
      Compiling on Windows · otland/forgottenserver Wiki · GitHub
      Compilando TFS 1.3 com vídeo-aula - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!
      Compilar TFS 1.3 Vcpkg - Tutoriais Infraestrutura & Proteção - Tibia King - Tudo sobre Tibia, OTServ e Bots!
       
      O que acontece no Powershell:
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      Canary 2.3.6
      Qual o motivo deste tópico? 
      Queria fazer com que os players não pudessem mexer no aleta sio, pois, agora os mesmos estão conseguindo mexer nos itens
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por thunmin
      .Qual servidor ou website você utiliza como base? 
      canary para o cliente 13.16
      Qual o motivo deste tópico? 
      Não consigo encontrar onde ajusta
      to com o problema no 13.16  o exausted, por exemplo os kinas era pra combar exori, erori gran e exori min, porém não ta indo ta dando exausted o char ta soltando magia ou runa e não consegue usar as potions
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
    • Por Andersontatuador
      Olá galera da TK, me chamo Anderson estou procurando alguém profissional em otservs e site.
      Já tenho um servidor o site e o cliente preciso só de uma pessoal competente, que esteja empenhado a trabalhar,
      não quero nada de graça, pois nessa onda fui mais roubado do quer eu pagar um profissional.
      caso alguém se interesse entrar em contato comigo através do whatsapp
      82 9 9304-9462
       
      Está surgindo algum erro? Se sim coloque-o aqui. 
       
      Você tem o código disponível? Se tiver publique-o aqui: 
         
      Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 
       
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo