Ir para conteúdo

Featured Replies

Postado

@Coul e @luanluciano93, como havia dito, consegui compilar a distro no Ubuntu Server 14.04. Agora que finalmente coloquei meu ot no ar e estou com um tempinho, vou dizer o que tiver que fazer: 

 

Primeiramente, falta a dependência da libcrypto++, que pode ser instalada com o comando: sudo apt-get install libcrypto++.

 

Depois, removi o pacote liblua5.1-sql-mysql que o dono do tópico manda instalar. Esse pacote não existe no Ubuntu Server 14.04.

 

Ai apareceu um problema bem dos brabos. O Ubuntu 14.04 usa uma versão nova da biblioteca boost, a qual deprecou o boost filesystem 2 e tem suporte somente ao boost filesystem 3. E adivinha em qual versão a source está? Na 2. Então eu precisei editar os arquivos luascript.cpp accountmanager.cpp, procurando por std::string s = it->path().filename(); e substituindo por std::string s = it->path().filename().string();

 

A partir dai, a única coisa diferente que fiz foi no comando de configuração, que eu usei ./configure --enable-mysql --enable-server-diag para poder usando o comando /serverdiag com meu God. 

 

Pra quem quiser então, segue a distro compilada por mim, em Ubuntu Server 14.04 64 bits, e com as flags mencionadas acima (não tenho certeza se funcionaria em outros Linux e definitivamente nem adianta tentar se for 32 bits): https://mega.co.nz/#!Ql1jEK6L!ez8HoC-LS4n0n_QiF6zR4zZahYFX6dGGoY-55S-r1Vg

 

EDIT: A propósito, estou com mais de 4 dias de uptime nessa distro, sem cair.

Obrigado fera!Legal saber que esta bem estável!Boa sorte ae.

 

Então nas sources basta trocar std::string s = it->path().filename();  por std::string s = it->path().filename().string();  dentro do luascript.cpp accountmanager.cpp ?

Editado por Coul (veja o histórico de edições)

  • Respostas 176
  • Visualizações 68.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • douglasamata
    douglasamata

    @Coul e @luanluciano93, como havia dito, consegui compilar a distro no Ubuntu Server 14.04. Agora que finalmente coloquei meu ot no ar e estou com um tempinho, vou dizer o que tiver que fazer:    Pr

  • Tem que compilar com o visual studio pra fucionar 64bit fix para o disband: https://github.com/fir3element/3884/commit/34a1746f64568471504ec0ee5e1adf566e578961

  • luanluciano93
    luanluciano93

    @hempz, obrigado por avisar, irei revisar esses comandos e em breve darei um parecer ... @coriel, adicionei ao tópico o download de um datapack limpo. @, o sistema de war system é funcional com esse

Posted Images

Postado

Obrigado fera!Legal saber que esta bem estável!Boa sorte ae.

 

Então nas sources basta trocar std::string s = it->path().filename();  por std::string s = it->path().filename().string();  dentro do luascript.cpp accountmanager.cpp ?

 

Isso. Na source é só substituir todas as ocorrências disso ai nos dois arquivos. Não esqueça de instalar o pacote libcrypto++ também.

Postado

alguem poderia ajuda quando fui compilar deu esse erro 

 

em ubuntu-12.04

 

