Jump to content

How To compile Metin2 Server Source on FreeBSD ?


Denis

Recommended Posts

Then you do this:
    From libdevil/ copy all .a files into /usr/lib
    From libgame/From lib copy the From libgame.a file into /usr/lib
    From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib
    From liblua/From lib copy the .a files into /usr/lib
    From libpoly/ copy the .o files into /usr/lib
    From libserverkey/ copy the .o files into /usr/lib
    From libthecore/From lib copy the From libthecore.a files into /usr/lib


where i can find this 
i am use freebsd 9.2 amd 64 bit

1)gmake:

1
cd /usr/ports/devel/gmake && make install clean

2)makedepend:
 

1
cd /usr/ports/devel/makedepend && make install clean

 
3)svn:
 

1
cd /usr/ports/devel/subversion && make install clean

 
4)devil:
 

1
cd /usr/ports/graphics/devil && make install clean

5)G++:

1
cd /usr/ports/lang/gcc48/ && make install clean

i do all of this steps

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

  1.    From libdevil/ copy all .a files into /usr/lib

        From libgame/From lib copy the From libgame.a file into /usr/lib

        From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib

        From liblua/From lib copy the .a files into /usr/lib

        From libpoly/ copy the .o files into /usr/lib

        From libserverkey/ copy the .o files into /usr/lib

        From libthecore/From lib copy the From libthecore.a files into /usr/lib

  2. where are that libdevil ,libgame etc?
Link to comment
Share on other sites

  • Bronze

 

  1.    From libdevil/ copy all .a files into /usr/lib

        From libgame/From lib copy the From libgame.a file into /usr/lib

        From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib

        From liblua/From lib copy the .a files into /usr/lib

        From libpoly/ copy the .o files into /usr/lib

        From libserverkey/ copy the .o files into /usr/lib

        From libthecore/From lib copy the From libthecore.a files into /usr/lib

  2. where are that libdevil ,libgame etc?

 

 

with src

Link to comment
Share on other sites

I tried to compile db/src , but gives me an error .

<command-line>: warning: missing terminating " character
version.cpp:11: error: missing terminating " character
version.cpp: In function 'void WriteVersion()':
version.cpp:11: error: expected primary-expression before ')' token
compile CsvReader.cpp
gmake: *** [.obj/version.o] Error 1
gmake: *** Waiting for unfinished jobs....

Why ?

 

Link to comment
Share on other sites

I get this error when I try to compile the db from mainline

compile Config.cpp
gmake: *** No rule to make target `/usr/include/boost/unordered_map.hpp', needed by `.obj/NetBase.o'.  Stop.
gmake: *** Waiting for unfinished jobs....

The thing is that I have boost installed ...

 

Edit :

 

How to solve ?

cp -R /usr/local/include/boost /usr/include/boost

and

cd /usr/src/your source/Srcs/Server/db/src && gmake dep
Link to comment
Share on other sites

  • 5 weeks later...

Could someone help me with this error? 

 

 
error:
 
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
char.cpp:7218: warning: this decimal constant is unsigned only in ISO C90
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/char.o] Error 1
gmake: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:1896: Warning: end of file not at end of a line; newline inserted
{standard input}:3991: Error: suffix or operands invalid for `mov'
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/OXEvent.o] Error 1
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775: warning: suggest explicit braces to avoid ambiguous 'else'
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2389: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2393: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2405: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2409: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2436: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2444: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:3625: warning: suggest parentheses around && within ||
char_item.cpp:3649: warning: suggest parentheses around && within ||
char_item.cpp:5577: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5795: warning: suggest parentheses around comparison in operand of |
char_item.cpp:5649: warning: unused variable 'wDestCell'
char_item.cpp:5650: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6655: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6719: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6731: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7917: warning: unused variable 'itemType'
char_item.cpp:7918: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6766: warning: 'pBuff' may be used uninitialized in this function

 

Link to comment
Share on other sites

i have error when i try compile, omg

 

 

root@serwer:/usr/home/serwer # cd /usr/src/Server/game/src
root@serwer:/usr/src/Server/game/src # gmake
linking /usr/home/game_compiled....
/usr/bin/ld: skipping incompatible /usr/local/lib/libpng.so when searching for -                                                                             lpng
/usr/bin/ld: skipping incompatible /usr/local/lib/libpng.a when searching for -l                                                                             png
/usr/bin/ld: cannot find -lpng
gmake: *** [/usr/home/game_compiled] Error 1
root@serwer:/usr/src/Server/game/src #

 

 

im so upset, OMG

Link to comment
Share on other sites

 PORNESC BAZA DE DATE ..
Real Server
Log OffAsyncSQL: connected to localhost (reconnect 1)
Success PLAYER
AsyncSQL: connected to localhost (reconnect 1)
Success ACCOUNT
AsyncSQL: connected to localhost (reconnect 1)
AsyncSQL: connected to localhost (reconnect 1)
AsyncSQL: connected to localhost (reconnect 1)
Success COMMON
AsyncSQL: connected to localhost (reconnect 1)
AsyncSQL: connected to localhost (reconnect 1)


 PORNESC LOGINU ..
PUBLIC_IP: 5.39.23.236 interface vtnet0
HOSTNAME: auth
AsyncSQL: connected to localhost (reconnect 1)
CommonSQL connected
Setting Locale "romania" (Path: locale/romania)
Setting DB to locale latin2
AsyncSQL: connected to localhost (reconnect 1)
PlayerSQL connected
LogSQL connected

syserr:

 

SYSERR: Oct  3 17:51:08 :: pid_init: 
Start of pid: 7462


SYSERR: Oct  3 17:51:08 :: Start: TABLE_POSTFIX not configured use default

syslog:

 

 
SYSERR: Oct  3 17:51:08 :: Start: TABLE_POSTFIX not configured use default
Oct  3 17:51:08 :: connecting to MySQL server (player)
Oct  3 17:51:08 :: CREATING DIRECT_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING MAIN_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING ASYNC_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 ::    OK
Oct  3 17:51:08 :: connecting to MySQL server (account)
Oct  3 17:51:08 :: CREATING DIRECT_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING MAIN_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING ASYNC_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 ::    OK
Oct  3 17:51:08 :: connecting to MySQL server (common)
Oct  3 17:51:08 :: CREATING DIRECT_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING MAIN_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 :: CREATING ASYNC_SQL
Oct  3 17:51:08 :: AsyncSQL: locale latin2
Oct  3 17:51:08 ::    OK
Oct  3 17:51:08 :: ClientManager initialization.. 
Oct  3 17:51:08 :: InitializeLocalization() - LoadLocaleTable(count:13)
Oct  3 17:51:08 :: locale[LOCALE] = romania
Oct  3 17:51:08 :: Changed g_stLocale latin2 to euckr
Oct  3 17:51:08 :: before call SetLocale: latin2
Oct  3 17:51:08 :: SetLocale start

 

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

In freebsd 10 default compiler is  clang++

 

 

In the base system, yes, FreeBSD finally moved to Clang for licensing reasons (GCCs GPL is considered too restrictive for the BSD license family).

It should still be possible to use GCC after installing it from pkg/ports, though.

 

It is also possible to use Clang for Metin2, but some code changes are required.

This mainly applies to some include files with preprocessor directives.

There are some non-standard language extensions in GCC.

The code is written to use Boost components as a replacement when not using GCC (e.g. on Windows), but unfortunately Clang defines the "__GNUC__" makro used for this purpose.

 

After changing the conditional defines, Clang should compile everything just fine.

Also note that you should link to libc++ instead of GCCs libstdc++.

 

The server works, but I don't yet know how stable it is.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.