ViicT 0 #1 Posted December 31, 2007 Neste tutorial vou ensinar como compilar as novas sources do SVN visto que muitos estão com problemas nos outros tópicos... Índice 1- Requerimentos 1.1- Instalação 1.1.1- TortoiseSVN 1.1.2- Dev-Cpp 1.1.3- Bibliotecas 2- Configurando Tortoise SVN 2.1- Download das Sources 3- Configurando o Dev-Cpp 3.1- Compilando 3.1.1- XML 3.1.2- MySQL 3.1.3- SQLite 3.1.4- MySQL e SQLite 1- Requerimentos [b]• [/b][size=2][b]TortoiseSVN - [/b][url="http://prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.4.3.8645-win32-svn-1.4.3.msi?download"]Aqui[/url][/size] [b]• [/b][size=2][b]Dev-Cpp - [/b][url="http://prdownloads.sourceforge.net/dev-cpp/devcpp-4.9.9.2_setup.exe"]Aqui[/url][/size] [b]• Lua5.1[size=2] - [/size][/b][size=2][url="http://pekayz.googlepages.com/lua-5.1.rar"]Aqui[/url][/size] [b]• Boost 1.34.1 (regex e asio incluido)[size=2] - [/size][/b][size=2][url="http://pekayz.googlepages.com/Boost_1_34_1.rar"]Aqui[/url][/size] [b]• LibConv-1.8[size=2] - [/size][/b][size=2][url="http://prdownloads.sourceforge.net/devpaks/libiconv-1.8_1-1spec.DevPak"]Aqui[/url][/size] [b]• LibXML2[size=2] - [/size][/b][size=2][url="http://prdownloads.sourceforge.net/devpaks/libxml2-2.6.22-1cm.DevPak"]Aqui[/url][/size] [b]• GMP[size=2] - [/size][/b][size=2][url="http://pekayz.googlepages.com/GMP.DevPak"]Aqui[/url][/size] [b]• SQLite3[size=2] - [/size][/b][size=2][url="http://devpaks.org/details.php?devpak=120"]Aqui[/url] [color=red] (Necessário, se for compilar com SQLite3)[/color][/size] [b]• MySQL5[size=2] - [/size][/b][size=2][url="http://www.otrevolutiondownloads.net/OT_Revolution_Downloads_Files/devpaks/mysql.DevPak"]Aqui[/url] [color=red](Necessário, se for compilar com MySQL5)[/color][/size] 1.1- Instalação 1.1.1- TortoiseSVN Instalar o TortoiseSVN é como se você estivesse instalando qualquer outro aplicativo. Após o termino da instalação é pedido para que você reinicie o seu computador, eu acho desnecessário, apenas fazer um logoff do seu usuário e entrar denovo já resolve, afinal, ele precisa apenas recarregar o 'explorer.exe'(sua area de trabalho). 1.1.2- Dev-Cpp A instalação do Dev-Cpp é muito simples e fácil como o TortoiseSVN, apenas vá dando "Next" e deixe tudo padrão para não haver problemas futuros... 1.1.3- Bibliotecas As bibliotecas são simples de instalar... Irá aparecer uma janela tipo essa: É só ir apertando "Next" até ele terminar de copiar os arquivos... Instalando Lua5.1 e Boost 1.34.1 Preste atenção nessa parte para que não haja erros! Extraia o arquivo do Lua5.1 para uma pasta chamada "Others" dentro da pasta do Dev-Cpp (Se a pasta não existir, crie-a) No arquivo do Boost 1.34.1, há duas pastas, "Include" e "Lib", extraia elas em suas respectivas pastas na pasta do Dev-Cpp. 2- Configurando o TortoiseSVN Clique com o botão direito do mouse em uma área livre da sua área de trabalho, vá no menu 'TortoiseSVN' e após em Settings, logo de cara você pode trocar o idioma do seu TortoiseSVN para Português. Desmarque a caixa logo abaixo desta opção, para que não fique aparecendo mensagens de update toda semana. Pronto, o básico está configurado, sinta-se livre para mexer em outra coisa se quiser. 2.1- Download das Sources Vá à pasta do seu futuro Servidor, crie uma pasta chamada "Sources", uma chamada "Objetos" e outra "Servidor", clique com o botão direito na pasta "Sources", e após clique em "SVN Checkout". No dialogo que aparece, no primeiro campo você deve colocar o seguinte endereço: "https://opentibia.svn.sourceforge.net/svnroot/opentibia/otserv/trunk" Após isso clique em OK, Pronto, você esta baixando as Sources do seu futuro OTServ. 3- Configurando o Dev-Cpp Primeiramente comece um novo projeto e coloque a linguagem em "C++ Project" e selecione a opção "Console Application", ponha um nome no seu projeto e clique em "OK" Após isso, na lista do lado esquerdo, vai aparecer um arquivo chamado main.cpp clique com o botão direito nele e clique em "Remove File". Pronto, seu projeto está pronto para receber as sources do OTServ. 3.1- Compilando 3.1.1- XML Adicione todos os arquivos *.cpp e *.h com excessão dos: "*" são ambas as extenções .cpp e .h dos arquivos [list] [*]databasemysql.* [*]allocator.* [*]databaseodbc.* [*]databasesqlite.*[/list] e configure nas opções do projeto (Project -> Project Options) da seguinte maneira: [b]C++ Compiler:[/b] -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ [b]Linker:[/b] -llibxml2 -llua -llualib -lwsock32 -lregex -lws2_32 -lasio -lgmp -s -Wl, -Map=otserv.map [b]INCLUA OS TRAÇOS(-)[/b] E ponha as seguintes pastas em Library e Include: Aperte para compilar ou CTRL + F9 e pronto suas sources estarão compiladas 3.1.2- MySQL Para compilar com o MySQL faça a mesma coisa que o XML Apenas inclua os seguintes arquivos nas sources: databasemysql.cpp databasemysql.h e adicione em "C++ Compiler": -D__USE_MYSQL__ e em "Linker" adicione: -lmysql Aperte para recompilar tudo, "Rebuild All" ou CTRL+F11 3.1.3- SQLite Para compilar com o SQLite3 faça a mesma coisa que o XML Apenas inclua os seguintes arquivos nas sources: databasesqlite.cpp databasesqlite.h e adicione em "C++ Compiler": -D__USE_SQLITE__ e em "Linker" adicione: -lsqlite3 Aperte para recompilar tudo, "Rebuild All" ou CTRL+F11 3.1.2- Ambos databases (MySQL e SQLite) Para compilar com os dois databases é simples, faça a mesma coisa que o SQLite e o MySQL. Apenas inclua os seguintes arquivos nas sources: databasemysql.cpp databasemysql.h databasesqlite.cpp databasesqlite.h e adicione em "C++ Compiler": -D__USE_MYSQL__ -D__USE_SQLITE__ e em "Linker" adicione: -lmysql -lsqlite3 Aperte para recompilar tudo, "Rebuild All" ou CTRL+F11 Agradecimentos Ao Skulldiggers pela parte do TortoiseSVN e algumas imagens; À equipe do SVN que disponibilizam no site os links das bibliotecas; Isso foi o máximo que eu consegui simplificar para todos e foi o máximo de explicação que consegui dar... Qualquer dúvida poste no tópico não responderei a MP's e EMAILs Share this post Link to post Share on other sites
Pedroddcunha 3 #2 Posted January 2, 2008 Já existe tutorial de como compilar OTServer - Fechado - Edit _________________ Desculpe pelo meu erro Existe um tutorial, mas é difirente - Aprovado - Share this post Link to post Share on other sites
ViicT 0 #3 Posted January 5, 2008 Obrigado por rever o meu tutorial.. É bom ver administradores assim... Att, ViicT Share this post Link to post Share on other sites
Capablanca 0 #4 Posted January 5, 2008 Isto é para quem for fazer um OT do 0? Dai é só ir colocando o resto? Esse é para 8.1? Share this post Link to post Share on other sites
ShaanW 0 #5 Posted January 5, 2008 @Capablanca Sim, fazer ot do 0 @Topic Se não me engano, a partir do 7.81 já é lua 5.1, então serve para ots 8.1 ^^ / Shaanw Share this post Link to post Share on other sites
Capablanca 0 #6 Posted January 5, 2008 Dai é só ir colocando as pastas nele? (tipo: scripts, mapa, config.lua, executavel)? Share this post Link to post Share on other sites
ViicT 0 #7 Posted January 5, 2008 sim, só ir adicionando as magias e tudo mais.. ps: o server é o "puro" só há nele o que vem do SVN se quiser adicionar mais comandos ai é com vocês e as aulas de C/C++ =D Share this post Link to post Share on other sites
Strider 0 #8 Posted January 6, 2008 Não tem como fazer o server roda sem o otserv.map? Existem algumas versões que rodam sem este arquivo. Como faço o mesmo? Share this post Link to post Share on other sites
lukascentershop 0 #9 Posted January 6, 2008 Eu fiz tudo certinho como assim na hora do CTRL + F9 dpois da isso Compilador: Default compiler Building Makefile: "C:\Dev-Cpp\SERVIDOR\Makefile.win" Executando make... make.exe -f "C:\Dev-Cpp\SERVIDOR\Makefile.win" all g++.exe -c Sources/account.cpp -o Sources/account.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/others/Boost_1_34_1" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ g++.exe -c Sources/actions.cpp -o Sources/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/others/Boost_1_34_1" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ In file included from Sources/creatureevent.h:24, from Sources/creature.h:33, from Sources/player.h:25, from Sources/actions.cpp:24: Sources/luascript.h:31:17: lua.h: No such file or directory Sources/luascript.h:32:21: lauxlib.h: No such file or directory Sources/luascript.h:33:20: lualib.h: No such file or directory In file included from Sources/creatureevent.h:24, from Sources/creature.h:33, from Sources/player.h:25, from Sources/actions.cpp:24: Sources/luascript.h:283: error: ISO C++ forbids declaration of `lua_State' with no type Sources/luascript.h:283: error: expected `;' before '*' token Sources/luascript.h:285: error: expected `;' before "bool" Sources/luascript.h:290: error: variable or field `pushThing' declared void Sources/luascript.h:290: error: expected `;' before '(' token Sources/luascript.h:291: error: variable or field `pushVariant' declared void Sources/luascript.h:291: error: expected `;' before '(' token Sources/luascript.h:292: error: variable or field `pushPosition' declared void Sources/luascript.h:292: error: expected `;' before '(' token Sources/luascript.h:293: error: variable or field `pushPosition' declared void Sources/luascript.h:293: error: expected `;' before '(' token Sources/luascript.h:295: error: expected `;' before '(' token Sources/luascript.h:296: error: variable or field `popPosition' declared void Sources/luascript.h:296: error: expected `;' before '(' token Sources/luascript.h:297: error: variable or field `popPosition' declared void Sources/luascript.h:297: error: expected `;' before '(' token Sources/luascript.h:298: error: expected `;' before '(' token Sources/luascript.h:299: error: expected `;' before '(' token Sources/luascript.h:300: error: expected `;' before '(' token Sources/luascript.h:302: error: expected `;' before '(' token Sources/luascript.h:303: error: variable or field `setField' declared void Sources/luascript.h:303: error: expected `;' before '(' token Sources/luascript.h:304: error: variable or field `setField' declared void Sources/luascript.h:304: error: expected `;' before '(' token Sources/luascript.h:312: error: expected `;' before '(' token Sources/luascript.h:315: error: expected `;' before '(' token Sources/luascript.h:316: error: expected `;' before '(' token Sources/luascript.h:317: error: expected `;' before '(' token Sources/luascript.h:318: error: expected `;' before '(' token Sources/luascript.h:319: error: expected `;' before '(' token Sources/luascript.h:320: error: expected `;' before '(' token Sources/luascript.h:321: error: expected `;' before '(' token Sources/luascript.h:322: error: expected `;' before '(' token Sources/luascript.h:323: error: expected `;' before '(' token Sources/luascript.h:324: error: expected `;' before '(' token Sources/luascript.h:325: error: expected `;' before '(' token Sources/luascript.h:326: error: expected `;' before '(' token Sources/luascript.h:327: error: expected `;' before '(' token Sources/luascript.h:328: error: expected `;' before '(' token Sources/luascript.h:329: error: expected `;' before '(' token Sources/luascript.h:330: error: expected `;' before '(' token Sources/luascript.h:331: error: expected `;' before '(' token Sources/luascript.h:332: error: expected `;' before '(' token Sources/luascript.h:333: error: expected `;' before '(' token Sources/luascript.h:334: error: expected `;' before '(' token Sources/luascript.h:336: error: expected `;' before '(' token Sources/luascript.h:337: error: expected `;' before '(' token Sources/luascript.h:338: error: expected `;' before '(' token Sources/luascript.h:339: error: expected `;' before '(' token Sources/luascript.h:340: error: expected `;' before '(' token Sources/luascript.h:341: error: expected `;' before '(' token Sources/luascript.h:342: error: expected `;' before '(' token Sources/luascript.h:343: error: expected `;' before '(' token Sources/luascript.h:344: error: expected `;' before '(' token Sources/luascript.h:345: error: expected `;' before '(' token Sources/luascript.h:346: error: expected `;' before '(' token Sources/luascript.h:347: error: expected `;' before '(' token Sources/luascript.h:348: error: expected `;' before '(' token Sources/luascript.h:349: error: expected `;' before '(' token Sources/luascript.h:350: error: expected `;' before '(' token Sources/luascript.h:351: error: expected `;' before '(' token Sources/luascript.h:352: error: expected `;' before '(' token Sources/luascript.h:354: error: expected `;' before '(' token Sources/luascript.h:355: error: expected `;' before '(' token Sources/luascript.h:356: error: expected `;' before '(' token Sources/luascript.h:357: error: expected `;' before '(' token Sources/luascript.h:358: error: expected `;' before '(' token Sources/luascript.h:359: error: expected `;' before '(' token Sources/luascript.h:362: error: expected `;' before '(' token Sources/luascript.h:363: error: expected `;' before '(' token Sources/luascript.h:364: error: expected `;' before '(' token Sources/luascript.h:365: error: expected `;' before '(' token Sources/luascript.h:366: error: expected `;' before '(' token Sources/luascript.h:367: error: expected `;' before '(' token Sources/luascript.h:368: error: expected `;' before '(' token Sources/luascript.h:369: error: expected `;' before '(' token Sources/luascript.h:372: error: expected `;' before '(' token Sources/luascript.h:373: error: expected `;' before '(' token Sources/luascript.h:374: error: expected `;' before '(' token Sources/luascript.h:377: error: expected `;' before '(' token Sources/luascript.h:378: error: expected `;' before '(' token Sources/luascript.h:379: error: expected `;' before '(' token Sources/luascript.h:382: error: expected `;' before '(' token Sources/luascript.h:383: error: expected `;' before '(' token Sources/luascript.h:384: error: expected `;' before '(' token Sources/luascript.h:385: error: expected `;' before '(' token Sources/luascript.h:386: error: expected `;' before '(' token Sources/luascript.h:387: error: expected `;' before '(' token Sources/luascript.h:388: error: expected `;' before '(' token Sources/luascript.h:389: error: expected `;' before '(' token Sources/luascript.h:390: error: expected `;' before '(' token Sources/luascript.h:391: error: expected `;' before '(' token Sources/luascript.h:394: error: expected `;' before '(' token Sources/luascript.h:395: error: expected `;' before '(' token Sources/luascript.h:396: error: expected `;' before '(' token Sources/luascript.h:397: error: expected `;' before '(' token Sources/luascript.h:398: error: expected `;' before '(' token Sources/luascript.h:399: error: expected `;' before '(' token Sources/luascript.h:400: error: expected `;' before '(' token Sources/luascript.h:401: error: expected `;' before '(' token Sources/luascript.h:402: error: expected `;' before '(' token Sources/luascript.h:403: error: expected `;' before '(' token Sources/luascript.h:404: error: expected `;' before '(' token Sources/luascript.h:405: error: expected `;' before '(' token Sources/luascript.h:406: error: expected `;' before '(' token Sources/luascript.h:407: error: expected `;' before '(' token Sources/luascript.h:408: error: expected `;' before '(' token Sources/luascript.h:409: error: expected `;' before '(' token Sources/luascript.h:410: error: expected `;' before '(' token Sources/luascript.h:411: error: expected `;' before '(' token Sources/luascript.h:412: error: expected `;' before '(' token Sources/luascript.h:413: error: expected `;' before '(' token Sources/luascript.h:415: error: expected `;' before '(' token Sources/luascript.h:416: error: expected `;' before '(' token Sources/luascript.h:417: error: expected `;' before '(' token Sources/luascript.h:418: error: expected `;' before '(' token Sources/luascript.h:419: error: expected `;' before '(' token Sources/luascript.h:420: error: expected `;' before '(' token Sources/luascript.h:421: error: expected `;' before '(' token Sources/luascript.h:422: error: expected `;' before '(' token Sources/luascript.h:423: error: expected `;' before '(' token Sources/luascript.h:424: error: expected `;' before '(' token Sources/luascript.h:425: error: expected `;' before '(' token Sources/luascript.h:427: error: expected `;' before '(' token Sources/luascript.h:428: error: expected `;' before '(' token Sources/luascript.h:429: error: expected `;' before '(' token Sources/luascript.h:430: error: expected `;' before '(' token Sources/luascript.h:431: error: expected `;' before '(' token Sources/luascript.h:432: error: expected `;' before '(' token Sources/luascript.h:433: error: expected `;' before '(' token Sources/luascript.h:435: error: expected `;' before '(' token Sources/luascript.h:437: error: expected `;' before '(' token Sources/luascript.h:438: error: expected `;' before '(' token Sources/luascript.h:440: error: expected `;' before '(' token Sources/luascript.h:441: error: expected `;' before '(' token Sources/luascript.h:443: error: expected `;' before '(' token Sources/luascript.h:444: error: expected `;' before '(' token Sources/luascript.h:446: error: expected `;' before '(' token Sources/luascript.h:447: error: expected `;' before '(' token Sources/luascript.h:448: error: expected `;' before '(' token Sources/luascript.h:449: error: expected `;' before '(' token Sources/luascript.h:450: error: expected `;' before '(' token Sources/luascript.h:451: error: expected `;' before '(' token Sources/luascript.h:452: error: expected `;' before '(' token Sources/luascript.h:453: error: expected `;' before '(' token Sources/luascript.h:456: error: expected `;' before '(' token Sources/luascript.h:457: error: expected `;' before '(' token Sources/luascript.h:458: error: expected `;' before '(' token Sources/luascript.h:459: error: expected `;' before '(' token Sources/luascript.h:461: error: expected `;' before '(' token Sources/luascript.h:462: error: expected `;' before '(' token Sources/luascript.h:463: error: expected `;' before '(' token Sources/luascript.h:466: error: expected `;' before '(' token Sources/luascript.h:467: error: expected `;' before '(' token Sources/luascript.h:468: error: expected `;' before '(' token Sources/luascript.h:469: error: expected `;' before '(' token Sources/luascript.h:470: error: expected `;' before '(' token Sources/luascript.h:473: error: expected `;' before '(' token Sources/luascript.h:474: error: expected `;' before '(' token Sources/luascript.h:475: error: expected `;' before '(' token Sources/luascript.h:476: error: expected `;' before '(' token Sources/luascript.h:477: error: expected `;' before '(' token Sources/luascript.h:478: error: expected `;' before '(' token Sources/luascript.h:479: error: expected `;' before '(' token Sources/luascript.h:480: error: expected `;' before '(' token Sources/luascript.h:481: error: expected `;' before '(' token Sources/luascript.h:483: error: expected `;' before '(' token Sources/luascript.h:484: error: expected `;' before '(' token Sources/luascript.h:485: error: expected `;' before '(' token Sources/luascript.h:486: error: expected `;' before '(' token Sources/luascript.h:488: error: expected `;' before '(' token Sources/luascript.h:489: error: expected `;' before '(' token Sources/luascript.h:492: error: expected `;' before '(' token Sources/luascript.h:493: error: expected `;' before '(' token Sources/luascript.h:495: error: expected `;' before '(' token Sources/luascript.h:496: error: expected `;' before '(' token Sources/luascript.h:498: error: expected `;' before '(' token Sources/luascript.h:499: error: expected `;' before '(' token Sources/luascript.h:501: error: expected `;' before '(' token Sources/luascript.h:502: error: expected `;' before '(' token Sources/luascript.h:504: error: expected `;' before '(' token Sources/luascript.h:505: error: expected `;' before '(' token Sources/luascript.h:506: error: expected `;' before '(' token Sources/luascript.h:507: error: expected `;' before '(' token Sources/luascript.h:509: error: expected `;' before '(' token Sources/luascript.h:510: error: expected `;' before '(' token Sources/luascript.h:511: error: expected `;' before '(' token Sources/luascript.h:513: error: expected `;' before '(' token Sources/luascript.h:515: error: expected `;' before '(' token Sources/luascript.h:516: error: expected `;' before '(' token Sources/luascript.h:517: error: expected `;' before '(' token Sources/luascript.h:518: error: expected `;' before '(' token Sources/luascript.h:519: error: expected `;' before '(' token Sources/luascript.h:520: error: expected `;' before '(' token Sources/luascript.h:521: error: expected `;' before '(' token Sources/luascript.h:522: error: expected `;' before '(' token Sources/luascript.h:523: error: expected `;' before '(' token Sources/luascript.h:524: error: expected `;' before '(' token Sources/luascript.h:525: error: expected `;' before '(' token Sources/luascript.h:526: error: expected `;' before '(' token Sources/luascript.h:527: error: expected `;' before '(' token Sources/luascript.h:528: error: expected `;' before '(' token Sources/luascript.h:530: error: expected `;' before '(' token Sources/luascript.h:531: error: expected `;' before '(' token Sources/luascript.h:532: error: expected `;' before '(' token Sources/luascript.h:533: error: expected `;' before '(' token Sources/luascript.h:534: error: expected `;' before '(' token Sources/luascript.h:535: error: expected `;' before '(' token Sources/luascript.h:536: error: expected `;' before '(' token Sources/luascript.h:537: error: expected `;' before '(' token Sources/luascript.h:538: error: expected `;' before '(' token Sources/luascript.h:539: error: expected `;' before '(' token Sources/luascript.h:541: error: expected `;' before '(' token Sources/luascript.h:542: error: expected `;' before '(' token Sources/luascript.h:543: error: expected `;' before '(' token Sources/luascript.h:544: error: expected `;' before '(' token Sources/luascript.h:546: error: expected `;' before '(' token Sources/luascript.h:549: error: expected `;' before '(' token Sources/luascript.h:551: error: `luaL_Reg' does not name a type Sources/luascript.h:552: error: expected `;' before '(' token Sources/luascript.h:553: error: expected `;' before '(' token Sources/luascript.h:554: error: expected `;' before '(' token Sources/luascript.h:555: error: expected `;' before '(' token Sources/luascript.h:556: error: expected `;' before '(' token Sources/luascript.h:557: error: expected `;' before '(' token Sources/luascript.h:559: error: ISO C++ forbids declaration of `lua_State' with no type Sources/luascript.h:559: error: expected `;' before '*' token In file included from Sources/protocolgame.h:27, from Sources/player.h:32, from Sources/actions.cpp:24: Sources/protocol.h:25:29: boost/utility.hpp: No such file or directory In file included from Sources/protocol.h:26, from Sources/protocolgame.h:27, from Sources/player.h:32, from Sources/actions.cpp:24: Sources/outputmessage.h:35: error: `boost' has not been declared Sources/outputmessage.h:36: error: expected class-name before '{' token In file included from Sources/protocolgame.h:27, from Sources/player.h:32, from Sources/actions.cpp:24: Sources/protocol.h:36: error: `boost' has not been declared Sources/protocol.h:37: error: expected class-name before '{' token In file included from Sources/actions.cpp:26: Sources/npc.h:44: error: expected `;' before '(' token Sources/npc.h:45: error: expected `;' before '(' token Sources/npc.h:46: error: expected `;' before '(' token Sources/npc.h:47: error: expected `;' before '(' token Sources/npc.h:48: error: expected `;' before '(' token Sources/npc.h:49: error: expected `;' before '(' token Sources/npc.h:50: error: expected `;' before '(' token Sources/npc.h:51: error: expected `;' before '(' token Sources/npc.h:52: error: expected `;' before '(' token Sources/npc.h:53: error: expected `;' before '(' token Sources/npc.h:54: error: expected `;' before '(' token Sources/npc.h:55: error: expected `;' before '(' token Sources/npc.h:56: error: expected `;' before '(' token Sources/npc.h:57: error: expected `;' before '(' token In file included from Sources/iomapserialize.h:40, from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/database.h:65: error: `DATABASE_CLASS' does not name a type Sources/database.h:66: error: `DBRES_CLASS' does not name a type Sources/database.h:84: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:84: error: expected `;' before '*' token Sources/database.h:130: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:130: error: expected `;' before '*' token Sources/database.h:140: error: expected `;' before "std" Sources/database.h:157: error: variable or field `freeResult' declared void Sources/database.h:157: error: expected `;' before '(' token Sources/database.h:163: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:163: error: expected `;' before '*' token Sources/database.h:166: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:166: error: expected `;' before '*' token Sources/database.h:238: error: expected `)' before '*' token Sources/database.h:267: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:267: error: expected `;' before '*' token Sources/database.h:290: error: expected `)' before '*' token Sources/database.h:327: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:327: error: expected `;' before '*' token Sources/database.h: In destructor `DBTransaction::~DBTransaction()': Sources/database.h:299: error: `m_database' undeclared (first use this function) Sources/database.h:299: error: (Each undeclared identifier is reported only once for each function it appears in.) Sources/database.h: In member function `bool DBTransaction::begin()': Sources/database.h:306: error: `m_database' undeclared (first use this function) Sources/database.h: In member function `bool DBTransaction::commit()': Sources/database.h:313: error: `m_database' undeclared (first use this function) In file included from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/iomapserialize.h: At global scope: Sources/iomapserialize.h:81: error: expected `;' before '(' token Sources/iomapserialize.h:82: error: expected `;' before '(' token In file included from Sources/game.h:37, from Sources/actions.cpp:27: Sources/scheduler.h:24:30: boost/function.hpp: No such file or directory Sources/scheduler.h:25:26: boost/bind.hpp: No such file or directory In file included from Sources/scheduler.h:31, from Sources/game.h:37, from Sources/actions.cpp:27: Sources/tasks.h:38: error: `boost' has not been declared Sources/tasks.h:38: error: expected `)' before '<' token Sources/tasks.h:42: error: `boost' has not been declared Sources/tasks.h:42: error: ISO C++ forbids declaration of `function' with no type Sources/tasks.h:42: error: expected `;' before '<' token Sources/tasks.h:44: error: `boost' has not been declared Sources/tasks.h:44: error: `createTask' is neither function nor member function; cannot be declared friend Sources/tasks.h:44: error: expected `;' before '(' token Sources/tasks.h: In member function `void Task::operator()()': Sources/tasks.h:33: error: `m_f' undeclared (first use this function) Sources/tasks.h: At global scope: Sources/tasks.h:47: error: `boost' has not been declared Sources/tasks.h:47: error: `createTask' declared as an `inline' variable Sources/tasks.h:47: error: `function' was not declared in this scope Sources/tasks.h:47: error: expected primary-expression before "void" Sources/tasks.h:47: error: expected `,' or `;' before '{' token In file included from Sources/game.h:37, from Sources/actions.cpp:27: Sources/scheduler.h:49: error: `boost' has not been declared Sources/scheduler.h:49: error: `function' has not been declared Sources/scheduler.h:49: error: expected `,' or `...' before '<' token Sources/scheduler.h:49: error: ISO C++ forbids declaration of `parameter' with no type Sources/scheduler.h:57: error: `boost' has not been declared Sources/scheduler.h:57: error: `function' has not been declared Sources/scheduler.h:57: error: expected `,' or `...' before '<' token Sources/scheduler.h:57: error: ISO C++ forbids declaration of `parameter' with no type Sources/scheduler.h: In constructor `SchedulerTask::SchedulerTask(uint32_t, int)': Sources/scheduler.h:49: error: `f' undeclared (first use this function) Sources/scheduler.h: At global scope: Sources/scheduler.h:60: error: `boost' has not been declared Sources/scheduler.h:60: error: `function' has not been declared Sources/scheduler.h:60: error: expected `,' or `...' before '<' token Sources/scheduler.h:60: error: ISO C++ forbids declaration of `parameter' with no type Sources/scheduler.h: In function `SchedulerTask* createSchedulerTask(uint32_t, int)': Sources/scheduler.h:61: error: `f' undeclared (first use this function) In file included from Sources/actions.cpp:32: Sources/house.h:28:27: boost/regex.hpp: No such file or directory In file included from Sources/actions.cpp:32: Sources/house.h: At global scope: Sources/house.h:57: error: `boost' has not been declared Sources/house.h:57: error: `regex' was not declared in this scope Sources/house.h:57: error: template argument 1 is invalid Sources/house.h:57: error: template argument 1 is invalid Sources/house.h:57: error: template argument 2 is invalid Sources/house.h:57: error: ISO C++ forbids declaration of `RegExList' with no type In file included from Sources/actions.cpp:36: Sources/configmanager.h:113: error: expected `;' before '(' token Sources/configmanager.h:114: error: expected `;' before '(' token Sources/configmanager.h:115: error: expected `;' before '(' token Sources/actions.cpp: In member function `virtual bool Action::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)': Sources/actions.cpp:563: error: `lua_State' undeclared (first use this function) Sources/actions.cpp:563: error: `L' undeclared (first use this function) Sources/actions.cpp:563: error: 'class LuaScriptInterface' has no member named 'getLuaState' Sources/actions.cpp:566: error: `lua_pushnumber' undeclared (first use this function) Sources/actions.cpp:567: error: `pushThing' is not a member of `LuaScriptInterface' Sources/actions.cpp:568: error: `pushPosition' is not a member of `LuaScriptInterface' Sources/actions.cpp:573: error: `pushThing' is not a member of `LuaScriptInterface' Sources/actions.cpp:574: error: `pushPosition' is not a member of `LuaScriptInterface' Sources/actions.cpp:577: error: `pushThing' is not a member of `LuaScriptInterface' Sources/actions.cpp:579: error: `pushPosition' is not a member of `LuaScriptInterface' make.exe: *** [sources/actions.o] Error 1 Execução terminada Total de Erros: 328 O que Seria? Share this post Link to post Share on other sites
ViicT 0 #10 Posted January 6, 2008 Eu fiz tudo certinho como assim na hora do CTRL + F9 dpois da isso @lukascentershop Revê a parte do Lua 5.1 e do boost você deve ter esquecido de adicionar no include e no library @strider ter tem mas não posso lhe ajudar Share this post Link to post Share on other sites
Startix 9 #11 Posted January 7, 2008 ow veio aki da 16 erros e e eu não me engano eles dão erro por causa deste arquivo #include <algorithm> você sabe como eu posso arrumar? Share this post Link to post Share on other sites
gatinhovp 0 #12 Posted January 13, 2008 no meu ta assim oh: Compilador: Default compiler Building Makefile: "C:\Documents and Settings\antonio\Meus documentos\Fer\DragonsTibia\novoOT\Makefile.win" Executando make... make.exe -f "C:\Documents and Settings\antonio\Meus documentos\Fer\DragonsTibia\novoOT\Makefile.win" all g++.exe -c Sources/account.cpp -o Sources/account.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/Others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ g++.exe -c Sources/actions.cpp -o Sources/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/Others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ In file included from Sources/iomapserialize.h:40, from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/database.h:65: error: `DATABASE_CLASS' does not name a type Sources/database.h:66: error: `DBRES_CLASS' does not name a type Sources/database.h:84: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:84: error: expected `;' before '*' token Sources/database.h:130: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:130: error: expected `;' before '*' token Sources/database.h:140: error: expected `;' before "std" Sources/database.h:157: error: variable or field `freeResult' declared void Sources/database.h:157: error: expected `;' before '(' token Sources/database.h:163: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:163: error: expected `;' before '*' token Sources/database.h:166: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:166: error: expected `;' before '*' token Sources/database.h:238: error: expected `)' before '*' token Sources/database.h:267: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:267: error: expected `;' before '*' token Sources/database.h:290: error: expected `)' before '*' token Sources/database.h:327: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:327: error: expected `;' before '*' token Sources/database.h: In destructor `DBTransaction::~DBTransaction()': Sources/database.h:299: error: `m_database' undeclared (first use this function) Sources/database.h:299: error: (Each undeclared identifier is reported only once for each function it appears in.) Sources/database.h: In member function `bool DBTransaction::begin()': Sources/database.h:306: error: `m_database' undeclared (first use this function) Sources/database.h: In member function `bool DBTransaction::commit()': Sources/database.h:313: error: `m_database' undeclared (first use this function) In file included from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/iomapserialize.h: At global scope: Sources/iomapserialize.h:81: error: expected `;' before '(' token Sources/iomapserialize.h:82: error: expected `;' before '(' token make.exe: *** [sources/actions.o] Error 1 Execução terminada Total de error: 26 *Ve ae o q eu fiz de errado...... Share this post Link to post Share on other sites
ViicT 0 #13 Posted January 14, 2008 Desculpem a demora pra responder estive ausente por uns tempos.. Computador deu pane xD @Uchicha Itachi Cara erro nessa library ai não é muito comum n o.õ eu mesmo nunca tive problemas com ela.. Aconselho reinstalar tudo e seguir o tutorial.. @gatinhovip Você ta compilando para o que? XML? Se for XML remove o IOMapSerialize.* e o Database.* Share this post Link to post Share on other sites
gatinhovp 0 #14 Posted January 14, 2008 Tirei os q vc falou msm assim ainda continua dando errado, da uma olhada Compilador: Default compiler Building Makefile: "C:\Documents and Settings\antonio\Meus documentos\Fer\DragonsTibia\novoOT\Makefile.win" Executando make... make.exe -f "C:\Documents and Settings\antonio\Meus documentos\Fer\DragonsTibia\novoOT\Makefile.win" all g++.exe -c Sources/actions.cpp -o Sources/actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/Others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ In file included from Sources/iomapserialize.h:40, from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/database.h:65: error: `DATABASE_CLASS' does not name a type Sources/database.h:66: error: `DBRES_CLASS' does not name a type Sources/database.h:84: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:84: error: expected `;' before '*' token Sources/database.h:130: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:130: error: expected `;' before '*' token Sources/database.h:140: error: expected `;' before "std" Sources/database.h:157: error: variable or field `freeResult' declared void Sources/database.h:157: error: expected `;' before '(' token Sources/database.h:163: error: ISO C++ forbids declaration of `DBResult' with no type Sources/database.h:163: error: expected `;' before '*' token Sources/database.h:166: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:166: error: expected `;' before '*' token Sources/database.h:238: error: expected `)' before '*' token Sources/database.h:267: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:267: error: expected `;' before '*' token Sources/database.h:290: error: expected `)' before '*' token Sources/database.h:327: error: ISO C++ forbids declaration of `Database' with no type Sources/database.h:327: error: expected `;' before '*' token Sources/database.h: In destructor `DBTransaction::~DBTransaction()': Sources/database.h:299: error: `m_database' undeclared (first use this function) Sources/database.h:299: error: (Each undeclared identifier is reported only once for each function it appears in.) Sources/database.h: In member function `bool DBTransaction::begin()': Sources/database.h:306: error: `m_database' undeclared (first use this function) Sources/database.h: In member function `bool DBTransaction::commit()': Sources/database.h:313: error: `m_database' undeclared (first use this function) In file included from Sources/map.h:32, from Sources/game.h:29, from Sources/actions.cpp:27: Sources/iomapserialize.h: At global scope: Sources/iomapserialize.h:81: error: expected `;' before '(' token Sources/iomapserialize.h:82: error: expected `;' before '(' token make.exe: *** [sources/actions.o] Error 1 Execução terminada Vê ae o q ta errado Share this post Link to post Share on other sites
alfalock 0 #15 Posted January 19, 2008 ve pra mim o q deu errado ae, segui td certin Compilador: Default compiler Building Makefile: "C:\Dev-Cpp\Makefile.win" Executando make... make.exe -f "C:\Dev-Cpp\Makefile.win" all g++.exe -c "../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/account.cpp" -o "../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/account.o" -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/Others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ -fmessage-length=0 g++.exe -c "../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/actions.cpp" -o "../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/actions.o" -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/Others/lua-5.1/include" -D__WINDOWS__ -D__EXCEPTION_TRACER__ -D__SKULLSYSTEM__ -fmessage-length=0 In file included from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/iomapserialize.h:40, from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/map.h:32, from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/game.h:29, from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/actions.cpp:27: ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:65: error: `DATABASE_CLASS' does not name a type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:66: error: `DBRES_CLASS' does not name a type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:84: error: ISO C++ forbids declaration of `Database' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:84: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:130: error: ISO C++ forbids declaration of `DBResult' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:130: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:140: error: expected `;' before "std" ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:157: error: variable or field `freeResult' declared void ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:157: error: expected `;' before '(' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:163: error: ISO C++ forbids declaration of `DBResult' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:163: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:166: error: ISO C++ forbids declaration of `Database' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:166: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:238: error: expected `)' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:267: error: ISO C++ forbids declaration of `Database' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:267: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:290: error: expected `)' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:327: error: ISO C++ forbids declaration of `Database' with no type ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:327: error: expected `;' before '*' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h: In destructor `DBTransaction::~DBTransaction()': ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:299: error: `m_database' undeclared (first use this function) ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:299: error: (Each undeclared identifier is reported only once for each function it appears in.) ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h: In member function `bool DBTransaction::begin()': ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:306: error: `m_database' undeclared (first use this function) ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h: In member function `bool DBTransaction::commit()': ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/database.h:313: error: `m_database' undeclared (first use this function) In file included from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/map.h:32, from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/game.h:29, from ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/actions.cpp:27: ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/iomapserialize.h: At global scope: ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/iomapserialize.h:81: error: expected `;' before '(' token ../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/iomapserialize.h:82: error: expected `;' before '(' token make.exe: *** ["../Documents and Settings/user/Meus documentos/Alfredo/ots/OT/Sources/actions.o"] Error 1 Execução terminada Share this post Link to post Share on other sites
GOD xD 0 #16 Posted January 21, 2008 Tentei compilar Um Otserver Em SQL, Mas Deu Alguns Erros. [Linker error] undefined reference to `g_config' [Linker error] undefined reference to `ConfigManager::getNumber(unsigned int) const' [Linker error] undefined reference to `WinMain@16' ld returned 1 exit status New otserver\Makefile.win [build Error] [Otserver.exe] Error 1 Espero Respostas... Share this post Link to post Share on other sites
UrsO 0 #18 Posted February 21, 2008 Bom trabalho, e eu tenho uma dúvida, Os servidores que agente baixa vem com as Sources, eu posso colocar algumas delas pra acrescentar comandos ? vlw Share this post Link to post Share on other sites
[email protected] 0 #19 Posted February 23, 2008 muito bom vlws ae bye striker Share this post Link to post Share on other sites
GekO 0 #20 Posted February 27, 2008 Muito bom e bem explicado. Share this post Link to post Share on other sites