otserv.cpp: In function 'void signalHandler(int32_t)':
otserv.cpp:184:8: error: 'SIGHUP' was not declared in this scope
otserv.cpp:189:8: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:193:8: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:197:8: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:202:8: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:206:8: error: 'SIGCONT' was not declared in this scope
otserv.cpp:211:8: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:216:8: error: 'SIGTERM' was not declared in this scope
otserv.cpp: In function 'int main(int, char**)':
otserv.cpp:277:19: error: aggregate 'main(int, char**)::sigaction sigh' has incomplete type and cannot be defined
otserv.cpp:278:20: error: 'SIG_IGN' was not declared in this scope
otserv.cpp:281:27: error: 'sigemptyset' was not declared in this scope
otserv.cpp:282:12: error: 'SIGPIPE' was not declared in this scope
otserv.cpp:282:32: error: invalid use of incomplete type 'struct main(int, char**)::sigaction'
otserv.cpp:277:9: error: forward declaration of 'struct main(int, char**)::sigaction'
otserv.cpp:285:9: error: 'SIGHUP' was not declared in this scope
otserv.cpp:285:30: error: 'signal' was not declared in this scope
otserv.cpp:286:9: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:287:9: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:288:9: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:289:9: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:290:9: error: 'SIGCONT' was not declared in this scope
otserv.cpp:291:9: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:292:9: error: 'SIGTERM' was not declared in this scope
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/npc.Tpo .deps/npc.Po
make[1]: Leaving directory `/otserv/trunk'
make: *** [all] Error 2
root@localhost:/otserv/trunk# otserv.cpp: In function 'void signalHandler(int32_t)':
-bash: otserv.cpp:: command not found
root@localhost:/otserv/trunk# otserv.cpp:184:8: error: 'SIGHUP' was not declared in this scope
-bash: otserv.cpp:184:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:189:8: error: 'SIGTRAP' was not declared in this scope
-bash: otserv.cpp:189:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:193:8: error: 'SIGCHLD' was not declared in this scope
-bash: otserv.cpp:193:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:197:8: error: 'SIGUSR1' was not declared in this scope
-bash: otserv.cpp:197:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:202:8: error: 'SIGUSR2' was not declared in this scope
-bash: otserv.cpp:202:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:206:8: error: 'SIGCONT' was not declared in this scope
-bash: otserv.cpp:206:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:211:8: error: 'SIGQUIT' was not declared in this scope
-bash: otserv.cpp:211:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:216:8: error: 'SIGTERM' was not declared in this scope
-bash: otserv.cpp:216:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp: In function 'int main(int, char**)':
-bash: otserv.cpp:: command not found
root@localhost:/otserv/trunk# otserv.cpp:277:19: error: aggregate 'main(int, char**)::sigaction sigh' has incomplete type and cannot be defined
-bash: otserv.cpp:277:19:: command not found
root@localhost:/otserv/trunk# otserv.cpp:278:20: error: 'SIG_IGN' was not declared in this scope
-bash: otserv.cpp:278:20:: command not found
root@localhost:/otserv/trunk# otserv.cpp:281:27: error: 'sigemptyset' was not declared in this scope
-bash: otserv.cpp:281:27:: command not found
root@localhost:/otserv/trunk# otserv.cpp:282:12: error: 'SIGPIPE' was not declared in this scope
-bash: otserv.cpp:282:12:: command not found
root@localhost:/otserv/trunk# otserv.cpp:282:32: error: invalid use of incomplete type 'struct main(int, char**)::sigaction'
-bash: otserv.cpp:282:32:: command not found
root@localhost:/otserv/trunk# otserv.cpp:277:9: error: forward declaration of 'struct main(int, char**)::sigaction'
-bash: otserv.cpp:277:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:285:9: error: 'SIGHUP' was not declared in this scope
-bash: otserv.cpp:285:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:285:30: error: 'signal' was not declared in this scope
-bash: otserv.cpp:285:30:: command not found
root@localhost:/otserv/trunk# otserv.cpp:286:9: error: 'SIGTRAP' was not declared in this scope
-bash: otserv.cpp:286:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:287:9: error: 'SIGCHLD' was not declared in this scope
-bash: otserv.cpp:287:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:288:9: error: 'SIGUSR1' was not declared in this scope
-bash: otserv.cpp:288:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:289:9: error: 'SIGUSR2' was not declared in this scope
-bash: otserv.cpp:289:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:290:9: error: 'SIGCONT' was not declared in this scope
-bash: otserv.cpp:290:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:291:9: error: 'SIGQUIT' was not declared in this scope
-bash: otserv.cpp:291:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:292:9: error: 'SIGTERM' was not declared in this scope
-bash: otserv.cpp:292:9:: command not found
root@localhost:/otserv/trunk# make[1]: *** [otserv.o] Error 1
-bash: make[1]:: command not found
root@localhost:/otserv/trunk# make[1]: *** Waiting for unfinished jobs....
-bash: make[1]:: command not found

se alguém poder ajuda vlw..


@Coul e @luanluciano93, como havia dito, consegui compilar a distro no Ubuntu Server 14.04. Agora que finalmente coloquei meu ot no ar e estou com um tempinho, vou dizer o que tiver que fazer: 

 

Primeiramente, falta a dependência da libcrypto++, que pode ser instalada com o comando: sudo apt-get install libcrypto++.

 

Depois, removi o pacote liblua5.1-sql-mysql que o dono do tópico manda instalar. Esse pacote não existe no Ubuntu Server 14.04.

 

Ai apareceu um problema bem dos brabos. O Ubuntu 14.04 usa uma versão nova da biblioteca boost, a qual deprecou o boost filesystem 2 e tem suporte somente ao boost filesystem 3. E adivinha em qual versão a source está? Na 2. Então eu precisei editar os arquivos luascript.cpp accountmanager.cpp, procurando por std::string s = it->path().filename(); e substituindo por std::string s = it->path().filename().string();

 

A partir dai, a única coisa diferente que fiz foi no comando de configuração, que eu usei ./configure --enable-mysql --enable-server-diag para poder usando o comando /serverdiag com meu God. 

 

Pra quem quiser então, segue a distro compilada por mim, em Ubuntu Server 14.04 64 bits, e com as flags mencionadas acima (não tenho certeza se funcionaria em outros Linux e definitivamente nem adianta tentar se for 32 bits): https://mega.co.nz/#!Ql1jEK6L!ez8HoC-LS4n0n_QiF6zR4zZahYFX6dGGoY-55S-r1Vg

 

EDIT: A propósito, estou com mais de 4 dias de uptime nessa distro, sem cair.

ai mano eu tento executa sua distro no linux e n vai olha o erro 

 

./theforgottenserver: error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

Postado

 

alguem poderia ajuda quando fui compilar deu esse erro 

 

em ubuntu-12.04

 

otserv.cpp: In function 'void signalHandler(int32_t)':
otserv.cpp:184:8: error: 'SIGHUP' was not declared in this scope
otserv.cpp:189:8: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:193:8: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:197:8: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:202:8: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:206:8: error: 'SIGCONT' was not declared in this scope
otserv.cpp:211:8: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:216:8: error: 'SIGTERM' was not declared in this scope
otserv.cpp: In function 'int main(int, char**)':
otserv.cpp:277:19: error: aggregate 'main(int, char**)::sigaction sigh' has incomplete type and cannot be defined
otserv.cpp:278:20: error: 'SIG_IGN' was not declared in this scope
otserv.cpp:281:27: error: 'sigemptyset' was not declared in this scope
otserv.cpp:282:12: error: 'SIGPIPE' was not declared in this scope
otserv.cpp:282:32: error: invalid use of incomplete type 'struct main(int, char**)::sigaction'
otserv.cpp:277:9: error: forward declaration of 'struct main(int, char**)::sigaction'
otserv.cpp:285:9: error: 'SIGHUP' was not declared in this scope
otserv.cpp:285:30: error: 'signal' was not declared in this scope
otserv.cpp:286:9: error: 'SIGTRAP' was not declared in this scope
otserv.cpp:287:9: error: 'SIGCHLD' was not declared in this scope
otserv.cpp:288:9: error: 'SIGUSR1' was not declared in this scope
otserv.cpp:289:9: error: 'SIGUSR2' was not declared in this scope
otserv.cpp:290:9: error: 'SIGCONT' was not declared in this scope
otserv.cpp:291:9: error: 'SIGQUIT' was not declared in this scope
otserv.cpp:292:9: error: 'SIGTERM' was not declared in this scope
make[1]: *** [otserv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/npc.Tpo .deps/npc.Po
make[1]: Leaving directory `/otserv/trunk'
make: *** [all] Error 2
root@localhost:/otserv/trunk# otserv.cpp: In function 'void signalHandler(int32_t)':
-bash: otserv.cpp:: command not found
root@localhost:/otserv/trunk# otserv.cpp:184:8: error: 'SIGHUP' was not declared in this scope
-bash: otserv.cpp:184:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:189:8: error: 'SIGTRAP' was not declared in this scope
-bash: otserv.cpp:189:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:193:8: error: 'SIGCHLD' was not declared in this scope
-bash: otserv.cpp:193:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:197:8: error: 'SIGUSR1' was not declared in this scope
-bash: otserv.cpp:197:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:202:8: error: 'SIGUSR2' was not declared in this scope
-bash: otserv.cpp:202:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:206:8: error: 'SIGCONT' was not declared in this scope
-bash: otserv.cpp:206:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:211:8: error: 'SIGQUIT' was not declared in this scope
-bash: otserv.cpp:211:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp:216:8: error: 'SIGTERM' was not declared in this scope
-bash: otserv.cpp:216:8:: command not found
root@localhost:/otserv/trunk# otserv.cpp: In function 'int main(int, char**)':
-bash: otserv.cpp:: command not found
root@localhost:/otserv/trunk# otserv.cpp:277:19: error: aggregate 'main(int, char**)::sigaction sigh' has incomplete type and cannot be defined
-bash: otserv.cpp:277:19:: command not found
root@localhost:/otserv/trunk# otserv.cpp:278:20: error: 'SIG_IGN' was not declared in this scope
-bash: otserv.cpp:278:20:: command not found
root@localhost:/otserv/trunk# otserv.cpp:281:27: error: 'sigemptyset' was not declared in this scope
-bash: otserv.cpp:281:27:: command not found
root@localhost:/otserv/trunk# otserv.cpp:282:12: error: 'SIGPIPE' was not declared in this scope
-bash: otserv.cpp:282:12:: command not found
root@localhost:/otserv/trunk# otserv.cpp:282:32: error: invalid use of incomplete type 'struct main(int, char**)::sigaction'
-bash: otserv.cpp:282:32:: command not found
root@localhost:/otserv/trunk# otserv.cpp:277:9: error: forward declaration of 'struct main(int, char**)::sigaction'
-bash: otserv.cpp:277:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:285:9: error: 'SIGHUP' was not declared in this scope
-bash: otserv.cpp:285:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:285:30: error: 'signal' was not declared in this scope
-bash: otserv.cpp:285:30:: command not found
root@localhost:/otserv/trunk# otserv.cpp:286:9: error: 'SIGTRAP' was not declared in this scope
-bash: otserv.cpp:286:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:287:9: error: 'SIGCHLD' was not declared in this scope
-bash: otserv.cpp:287:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:288:9: error: 'SIGUSR1' was not declared in this scope
-bash: otserv.cpp:288:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:289:9: error: 'SIGUSR2' was not declared in this scope
-bash: otserv.cpp:289:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:290:9: error: 'SIGCONT' was not declared in this scope
-bash: otserv.cpp:290:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:291:9: error: 'SIGQUIT' was not declared in this scope
-bash: otserv.cpp:291:9:: command not found
root@localhost:/otserv/trunk# otserv.cpp:292:9: error: 'SIGTERM' was not declared in this scope
-bash: otserv.cpp:292:9:: command not found
root@localhost:/otserv/trunk# make[1]: *** [otserv.o] Error 1
-bash: make[1]:: command not found
root@localhost:/otserv/trunk# make[1]: *** Waiting for unfinished jobs....
-bash: make[1]:: command not found

se alguém poder ajuda vlw..

ai mano eu tento executa sua distro no linux e n vai olha o erro 

 

./theforgottenserver: error while loading shared libraries: libboost_filesystem.so.1.54.0: cannot open shared object file: No such file or directory

 

 

Você precisa instalar as libs indicadas pelo criador do tópico e a libcrypto++ que eu indiquei tb

Postado

eu ja tentei instalar a s libs libcrypto++

 

so q n adianta em nada ai fui tenta compilar dinovo e da esse erro 

-Wno-unused-parameter -Wno-array-bounds -pthread -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In member function 'bool LuaInterface::loadDirectory(const string&, Npc*)':
luascript.cpp:741:41: error: 'boost::filesystem2::basic_path<std::basic_string<char>, boost::filesystem2::path_traits>::string_type' has no member named 'string'
mv -f .deps/items.Tpo .deps/items.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 -Wno-strict-aliasing -Wno-unused-parameter -Wno-array-bounds -pthread -pipe -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
make[1]: *** [luascript.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
make[1]: Leaving directory `/otserv/trunk'
make: *** [all] Error 2

COMPILAR EM 64BITS EU N CONSEGUIR MAIS EM 32BITS DEU CERTO VLW.

 

SE ALGUEM PODER FAZER UM TUTORIAL COMO INSTALAR AS LIB LA EM 64BITS E AJEITA OS ERROS  LA ERA BOM  VLW.

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