Ir para conteúdo

Featured Replies

  • Respostas 18
  • Visualizações 3.5k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Meu bom, tentei compilar Linux Debian 7.5

 

Configure complete, now you may type './build.sh'.
make  all-am
make[1]: Entering directory `/home/otserver'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT allocator.o -MD -MP -MF .deps/allocator.Tpo -c -o allocator.o allocator.cpp
mv -f .deps/allocator.Tpo .deps/allocator.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT baseevents.o -MD -MP -MF .deps/baseevents.Tpo -c -o baseevents.o baseevents.cpp
In file included from actions.cpp:23:0:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:214:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:235:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:235:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from actions.cpp:23:0:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:252:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:252:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:273:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:273:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
mv -f .deps/baseevents.Tpo .deps/baseevents.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
cc1plus: all warnings being treated as errors
make[1]: *** [actions.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from house.h:27:0,
                 from beds.cpp:20:
player.h: In member function ‘uint32_t Player::getCastIpByName(std::string)’:
player.h:214:11: error: converting to non-pointer type ‘uint32_t {aka unsigned int}’ from NULL [-Werror=conversion-null]
player.h: In member function ‘void Player::kickCastViewers()’:
player.h:235:34: error: cannot call constructor ‘PlayerCast::PlayerCast’ directly [-fpermissive]
player.h:235:34: error:   for a function-style cast, remove the redundant ‘::PlayerCast’ [-fpermissive]
In file included from house.h:27:0,
                 from beds.cpp:20:
player.h: In member function ‘bool Player::addCastBan(std::string)’:
player.h:252:46: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:252:46: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
player.h: In member function ‘bool Player::addCastMute(std::string)’:
player.h:273:47: error: cannot call constructor ‘CastBan::CastBan’ directly [-fpermissive]
player.h:273:47: error:   for a function-style cast, remove the redundant ‘::CastBan’ [-fpermissive]
cc1plus: all warnings being treated as errors
make[1]: *** [beds.o] Error 1
make[1]: Leaving directory `/home/otserver'
make: *** [all] Error 2

Postado
  • Autor

@brunds

não sei, não testei!!

 

@Faliing

tente compilar com um comando unico

sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make clean && make -j 2

e lembre-se de da permissão ao arquivo antes de compilar..

TE AJUDEI ? DA REP+

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo