Ir para conteúdo
  • 0
Exile

Infraestrutura Compilando OTServBR no Debian 9

Pergunta

Exile    0
Exile

Base:

OTServBR-Global 12.x

Qual é a sua pergunta?

Estou seguindo o guia  Servidor do 0 ao Cliente Modificado, consegui configurar o Google Cloud sem problemas, o site já está funcionando com o meu domínio perfeitamente.

Porém  ao chegar neste processo de  compilar o servidor:

$ mkdir build && cd build && cmake .. && make

 Recebo o seguinte erro:

Spoiler

root@exile:/home/meandrolenezes# cd otservbr-global-develop
root@exile:/home/meandrolenezes/otservbr-global-develop# mkdir build && cd build && cmake .. && make
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_LTO
-- Performing Test COMPILER_KNOWS_LTO - Success
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found Crypto++: /usr/include  
-- Found PugiXML: /usr/include  
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: /usr/lib/x86_64-linux-gnu/libmariadbclient.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Spdlog: /usr/include  
CMake Error at /usr/share/cmake-3.7/Modules/FindBoost.cmake:1831 (message):
  Unable to find the requested Boost libraries.
  Boost version: 1.62.0
  Boost include path: /usr/include
  Could not find the following Boost libraries:
          boost_filesystem
  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:67 (find_package)
-- Could NOT find LuaJIT (missing:  LUA_LIBRARIES LUA_INCLUDE_DIR) 
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so  
-- CXX target tfs cotired without unity build.
-- Configuring incomplete, errors occurred!
See also "/home/meandrolenezes/otservbr-global-develop/build/CMakeFiles/CMakeOutput.log".
See also "/home/meandrolenezes/otservbr-global-develop/build/CMakeFiles/CMakeError.log".

 

Vou anexar os dois logs gerados!

Não tenho a menor ideia do que seja, segui o passo a passo e já refiz quase tudo, a maioria das dúvidas eu consegui resolver na internet, porém isso realmente me travou.

CMakeOutput.log

CMakeError.log

Editado por meandrolenezes
Adicionando SPOILER no código

Compartilhar este post


Link para o post
Compartilhar em outros sites

2 respostass a esta questão

Recommended Posts

  • 0
Exile    0
Exile

Consegui sair daquele erro galera, o que eu fiz foi o seguinte

Eu alterei o libmysqlclient-dev para default-libmysqlclient-dev

E o código ficou assim: 

apt -y install git cmake build-essential liblua5.2-dev libgmp3-dev default-libmysqlclient-dev libboost-system-dev libboost-iostreams-dev libboost-filesystem-dev libpugixml-dev libcrypto++-dev libspdlog-dev

Vou continuar o processo aqui, está compilando agora (86%)

Compartilhar este post


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

Decidi seguir o tutorial que está no github (Compiling on Ubuntu Debian)

1. Install the required software

Spoiler

root@exile:~# apt -y install git cmake build-essential liblua5.2-dev libgmp3-dev libmysqlclient-dev libboost-system-dev libboost-iostream
s-dev libboost-filesystem-dev libpugixml-dev libcrypto++-dev libspdlog-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libmysqlclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libmysqlclient-dev' has no installation candidate

 

2. Download the source code

Spoiler

root@exile:~# git clone --depth 1 https://github.com/opentibiabr/OTServBR-Global.git
Cloning into 'OTServBR-Global'...
remote: Enumerating objects: 5347, done.
remote: Counting objects: 100% (5347/5347), done.
remote: Compressing objects:  16% (715/4465)
remote: Compressing objects: 100% (4465/4465), done.
remote: Total 5347 (delta 1812), reused 1868 (delta 795), pack-reused 0
Receiving objects: 100% (5347/5347), 37.51 MiB | 14.15 MiB/s, done.
Resolving deltas: 100% (1812/1812), done.
root@exile:~# cd OTServBR-Global

 

 

3. Checkout nightly branch (optional)

Spoiler

root@exile:~/OTServBR-Global# git checkout develop
Already on 'develop'
Your branch is up-to-date with 'origin/develop'.

 

4. Generate the build files

Spoiler

root@exile:~/OTServBR-Global# mkdir build && cd build
root@exile:~/OTServBR-Global/build# cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_LTO
-- Performing Test COMPILER_KNOWS_LTO - Success
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found Crypto++: /usr/include  
-- Found PugiXML: /usr/include  
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: /usr/lib/x86_64-linux-gnu/libmariadbclient.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Spdlog: /usr/include  
CMake Error at /usr/share/cmake-3.7/Modules/FindBoost.cmake:1831 (message):
  Unable to find the requested Boost libraries.
  Boost version: 1.62.0
  Boost include path: /usr/include
  Could not find the following Boost libraries:
          boost_filesystem
  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.

 

 

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.

×