Jump to content

[Download]Source (Client / Server / Tools) by Ira


juniorsilva
 Share

Recommended Posts

Olá pessoal.

Bem, hoje venho aqui postar a source do Ira que esta bastante limpa pelo que vi ele removeu tudo que era possível da source Ymir, então vamos lá pra você compilar a source Ira vai precisar baixar no FreeBSD 10.4 \ 11.1:

# pkg install clang38 gmake

Adicionar o Makefile em Ira Work\source\server\source\Makefile e adicionar permissão 777 ao Makefile.

Download do Makefile

Comandos:

gmake  libs   - Compila todas as libs

gmake db   - Compila a DB core

gmake game     -  Compila a GAME core

gmake clean   -  Limpa todas as sources

gmake all  -  Compila todas as sources

 

Agora pra você compilar a source do cliente vai precisar baixar o Visual Studio Community 2015.

Download Source Ira

Download do Metin2_PT_r40267_Client

Download do Pack Cliente (BR <-> PT)

Senha:  tlthings.net

 

Informações sobre a Source Ira:

Spoiler

++ Boost_1.60.0
++ DevIL_1.8.7
++ Lua_5.1
++ googletest_1.7.0 - This dependency has been removed
++ mysql_5.7  (More faster and stable than mysql 5.4)
++ lzo_2.09
++ minilzo_2.09
++ clang++3.8
++ All makefiles was rewrited by me. 
++ C++ 11 features like ( Auto transform , nullptr transform , pass by value , smart pointers )
++ Buffers problem was solved. ( Now you don't need worry about lag problems)
++ Entire network packet's system was revised and unknown packet headers problem was solved.
++ Extern folder has been removed. All dependencies will be installed using pkg.
++ From 350 files.  Now game source have just 250 files. Soo, it's super clean. And useless things removed.
++ You will receive support & updates (i WILL support just source problems/bugs) JUST SOURCE
++ translated 
++ Include guards has been replaced with pragma once
++ Added a little 1 second check to Mount  -> Unmount (horse, mount , etc..)
++ A buffer adjust has been added.
++ Added a IP Check for GM rights
++ GetIpInfo revised (With autodetect public_ip)
++ MapIndex hatoic number has been revised( MapIndex it's now 1 2 3 4 5 6  etc) 
++ Source it's formatted using google formating style https://google.github.io/styleguide/cppguide.html
++ You can compile source under amd64 system.
       A 32-bit process has a 32-bit address space, by definition: “32-bit” means that memory addresses in the process are 32 bits wide,
       and if you have 232 distinct addresses you can address at most 232bytes (4GB). A 32-bit Linux kernel can only execute 32-bit processes.
       Depending on the kernel compilation options, each process can only allocate 1GB, 2GB or 3GB of memory (the rest is reserved for the kernel
       when it's processing system calls). This is an amount of virtual memory, unrelated to any breakdown between RAM, swap, and mmapped files.
       A 64-bit kernel can run 64-bit processes as well as 32-bit processes. A 64-bit process can address up to 264 bytes (16EB) in principle.
       On the x86_64 architecture, partly due to the design of x86_64MMUs, there is currently a limitation to 128TB of address space per process.
       With amd64 compiler now binary can use all resources ,max 128 TB RAM.

       Conclusion: All metin2 p-server use just 4gb ram memory because this is the limit can handle 32bit adress space.
       Advantages: Now you server game and db can handle more than 100gb ram. Gamecore can store more data intro RAM memory, less lag, fast conexions, Dbcore can
       store more data, fast querty execute.  Metin2 use buffers to store data intro ram memory. Sooo ram is critical intro a metin2 server.
++ Public IP is autodetected, you don't need to set BIND_IP anymore. 
++ passpod (LOGIN 4) removed
++ Openid (LOGIN 5) removed
++ GreetMessage removed
++ teen packets (input_teen, teen_desc  etc... mooore) removed
++ Locale Stuff ( Lc_IsYmir , brazil, canada, newCibn, etc..) removed
++ AuctionManager removed
++ block_country removed
++ block_exception removed
++ ip_ban removed 
++ freebsd_filemonitor removed
++ dev_log removed
++ monarch_systm (queslua_monarch , mgmt) removed
++ Threeway_war  (queslua_forked.cpp , castle.cpp) removed
++ SpeedServer ( questlua_speedserver, etc.. all stuff) removed
++ Vcard removed
++ Marble stuff removed
++ auth brazil removed
++ auth japan removed
++ pcbang removed 
++ germany stuff removed
++ xtrap removed
++ checkServer removed
++ hackshield removed
++ billing system ( from YMIR) removed
++ Useless version.txt removed
++ test references ( test.cpp etc..) removed
++ ShopEx function( table) removed
++ panama crypt removed
++ over9refine removed
++ china matrix_card removed
++ limit_time removed
++ Win32 references removed
++ All brazil references removed
++ Canada references removed
++ g_IUseLocale removed
++ Lotto event  (I can add to request) ( lotto_drop etc) removed
++ SpeedServer questlua table removed
++ Forked questlua table removed
++ Monarch questlua table removed
++ Translate.lua file  ( I can add to request) removed
++ Improved_packet removed
++ Header_Version2 (Now it's only version 1) removed
++ Mobile system (I can add to request(But is useless)) removed
++ CRC references (Reload_crc, etc) removed
++ HybridCrypt system (Crypt package. etc) removed
++ All useles #ifdef  and #ifndef removed
++ Server_check ( Server_key) removed
++ FileMonitor freebsd removed
++ Useles logs ( hackshield , vcard , pc_bang, speed hack etccccccc) removed
++ Locale WorldEdition removed
++ China Event_server && china toxification prevent stuff removed
++ Distribution_test_server stuffs removed
++ SyncPosition problems removed
++ Some hack checks removed (Useless , combo , spped, skill etc :D)
++ revive_invisible removed 
++ Database String removed
++ Metin2 Server_IsInvalid stuffs removed
++ Teen _Desc stuff removed
++ Marble_desc  stuff removed
++ GetKey_20050304Myevan()  (I will add to request) removed
++ Auth Japan removed
++ exp_table_euckr removed
++ exp_table_newcibn removed
++ do_frog  ( I can add to request) removed
++ user_horse_ride removed and adapted ctrl + g for mount and horse
++ Check_level_limit korea only removed
++ Over_Time stuffs removed

++ And more, but i don't remember now.. I will edit again.
++ Belt bug fixed
++ war crash fixed
++ mount/unmount with full inventory fixed
++ dice crash fixed
++ Fixed all warnings
++ Korean commands, backdoors, was removed... 
++ Status point fixed, you can set it fron control.h
++ Bonus change on equipped items
++ Empire change bug
++ Scroll bug
++ Horse  skills damage
++ Item swap with full inventory fixed
++ Negative HP fixed
++ 6/7 on costumes fixed
++ All mount can attak fixed

++ Sql injection in messenger fixed
++ sql injection in guid fixed
++ Change empire crash fixed
++ Party invite crash fixed
++ dungeon crash fixed
++ cube crash fixed
++ Affect problems (I maded 3 new functions for refersh affects )
++ Source have over 100 fix but i don't remember all, i try to edit when i have time.
++ Edit soon i don't have time.


#define MAP_ALLOW_LIMIT                            32
#define ITEM_ACCESSORY_SOCKET_MAX_NUM            3
#define CAN_SHOUT_MAX_LEVEL                        15
#define MAX_STATUS_POINT                        100
#define PARTY_CAN_JOIN_MAX_LEVEL                30
#define MAX_ITEM_INTRO_STACK                    200
#define MAX_MEMBER_INTRO_PARTY                    10
#define CAN_RESET_HERE_TIME                        170
#define CAN_RESET_TOWN_TIME                        173
#define MAX_LEVEL_POINT_CAN_STEP                90
#define PORTAL_LIMIT_TIME                        10
#define STONE_INSERT_PERCENT_CHANCE                30

#define __USE_TXT_MODE_FOR_PROTO___
//#define __USE_SQL_MODE_FOR_PROTO___
 

DATABASE CACHE LOG:

++ Billing           removed
++ Auction Manager   removed 
++ Block Country     removed 
++ Block exception   removed 
++ PlayerHB          removed

CLIENT SOURCE LOG:

++ Boost 1.60 
++ Cryptopp 5.6.3
++ granny 2.4
++ python 2.7.11
++ Directx 8b
++ DevIL 1.7.8
++ SpeedTree 1.6
++ MilesSound 2.9b
++ Lzo Professional 8b (10x faster than lzo 2.09) Soon i will update to lz4
++ Level Step bug fixed ( When you 
++ Uknown packet header fixed 100% all
++ All windows copatibility fixed
++ SEQUENCE mismatch all fixed, no more sequence syserr ( This seqeunce kick players )
++ view_equip crash  fixed
++ python 2.7 Long overflow fixed
++ Fixed some visual bugs
++ Source it's formatted using google formating style https://google.github.io/styleguide/cppguide.html
++ Some memory leaks after teleportation fixed
++ OpenID removed
++ Pc_Bang removed
++ HackShield removed
++ NprotectGameGuard removed
++ passpod removed
++ matrix_card removed
++ IsDev removed
++ IsLive removed
++ IsTest removed
++ Application Logo removed
++ MovieMan removed
++ ProcessCrc removed
++ ProcessScanner removed
++ All DLL-s dependecy removed   ( Here it's a print how client look http://prntscr.com/a9m0yk )
++ useless #define removed
++ useless #ifdef / #ifndef removed
++  Locale Ymit , newcibn , koreea all thos stuffs removed

++ Compiler Visual Studio 2015 / x86
++ Toolset v140_xp
++ SDL checks activated and compatible
++ Multi process compilation
++ Optimized for favor fast code
++ Whole program optimization
++ Fiber safe optimization activated
++ Omit frame pointers
++ Inline expansion set to any suitable
++ Strip Pooling was enabled 
++ Runtime Library it's /MT (Multi Threading )
++ Struct member alignment  it's set to 8 bytes by default
++ Floating point model set to : FAST (FAST CODE GENERATING )
++ hotpatchable Image enabled
++ Enabled COMDAT flooding set to YES
++ Visual studio now generate a checksum for executable in header
++ Prevent DLL Binding
++ Target Manchine x86 but work fine to x64 too

TOOLS LOG:

1. Python Engine :

++ openid removed
++ passpod removed
++ matrix_card removed
++ IsTest removed
++ IsDev removed
++ IsLive removed
++ Mobile messnger removed
++ All # comments removed :D
++ Locale_ stffs removed ( Is.Ymir , Is.Arabic , Is.NewCibn , Is.Vietnam , etc all those checks.)
++ Translated
++ Ready for use :dependencies
++ Added a new npclist.py ( Now you can't use npclist.txt) If you want i will change to .txt
++ Official root from Metin2RO Official before cython. 
2.Clean navicat tables

++ Compatible with new MySql 5.7
++ All extra useless tables removed
++ Translated
++ MyIsam was changed with InnoDB
3. Dump proto

++ This tool read .txt protos from server and build client protos.
++ This tool read client protos and make .txt too
++ Translated
++ Removed some TYPE/ SUBTYPE useless
++ adapted to the new strncpy_s
4.msa maker

++ This tool create for you .msa files for .gr2 files
++ Work with granny 2.4/2.9
++ Compiler Visual studio 2015
++ Support Accumulation
++ Support multiple .gr2
5. New text protos editor

++ This tool help you to edit .txt server protos.
++ How to use
++ Support search vnum / name / colums
++ Compatible with all windows
++ Compiler visual studio 2015

 

Source Ira testada - Work.

1005_081712.jpg?1507202340

Edited by juniorsilva
Melhoramento do tópico & Update links
  • Like 19
  • Thanks 6
  • Haha 1
  • Confused 1
Link to comment
Share on other sites

1 hora atrás, juniorsilva disse:

Olá pessoal.

Bem, hoje venho aqui postar a source do Ira que esta bastante limpa pelo que vi ele removeu tudo que era possível da source Ymir, então vamos lá pra você compilar a source Ira vai precisar baixar no FreeBSD10<->11:

# pkg install clang38 gmake

Agora pra você compilar a source do cliente vai precisar baixar o Visual Studio 2015.

Download Source Ira

 

Source Ira testada - Work.

0923_100134.jpg?1506171843

 

Fonte:  just4metin.ro

@juniorsilva tem como montar ela em 9.3 ou tem que ter 10 +?

que serverfiles/client recomenda para usar com essa source?

  • Like 2
Link to comment
Share on other sites

Script para compilar (colocar na base da source, como na imagem abaixo, chamei-lhe compile.sh):

#!/bin/sh
v_base=$PWD
find . -type f | xargs -n 5 touch &&
cd $v_base/db/src && gmake clean &&
cd $v_base/game/src && gmake clean
cd $v_base/libthecore/src && gmake -j2 &&
cd $v_base/libsql/src && gmake -j2 &&
cd $v_base/libpoly/src && gmake -j2 &&
cd $v_base/libgame/src && gmake -j2 &&
cd $v_base/db/src && gmake -j2 &&
cd $v_base/game/src && gmake -j2
echo
echo Build complete.

imagem.png

  • Like 9
  • Thanks 1
Link to comment
Share on other sites

27 minutos atrás, Tierri Lopes disse:

Script para compilar (colocar na base da source, como na imagem abaixo, chamei-lhe compile.sh):


#!/bin/sh
v_base=$PWD
find . -type f | xargs -n 5 touch &&
cd $v_base/db/src && gmake clean &&
cd $v_base/game/src && gmake clean
cd $v_base/libthecore/src && gmake -j2 &&
cd $v_base/libsql/src && gmake -j2 &&
cd $v_base/libpoly/src && gmake -j2 &&
cd $v_base/libgame/src && gmake -j2 &&
cd $v_base/db/src && gmake -j2 &&
cd $v_base/game/src && gmake -j2
echo
echo Build complete.

imagem.png

Que files recomendas para essa surce ? e cliente claro

  • Like 2
Link to comment
Share on other sites

Em 23/09/2017 em 11:54, Luffy disse:

@juniorsilva tem como montar ela em 9.3 ou tem que ter 10 +?

que serverfiles/client recomenda para usar com essa source?

 

Em 23/09/2017 em 12:09, Caneiras disse:

Poderia criar um tutorial de como instalar o freebsd 11 para metin2 é que existe umas diferenças do 9xx para o 10 x11.

O vs 2013 não serve para compilar a surce cliente ?

obrigado pela partilha 

que serverfiles e cliente recomenda para elas ?

 

 

Não sei se o servidor ficaria instável na versão 9.x já que ele removeu o malloc(size_t size)  por isso deixei definido a versão 10 / 11 por segurança e também só tenho o FreeBSD 11 aqui no PC.

Sobre o visual studio teria de recompilar tudo em v120 (libs).

 

  •  Cliente Base (PT) - Postado aqui no fórum , necessário atualizar dlls /libs/packs.
  • ServerFiles 40k (Default).

 

Como configurar sua ServerFiles 40k:

auth/ CONFIG default

db/conf.txt agora é CONFIG.

channel1 / 99 continua default CONFIG.

 

Obs: Recomendo que você altere o latin2 (Main.cpp,ClientManager.cpp) por latin1 (PT/BR). 

 

Link to comment
Share on other sites

Em 23/09/2017 em 14:03, Tierri Lopes disse:

Script para compilar (colocar na base da source, como na imagem abaixo, chamei-lhe compile.sh):


#!/bin/sh
v_base=$PWD
find . -type f | xargs -n 5 touch &&
cd $v_base/db/src && gmake clean &&
cd $v_base/game/src && gmake clean
cd $v_base/libthecore/src && gmake -j2 &&
cd $v_base/libsql/src && gmake -j2 &&
cd $v_base/libpoly/src && gmake -j2 &&
cd $v_base/libgame/src && gmake -j2 &&
cd $v_base/db/src && gmake -j2 &&
cd $v_base/game/src && gmake -j2
echo
echo Build complete.

imagem.png

Para mostrando gmake not found

Mas já instalei o pkg install clang38 gmake

Link to comment
Share on other sites

Em 24/09/2017 em 18:15, juniorsilva disse:

 

 

Não sei se o servidor ficaria instável na versão 9.x já que ele removeu o malloc(size_t size)  por isso deixei definido a versão 10 / 11 por segurança e também só tenho o FreeBSD 11 aqui no PC.

Sobre o visual studio teria de recompilar tudo em v120 (libs).

 

  •  Cliente Base (PT) - Postado aqui no fórum , necessário atualizar dlls /libs/packs.
  • ServerFiles 40k (Default).

 

Como configurar sua ServerFiles 40k:

auth/ CONFIG default

db/conf.txt agora é CONFIG.

channel1 / 99 continua default CONFIG.

 

Obs: Recomendo que você altere o latin2 (Main.cpp,ClientManager.cpp) por latin1 (PT/BR). 

 

Você tem algum link de serverfiles que sejam compativeis com esse binario?

Link to comment
Share on other sites

Não dá para compilar em FreeBSD 10.4 x64...

No fim de compilar, quando está a dar linking, aparece isto:

/usr/bin/ld: skipping incompatible ../../../extern/mysql/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient

Também acontece com llua, lboost_system, lminilzo e todas as devil

Alguém tem alguma solução?

  • Like 2
Link to comment
Share on other sites

34 minutos atrás, charparodar disse:

Não dá para compilar em FreeBSD 10.4 x64...

No fim de compilar, quando está a dar linking, aparece isto:


/usr/bin/ld: skipping incompatible ../../../extern/mysql/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient

Também acontece com llua, lboost_system, lminilzo e todas as devil

Alguém tem alguma solução?

Sistema  i386 .....

link: https://download.freebsd.org/ftp/releases/VM-IMAGES/11.1-RELEASE/i386/Latest/

 

:FailFish:

Link to comment
Share on other sites

3 minutos atrás, juniorsilva disse:

 

Em 23/09/2017 em 14:27, juniorsilva disse:

Informações sobre a Source Ira:

Spoiler

++ You can compile source under amd64 system.
       A 32-bit process has a 32-bit address space, by definition: “32-bit” means that memory addresses in the process are 32 bits wide,
       and if you have 232 distinct addresses you can address at most 232bytes (4GB). A 32-bit Linux kernel can only execute 32-bit processes.
       Depending on the kernel compilation options, each process can only allocate 1GB, 2GB or 3GB of memory (the rest is reserved for the kernel
       when it's processing system calls). This is an amount of virtual memory, unrelated to any breakdown between RAM, swap, and mmapped files.
       A 64-bit kernel can run 64-bit processes as well as 32-bit processes. A 64-bit process can address up to 264 bytes (16EB) in principle.
       On the x86_64 architecture, partly due to the design of x86_64MMUs, there is currently a limitation to 128TB of address space per process.
       With amd64 compiler now binary can use all resources ,max 128 TB RAM.

       Conclusion: All metin2 p-server use just 4gb ram memory because this is the limit can handle 32bit adress space.
       Advantages: Now you server game and db can handle more than 100gb ram. Gamecore can store more data intro RAM memory, less lag, fast conexions, Dbcore can
       store more data, fast querty execute.  Metin2 use buffers to store data intro ram memory. Sooo ram is critical intro a metin2 server.

 

Edited by charparodar
Link to comment
Share on other sites

Não testei compilação em 64bit, no entanto, citando:

"  Conclusion: All metin2 p-server use just 4gb ram memory because this is the limit can handle 32bit adress space. "

Gotaria de esclarecer que existe esse limite sim, mas isso é limite por core.

Ou seja, ch1_core1, esse ficheiro game apenas conseguirá utilizar 4GB de ram.

O ch1_core1, esse mesmo ficheiro também apenas conseguirá utilizar 4GB de ram.

Ou seja, a limitação de 4GB de ram é por instância do game, e não no total.

Na realidade nenhum core irá usar 4GB de ram sozinho nem lá perto, se isso acontecer, então existem leaks de memória bastante graves que devem ser resolvidos.

Link to comment
Share on other sites

4 minutos atrás, Tierri Lopes disse:

Não testei compilação em 64bit, no entanto, citando:

"  Conclusion: All metin2 p-server use just 4gb ram memory because this is the limit can handle 32bit adress space. "

Gotaria de esclarecer que existe esse limite sim, mas isso é limite por core.

Ou seja, ch1_core1, esse ficheiro game apenas conseguirá utilizar 4GB de ram.

O ch1_core1, esse mesmo ficheiro também apenas conseguirá utilizar 4GB de ram.

Ou seja, a limitação de 4GB de ram é por instância do game, e não no total.

Na realidade nenhum core irá usar 4GB de ram sozinho nem lá perto, se isso acontecer, então existem leaks de memória bastante graves que devem ser resolvidos.

Estou a tentar instalando no próprio FreeBSD as libs necessárias, já consegui resolver o erro da mysql, utilizando as libs e os includes instalados no sistema e adicionando estas 2 flags: -lssl -lcrypto não deu mais erros na parte do mysql...

 

Link to comment
Share on other sites

Bem, o game também está quase a compilar, falta as libs lua e acho que depois vai dar erro na minilzo.

Erros LUA:

Spoiler

root@source_ira:/usr/src/source/game/src # gmake
linking....
.obj/arena.o: In function `CArenaManager::GetDuelList(lua_State*)':
/usr/src/source/game/src/arena.cpp:617: undefined reference to `lua_newtable'
.obj/arena.o: In function `CArenaMap::GetDuelList(lua_State*, int)':
/usr/src/source/game/src/arena.cpp:648: undefined reference to `lua_newtable'
.obj/BlueDragon_Binder.o: In function `BlueDragon_GetRangeFactor(char const*, int)':
/usr/src/source/game/src/BlueDragon_Binder.cpp:85: undefined reference to `luaL_getn'
.obj/questlua.o: In function `quest::ScriptToString(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)':
/usr/src/source/game/src/questlua.cpp:29: undefined reference to `lua_dobuffer'
/usr/src/source/game/src/questlua.cpp:35: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::FBuildLuaGuildWarList::FBuildLuaGuildWarList(lua_State*)':
/usr/src/source/game/src/questlua.cpp:154: undefined reference to `lua_newtable'
.obj/questlua.o: In function `quest::FBuildLuaGuildWarList::operator()(unsigned int, unsigned int)':
/usr/src/source/game/src/questlua.cpp:176: undefined reference to `lua_newtable'
.obj/questlua.o: In function `quest::IsScriptTrue(char const*, int)':
/usr/src/source/game/src/questlua.cpp:193: undefined reference to `lua_dobuffer'
.obj/questlua.o: In function `quest::combine_lua_string(lua_State*, std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)':
/usr/src/source/game/src/questlua.cpp:217: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::highscore_show(lua_State*)':
/usr/src/source/game/src/questlua.cpp:230: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::highscore_register(lua_State*)':
/usr/src/source/game/src/questlua.cpp:243: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::CQuestManager::AddLuaFunctionTable(char const*, luaL_reg*)':
/usr/src/source/game/src/questlua.cpp:431: undefined reference to `lua_newtable'
.obj/questlua.o: In function `quest::CQuestManager::InitializeLua()':
/usr/src/source/game/src/questlua.cpp:473: undefined reference to `lua_open'
/usr/src/source/game/src/questlua.cpp:544: undefined reference to `lua_dofile'
/usr/src/source/game/src/questlua.cpp:557: undefined reference to `lua_dofile'
/usr/src/source/game/src/questlua.cpp:572: undefined reference to `lua_dofile'
/usr/src/source/game/src/questlua.cpp:616: undefined reference to `lua_dofile'
/usr/src/source/game/src/questlua.cpp:625: undefined reference to `lua_setgcthreshold'
/usr/src/source/game/src/questlua.cpp:627: undefined reference to `lua_newtable'
.obj/questlua.o: In function `quest::CQuestManager::GotoSelectState(quest::QuestState&)':
/usr/src/source/game/src/questlua.cpp:636: undefined reference to `luaL_getn'
/usr/src/source/game/src/questlua.cpp:651: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::CQuestManager::GotoConfirmState(quest::QuestState&)':
/usr/src/source/game/src/questlua.cpp:715: undefined reference to `lua_tostring'
.obj/questlua.o: In function `quest::CQuestManager::RunState(quest::QuestState&)':
/usr/src/source/game/src/questlua.cpp:824: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua.cpp:792: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua.cpp:804: undefined reference to `lua_tostring'
.obj/questlua.o:/usr/src/source/game/src/questlua.cpp:816: more undefined references to `lua_tostring' follow
.obj/questlua_guild.o: In function `quest::guild_get_reserve_war_table(lua_State*)':
/usr/src/source/game/src/questlua_guild.cpp:250: undefined reference to `lua_newtable'
/usr/src/source/game/src/questlua_guild.cpp:250: undefined reference to `lua_newtable'
.obj/questlua_guild.o: In function `quest::guild_change_master(lua_State*)':
/usr/src/source/game/src/questlua_guild.cpp:337: undefined reference to `lua_tostring'
.obj/questlua_guild.o: In function `quest::guild_change_master_with_limit(lua_State*)':
/usr/src/source/game/src/questlua_guild.cpp:371: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua_guild.cpp:395: undefined reference to `lua_tostring'
.obj/questlua_horse.o: In function `quest::horse_summon(lua_State*)':
/usr/src/source/game/src/questlua_horse.cpp:68: undefined reference to `lua_tostring'
.obj/questlua_horse.o: In function `quest::horse_set_name(lua_State*)':
/usr/src/source/game/src/questlua_horse.cpp:242: undefined reference to `lua_tostring'
.obj/questlua_horse.o:/usr/src/source/game/src/questlua_horse.cpp:255: more undefined references to `lua_tostring' follow
.obj/questlua_marriage.o: In function `singleton<marriage::CManager>::instance()':
/usr/src/source/game/src/questlua_marriage.cpp:76: undefined reference to `lua_newtable'
.obj/questlua_marriage.o: In function `quest::marriage_wedding_client_command(lua_State*)':
/usr/src/source/game/src/questlua_marriage.cpp:217: undefined reference to `lua_tostring'
.obj/questlua_marriage.o: In function `quest::marriage_wedding_music(lua_State*)':
/usr/src/source/game/src/questlua_marriage.cpp:273: undefined reference to `lua_tostring'
.obj/questlua_marriage.o: In function `quest::FBuildLuaWeddingMapList::operator()(marriage::TMarriage*)':
/usr/src/source/game/src/questlua_marriage.cpp:86: undefined reference to `lua_newtable'
.obj/questlua_npc.o: In function `quest::npc_send_effect(lua_State*)':
/usr/src/source/game/src/questlua_npc.cpp:416: undefined reference to `lua_tostring'
.obj/questlua_oxevent.o: In function `quest::oxevent_open(lua_State*)':
/usr/src/source/game/src/questlua_oxevent.cpp:26: undefined reference to `lua_dofile'
.obj/questlua_party.o: In function `quest::party_run_cinematic(lua_State*)':
/usr/src/source/game/src/questlua_party.cpp:81: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua_party.cpp:86: undefined reference to `lua_tostring'
.obj/questlua_party.o: In function `quest::party_show_cinematic(lua_State*)':
/usr/src/source/game/src/questlua_party.cpp:131: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua_party.cpp:136: undefined reference to `lua_tostring'
.obj/questlua_party.o: In function `quest::party_is_map_member_flag_lt(lua_State*)':
/usr/src/source/game/src/questlua_party.cpp:243: undefined reference to `lua_tostring'
.obj/questlua_party.o:/usr/src/source/game/src/questlua_party.cpp:264: more undefined references to `lua_tostring' follow
.obj/questlua_pc.o: In function `quest::pc_get_socket_items(lua_State*)':
/usr/src/source/game/src/questlua_pc.cpp:2398: undefined reference to `lua_newtable'
/usr/src/source/game/src/questlua_pc.cpp:2398: undefined reference to `lua_newtable'
.obj/questlua_pc.o: In function `quest::pc_charge_cash(lua_State*)':
/usr/src/source/game/src/questlua_pc.cpp:2712: undefined reference to `lua_tostring'
.obj/questlua_pc.o: In function `quest::pc_give_award(lua_State*)':
/usr/src/source/game/src/questlua_pc.cpp:2764: undefined reference to `lua_tostring'
/usr/src/source/game/src/questlua_pc.cpp:2764: undefined reference to `lua_tostring'
.obj/questlua_pc.o: In function `quest::pc_give_award_socket(lua_State*)':
/usr/src/source/game/src/questlua_pc.cpp:2792: undefined reference to `lua_tostring'
.obj/questlua_pet.o: In function `quest::pet_summon(lua_State*)':
/usr/src/source/game/src/questlua_pet.cpp:38: undefined reference to `lua_tostring'
.obj/questlua_pet.o:/usr/src/source/game/src/questlua_pet.cpp:139: more undefined references to `lua_tostring' follow
.obj/questmanager.o: In function `quest::CQuestManager::CanStartQuest(unsigned int)':
/usr/src/source/game/src/questmanager.cpp:911: undefined reference to `lua_dobuffer'
.obj/questmanager.o: In function `quest::CQuestManager::GetQuestStateName(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)':
/usr/src/source/game/src/questmanager.cpp:1026: undefined reference to `lua_tostring'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:245: /usr/home/game/share/bin/game] Error 1
root@source_ira:/usr/src/source/game/src #

 

Alguém sabe como resolver isso? Já tentei com lua 5.1 e 5.2, na net não encontro nada sobre isto...

Link to comment
Share on other sites

Em 15/10/2017 em 15:44, juniorsilva disse:

FreeBSD 32BITS:
(...)
compile war_map.cpp
compile wedding.cpp
compile xmas_event.cpp
linking....
/usr/bin/ld: cannot open output file /root/game/share/game: No such file or directory
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [Makefile:242: /root/game/share/game] Error 1
gmake[1]: Leaving directory '/usr/src/source/server/source/game/src'
gmake: *** [Makefile:19: game] Error 2

Link to comment
Share on other sites

13 horas atrás, Tierri Lopes disse:

/root/game/share/ não existe

Abre MAKEFILE em


/usr/src/source/server/source/game/src 

procura por


TARGET = /root/game/share/game 

Muda para:


TARGET = ../game

 

Repete o mesmo processo para a makefile da db

Depois de mudar o TARGET:
(...)
linking....
/usr/bin/ld: cannot find -lgame
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [Makefile:242: ../game] Error 1
gmake[1]: Leaving directory '/usr/src/source/server/source/game/src'
gmake: *** [Makefile:19: game] Error 2

Link to comment
Share on other sites

9 minutos atrás, Tierri Lopes disse:

Coloca a makefile toda aqui sff, pode ter mais coisas relativos à target

 

Makefile /game/src :
 

Spoiler

CC = c++
CFLAGS += -w -O2 -ggdb3 -g3 -std=c++11 -pipe -mtune=i386 -fstack-protector -static -mcmodel=large
TARGET = ../game

############# libgame libs and includes
INCDIR += -I../../libgame/src
LIBDIR += -L../../libgame
LIBS   += -lgame

############# libpoly libs and includes
INCDIR += -I../../libpoly/src
LIBDIR += -L../../libpoly
LIBS   += -lpoly

############# libsql libs and includes
INCDIR += -I../../libsql/src
LIBDIR += -L../../libsql
LIBS   += -lsql

############# libthecore libs and includes
INCDIR += -I../../libthecore/src
LIBDIR += -L../../libthecore
LIBS   += -lthecore

############# mysql libs and includes
INCDIR += -I../../../extern/mysql
LIBDIR += -L../../../extern/mysql/lib
LIBS   += -lmysqlclient -lz -pthread -lm

############# lua libs and includes
INCDIR += -I../../../extern/lua
LIBDIR += -L../../../extern/lua/lib
LIBS   += -llua

############# boost libs and includes
INCDIR += -I../../../extern/boost
LIBDIR += -L../../../extern/boost/lib
LIBS   += -lboost_system

############# minilzo libs and includes
INCDIR += -I../../../extern/minilzo
LIBDIR += -L../../../extern/minilzo/lib
LIBS   += -lminilzo -lmd

############# devIl libs and includes
INCDIR += -I../../../extern/devil
LIBDIR += -L../../../extern/devil/lib
LIBS   += -lIL -lpng -ltiff -lmng -llcms -ljpeg -ljbig -llzma

############# Source files
CPP=affect.cpp\
	ani.cpp\
	arena.cpp\
	banword.cpp\
	battle.cpp\
	BattleArena.cpp\
	blend_item.cpp\
	BlueDragon.cpp\
	BlueDragon_Binder.cpp\
	buff_on_attributes.cpp\
	buffer_manager.cpp\
	building.cpp\
	char.cpp\
	char_affect.cpp\
	char_battle.cpp\
	char_change_empire.cpp\
	char_dragonsoul.cpp\
	char_horse.cpp\
	char_item.cpp\
	char_manager.cpp\
	char_quickslot.cpp\
	char_resist.cpp\
	char_skill.cpp\
	char_state.cpp\
	cmd.cpp\
	cmd_emotion.cpp\
	cmd_general.cpp\
	cmd_gm.cpp\
	cmd_oxevent.cpp\
	config.cpp\
	constants.cpp\
	crc32.cpp\
	cube.cpp\
	db.cpp\
	desc.cpp\
	desc_client.cpp\
	desc_manager.cpp\
	desc_p2p.cpp\
	dragon_soul_table.cpp\
	DragonLair.cpp\
	DragonSoul.cpp\
	dungeon.cpp\
	empire_text_convert.cpp\
	entity.cpp\
	entity_view.cpp\
	event.cpp\
	event_queue.cpp\
	exchange.cpp\
	file_loader.cpp\
	fishing.cpp\
	FSM.cpp\
	gm.cpp\
	group_text_parse_tree.cpp\
	guild.cpp\
	guild_manager.cpp\
	guild_war.cpp\
	horse_rider.cpp\
	horsename_manager.cpp\
	input.cpp\
	input_auth.cpp\
	input_db.cpp\
	input_login.cpp\
	input_main.cpp\
	input_p2p.cpp\
	item.cpp\
	item_addon.cpp\
	item_attribute.cpp\
	item_manager.cpp\
	item_manager_idrange.cpp\
	item_manager_read_tables.cpp\
	locale.cpp\
	locale_service.cpp\
	log.cpp\
	login_data.cpp\
	lzo_manager.cpp\
	main.cpp\
	map_location.cpp\
	MarkConvert.cpp\
	MarkImage.cpp\
	MarkManager.cpp\
	marriage.cpp\
	messenger_manager.cpp\
	mining.cpp\
	mob_manager.cpp\
	motion.cpp\
	OXEvent.cpp\
	p2p.cpp\
	packet_info.cpp\
	party.cpp\
	PetSystem.cpp\
	polymorph.cpp\
	priv_manager.cpp\
	pvp.cpp\
	questevent.cpp\
	questlua.cpp\
	questlua_affect.cpp\
	questlua_arena.cpp\
	questlua_battleArena.cpp\
	questlua_building.cpp\
	questlua_danceevent.cpp\
	questlua_dragonlair.cpp\
	questlua_dragonsoul.cpp\
	questlua_dungeon.cpp\
	questlua_game.cpp\
	questlua_global.cpp\
	questlua_guild.cpp\
	questlua_horse.cpp\
	questlua_item.cpp\
	questlua_marriage.cpp\
	questlua_npc.cpp\
	questlua_oxevent.cpp\
	questlua_party.cpp\
	questlua_pc.cpp\
	questlua_pet.cpp\
	questlua_quest.cpp\
	questlua_target.cpp\
	questmanager.cpp\
	questnpc.cpp\
	questpc.cpp\
	refine.cpp\
	regen.cpp\
	safebox.cpp\
	sectree.cpp\
	sectree_manager.cpp\
	shop.cpp\
	shop_manager.cpp\
	skill.cpp\
	skill_power.cpp\
	start_position.cpp\
	target.cpp\
	text_file_loader.cpp\
	TrafficProfiler.cpp\
	trigger.cpp\
	utils.cpp\
	vector.cpp\
	war_map.cpp\
	wedding.cpp\
	xmas_event.cpp\
###############################################################################
CPPOBJS	= $(CPP:%.cpp=$(OBJDIR)/%.o)

OBJDIR = .obj
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

default: $(TARGET)

clean:
	@echo Clean done!
	@find . -type f | xargs -n 5 touch
	@rm -rf $(OBJDIR)
	@rm -rf $(TARGET)

$(OBJDIR)/%.o: %.cpp
	@echo compile $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

$(TARGET): $(CPPOBJS)
	@echo linking....
	@$(CC) $(CFLAGS) $(LIBDIR) $(CPPOBJS) $(LIBS) -o $(TARGET)

 

Makefile /db/src :
 

Spoiler

CC = c++
CFLAGS += -w -O2 -ggdb3 -g3 -std=c++11 -pipe -mtune=i386 -fstack-protector -static -mcmodel=large
TARGET = ../db

############# libthecore libs and includes
INCDIR += -I/../../libthecore/src
LIBDIR += -L../../libthecore
LIBS   += -lthecore

############# libgame libs and includes
INCDIR += -I../../libgame/src
LIBDIR += -L../../libgame
LIBS   += -lgame

############# libsql libs and includes
INCDIR += -I../../libsql/src
LIBDIR += -L../../libsql
LIBS   += -lsql

############# libpoly libs and includes
INCDIR += -I../../libpoly/src
LIBDIR += -L../../libpoly
LIBS   += -lpoly

############# mysql libs and includes
INCDIR += -I../../../extern/mysql
LIBDIR += -L../../../extern/mysql/lib
LIBS   += -lmysqlclient -lz -pthread

############# boost libs and includes
INCDIR += -I../../../extern/boost
LIBDIR += -L../../../extern/boost/lib
LIBS   += -lboost_system

############# source files
CPP=Cache.cpp\
	ClientManager.cpp\
	ClientManagerBoot.cpp\
	ClientManagerEventFlag.cpp\
	ClientManagerGuild.cpp\
	ClientManagerHorseName.cpp\
	ClientManagerLogin.cpp\
	ClientManagerParty.cpp\
	ClientManagerPlayer.cpp\
	Config.cpp\
	CsvReader.cpp\
	DBManager.cpp\
	GuildManager.cpp\
	ItemAwardManager.cpp\
	ItemIDRangeManager.cpp\
	LoginData.cpp\
	Main.cpp\
	Marriage.cpp\
	MoneyLog.cpp\
	NetBase.cpp\
	Peer.cpp\
	PeerBase.cpp\
	PrivManager.cpp\
	ProtoReader.cpp\
############################################################################
OBJDIR = .obj

$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
OBJS = $(CPP:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET)

clean:
	@echo Clean done!
	@find . -type f | xargs -n 5 touch
	@rm -rf $(OBJDIR)
	@rm -rf $(TARGET)

$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)

$(OBJDIR)/%.o: %.cpp
	@echo compile $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

 

Ultimo erro:

linking....
/usr/bin/ld: cannot find -lgame
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [Makefile:242: ../game] Error 1
gmake[1]: Leaving directory '/usr/src/source/server/source/game/src'
gmake: *** [Makefile:19: game] Error 2

Edited by cjunior2011
  • Like 1
Link to comment
Share on other sites

1 minute ago, cjunior2011 said:

 

Makefile /game/src :
 

  Hide contents


CC = c++
CFLAGS += -w -O2 -ggdb3 -g3 -std=c++11 -pipe -mtune=i386 -fstack-protector -static -mcmodel=large
TARGET = ../game

############# libgame libs and includes
INCDIR += -I../../libgame/src
LIBDIR += -L../../libgame
LIBS   += -lgame

############# libpoly libs and includes
INCDIR += -I../../libpoly/src
LIBDIR += -L../../libpoly
LIBS   += -lpoly

############# libsql libs and includes
INCDIR += -I../../libsql/src
LIBDIR += -L../../libsql
LIBS   += -lsql

############# libthecore libs and includes
INCDIR += -I../../libthecore/src
LIBDIR += -L../../libthecore
LIBS   += -lthecore

############# mysql libs and includes
INCDIR += -I../../../extern/mysql
LIBDIR += -L../../../extern/mysql/lib
LIBS   += -lmysqlclient -lz -pthread -lm

############# lua libs and includes
INCDIR += -I../../../extern/lua
LIBDIR += -L../../../extern/lua/lib
LIBS   += -llua

############# boost libs and includes
INCDIR += -I../../../extern/boost
LIBDIR += -L../../../extern/boost/lib
LIBS   += -lboost_system

############# minilzo libs and includes
INCDIR += -I../../../extern/minilzo
LIBDIR += -L../../../extern/minilzo/lib
LIBS   += -lminilzo -lmd

############# devIl libs and includes
INCDIR += -I../../../extern/devil
LIBDIR += -L../../../extern/devil/lib
LIBS   += -lIL -lpng -ltiff -lmng -llcms -ljpeg -ljbig -llzma

############# Source files
CPP=affect.cpp\
	ani.cpp\
	arena.cpp\
	banword.cpp\
	battle.cpp\
	BattleArena.cpp\
	blend_item.cpp\
	BlueDragon.cpp\
	BlueDragon_Binder.cpp\
	buff_on_attributes.cpp\
	buffer_manager.cpp\
	building.cpp\
	char.cpp\
	char_affect.cpp\
	char_battle.cpp\
	char_change_empire.cpp\
	char_dragonsoul.cpp\
	char_horse.cpp\
	char_item.cpp\
	char_manager.cpp\
	char_quickslot.cpp\
	char_resist.cpp\
	char_skill.cpp\
	char_state.cpp\
	cmd.cpp\
	cmd_emotion.cpp\
	cmd_general.cpp\
	cmd_gm.cpp\
	cmd_oxevent.cpp\
	config.cpp\
	constants.cpp\
	crc32.cpp\
	cube.cpp\
	db.cpp\
	desc.cpp\
	desc_client.cpp\
	desc_manager.cpp\
	desc_p2p.cpp\
	dragon_soul_table.cpp\
	DragonLair.cpp\
	DragonSoul.cpp\
	dungeon.cpp\
	empire_text_convert.cpp\
	entity.cpp\
	entity_view.cpp\
	event.cpp\
	event_queue.cpp\
	exchange.cpp\
	file_loader.cpp\
	fishing.cpp\
	FSM.cpp\
	gm.cpp\
	group_text_parse_tree.cpp\
	guild.cpp\
	guild_manager.cpp\
	guild_war.cpp\
	horse_rider.cpp\
	horsename_manager.cpp\
	input.cpp\
	input_auth.cpp\
	input_db.cpp\
	input_login.cpp\
	input_main.cpp\
	input_p2p.cpp\
	item.cpp\
	item_addon.cpp\
	item_attribute.cpp\
	item_manager.cpp\
	item_manager_idrange.cpp\
	item_manager_read_tables.cpp\
	locale.cpp\
	locale_service.cpp\
	log.cpp\
	login_data.cpp\
	lzo_manager.cpp\
	main.cpp\
	map_location.cpp\
	MarkConvert.cpp\
	MarkImage.cpp\
	MarkManager.cpp\
	marriage.cpp\
	messenger_manager.cpp\
	mining.cpp\
	mob_manager.cpp\
	motion.cpp\
	OXEvent.cpp\
	p2p.cpp\
	packet_info.cpp\
	party.cpp\
	PetSystem.cpp\
	polymorph.cpp\
	priv_manager.cpp\
	pvp.cpp\
	questevent.cpp\
	questlua.cpp\
	questlua_affect.cpp\
	questlua_arena.cpp\
	questlua_battleArena.cpp\
	questlua_building.cpp\
	questlua_danceevent.cpp\
	questlua_dragonlair.cpp\
	questlua_dragonsoul.cpp\
	questlua_dungeon.cpp\
	questlua_game.cpp\
	questlua_global.cpp\
	questlua_guild.cpp\
	questlua_horse.cpp\
	questlua_item.cpp\
	questlua_marriage.cpp\
	questlua_npc.cpp\
	questlua_oxevent.cpp\
	questlua_party.cpp\
	questlua_pc.cpp\
	questlua_pet.cpp\
	questlua_quest.cpp\
	questlua_target.cpp\
	questmanager.cpp\
	questnpc.cpp\
	questpc.cpp\
	refine.cpp\
	regen.cpp\
	safebox.cpp\
	sectree.cpp\
	sectree_manager.cpp\
	shop.cpp\
	shop_manager.cpp\
	skill.cpp\
	skill_power.cpp\
	start_position.cpp\
	target.cpp\
	text_file_loader.cpp\
	TrafficProfiler.cpp\
	trigger.cpp\
	utils.cpp\
	vector.cpp\
	war_map.cpp\
	wedding.cpp\
	xmas_event.cpp\
###############################################################################
CPPOBJS	= $(CPP:%.cpp=$(OBJDIR)/%.o)

OBJDIR = .obj
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

default: $(TARGET)

clean:
	@echo Clean done!
	@find . -type f | xargs -n 5 touch
	@rm -rf $(OBJDIR)
	@rm -rf $(TARGET)

$(OBJDIR)/%.o: %.cpp
	@echo compile $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

$(TARGET): $(CPPOBJS)
	@echo linking....
	@$(CC) $(CFLAGS) $(LIBDIR) $(CPPOBJS) $(LIBS) -o $(TARGET)

 

Makefile /db/src :
 

  Hide contents


CC = c++
CFLAGS += -w -O2 -ggdb3 -g3 -std=c++11 -pipe -mtune=i386 -fstack-protector -static -mcmodel=large
TARGET = ../db

############# libthecore libs and includes
INCDIR += -I/../../libthecore/src
LIBDIR += -L../../libthecore
LIBS   += -lthecore

############# libgame libs and includes
INCDIR += -I../../libgame/src
LIBDIR += -L../../libgame
LIBS   += -lgame

############# libsql libs and includes
INCDIR += -I../../libsql/src
LIBDIR += -L../../libsql
LIBS   += -lsql

############# libpoly libs and includes
INCDIR += -I../../libpoly/src
LIBDIR += -L../../libpoly
LIBS   += -lpoly

############# mysql libs and includes
INCDIR += -I../../../extern/mysql
LIBDIR += -L../../../extern/mysql/lib
LIBS   += -lmysqlclient -lz -pthread

############# boost libs and includes
INCDIR += -I../../../extern/boost
LIBDIR += -L../../../extern/boost/lib
LIBS   += -lboost_system

############# source files
CPP=Cache.cpp\
	ClientManager.cpp\
	ClientManagerBoot.cpp\
	ClientManagerEventFlag.cpp\
	ClientManagerGuild.cpp\
	ClientManagerHorseName.cpp\
	ClientManagerLogin.cpp\
	ClientManagerParty.cpp\
	ClientManagerPlayer.cpp\
	Config.cpp\
	CsvReader.cpp\
	DBManager.cpp\
	GuildManager.cpp\
	ItemAwardManager.cpp\
	ItemIDRangeManager.cpp\
	LoginData.cpp\
	Main.cpp\
	Marriage.cpp\
	MoneyLog.cpp\
	NetBase.cpp\
	Peer.cpp\
	PeerBase.cpp\
	PrivManager.cpp\
	ProtoReader.cpp\
############################################################################
OBJDIR = .obj

$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
OBJS = $(CPP:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET)

clean:
	@echo Clean done!
	@find . -type f | xargs -n 5 touch
	@rm -rf $(OBJDIR)
	@rm -rf $(TARGET)

$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)

$(OBJDIR)/%.o: %.cpp
	@echo compile $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

 

 

Já está correcto

erro do lgame, significa que libgame nao esta compilada,

Vê  esta resposta para criar script para compilar primeiro as libs e de seguida game e db:

https://tlthings.net/index.php?/topic/1093-downloadsource-client-server-tools-by-ira/&do=findComment&comment=4300

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...