Ir para conteúdo
  • 0
Szmycu

Infraestrutura Compiling OTServBR-Global error Debian 11

Pergunta

Szmycu    0
Szmycu

Before asking your question, make sure you have read the section rules and guide below:

https://forums.otserv.com.br/index.php?/forums/topic/168583-regras-da-seção/

https://forums.otserv.com.br/index.php?/forums/topic/165121-como- Fazer-uma-pergunta-ou-o-grande-guia-do-usuário-com-dúvidas/

Note: do not delete this predefined form, fill it in correctly to post your topic!

In a few words, describe the base used. (Server name / Client name / Website name / etc.).

Base:

OTServBR-Global, Version: 12.64

What's your question?

Look how looks my error i followed up tutorial. and i got error while compiling

Im using Debian 11
I have followed this tutorial and get into trouble:
https://forums.otserv.com.br/index....vbr-global-nginx-mysql-opentibiabr-gesioraac/

After this:

make - j `nproc`

I have error like this how to fix?

Spoiler

[ 1%] Linking CXX executable ../bin/otbr /usr/bin/ld: /tmp/otbr.lDh92m.ltrans6.ltrans.o: in function `boost::filesystem::path::relative_path() const': <artificial>:(.text+0x2e0b84): undefined reference to `boost::filesystem::path::find_relative_path() const' /usr/bin/ld: /tmp/otbr.lDh92m.ltrans6.ltrans.o: in function `boost::filesystem::path::parent_path() const': <artificial>:(.text+0x2e0bf4): undefined reference to `boost::filesystem::path::find_parent_path_size() const' /usr/bin/ld: /tmp/otbr.lDh92m.ltrans6.ltrans.o: in function `Scripts::loadEventSchedulerScripts(std::__cxx11::basic _string<char, std::char_traits<char>, std::allocator<char> > const&)': <artificial>:(.text+0x2e158a): undefined reference to `boost::filesystem::path::extension_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e1605): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: /tmp/otbr.lDh92m.ltrans6.ltrans.o: in function `Scripts::loadScripts(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, bool)': <artificial>:(.text+0x2e1b6f): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e1c2c): undefined reference to `boost::filesystem::path::extension_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e1ca7): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e1d41): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e2016): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e2180): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: <artificial>:(.text+0x2e22ba): undefined reference to `boost::filesystem::path::filename_v3() const' /usr/bin/ld: /tmp/otbr.lDh92m.ltrans6.ltrans.o:<artificial>:(.text+0x2e2388): more undefined references to `boost:: filesystem::path::filename_v3() const' follow collect2: error: ld returned 1 exit status make[2]: *** [src/CMakeFiles/otbr.dir/build.make:1464: bin/otbr] Error 1 make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/otbr.dir/all] Error 2 make: *** [Makefile:91: all] Error 2


Do you have the code available? If you have, post it in the code box inside the spoiler below:

Spoiler

 

 

Do you have an image that can help with the problem? If so, attach it inside the spoiler below:

Spoiler

 

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

6 respostass a esta questão

Recommended Posts

  • 0
Majesty    1755
Majesty

The problem is because the server can't found libboost installed in vcpkg or is conflicting with external libboost.
Read and follow exactly the commands of the tutorial.

Follow the tutorial correctly or follow the wiki to compile otservbr-global, it's the same way: https://github.com/opentibiabr/otservbr-global-archived/wiki/Compiling-on-Ubuntu-or-Debian-GNU-Linux

PS: To compile
otservbr-global it's not the same way like tfs.

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Majesty    1755
Majesty

Here i compiled in Debian 11:

Spoiler

otservbr-global-debian11.png

So, the problem is not in the tutorial or in the compilation method.
Make sure you are using updated Debian 11 and packages before use it (sudo apt update && sudo apt upgrade).

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Szmycu    0
Szmycu

Could u give me exactly what commands did u used ? one after another. I will appreciate.

Believe me or not I wasted 5 days now to compile it on ubuntus or debians.

Its not possible u did like in this tutorial 

You had something to add or change .

I updated and installed libs.

 

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Majesty    1755
Majesty

The tutorial work, i read and followed it.
To compile the server I just used the same commands in the tutorial.

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Szmycu    0
Szmycu

1 Installing packages and updates https://youtu.be/NoI4EhzvPLo2

 

2 next installs and problem with cryptopp https://youtu.be/3Qv32kAVOEU

cyptopp solved by commands from CMakeLists.txt:

# CMAKE
# apt install build-essential git
# git clone https://github.com/Kitware/CMake/; cd CMake
# ./bootstrap && make && sudo make install

https://youtu.be/d6KspZvbe0k

 I made:

sudo cmake -DCMAKE_TOOLCHAIN_FILE=/home/mariankowalczysty/vcpkg/scripts/buildsystems/vcpkg.cmake ..

and it worked

https://youtu.be/KtvV1BEA3Gw

and still after compile

[100%] Linking CXX executable ../bin/otbr
/usr/bin/ld: /tmp/otbr.Lmu7M8.ltrans6.ltrans.o: in function `boost::filesystem::path::relative_path() const':
<artificial>:(.text+0x2e09f6): undefined reference to `boost::filesystem::path::find_relative_path() const'
/usr/bin/ld: /tmp/otbr.Lmu7M8.ltrans6.ltrans.o: in function `boost::filesystem::path::parent_path() const':
<artificial>:(.text+0x2e0a66): undefined reference to `boost::filesystem::path::find_parent_path_size() const'
/usr/bin/ld: /tmp/otbr.Lmu7M8.ltrans6.ltrans.o: in function `Scripts::loadEventSchedulerScripts(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
<artificial>:(.text+0x2e13fc): undefined reference to `boost::filesystem::path::extension_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1477): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: /tmp/otbr.Lmu7M8.ltrans6.ltrans.o: in function `Scripts::loadScripts(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, bool)':
<artificial>:(.text+0x2e19e1): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1a9e): undefined reference to `boost::filesystem::path::extension_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1b19): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1bb3): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1e88): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e1ff2): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: <artificial>:(.text+0x2e212c): undefined reference to `boost::filesystem::path::filename_v3() const'
/usr/bin/ld: /tmp/otbr.Lmu7M8.ltrans6.ltrans.o:<artificial>:(.text+0x2e21fa): more undefined references to `boost::filesystem::path::filename_v3() const' follow
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/otbr.dir/build.make:1464: bin/otbr] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/otbr.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
mariankowalczysty@gemots2:~/otservbr-global/build$ ls
CMake  CMakeCache.txt  CMakeFiles  Makefile  bin  cmake_install.cmake  compile_commands.json  src  vcpkg-manifest-install.log  vcpkg_installed
mariankowalczysty@gemots2:~/otservbr-global/build$ cd bin
mariankowalczysty@gemots2:~/otservbr-global/build/bin$ ls
mariankowalczysty@gemots2:~/otservbr-global/build/bin$ 

 

 

Please see

 

Compartilhar este post


Link para o post
Compartilhar em outros sites
  • 0
Szmycu    0
Szmycu

I deleted these boost libs and compiled its working.

thanks u alot. I wasted 5 days.

Compartilhar este post


Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×