• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Compilation sql/xml

Sakiko

Member
Joined
Oct 28, 2010
Messages
125
Reaction score
24
Hello,

im trying to compile my ot on linux and i have a problem at the end, the package of libxml2 is missing (its installed):


/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
make: *** [tibia] Error 1


P.S. my ot was before on 32bit debian 6, now im trying it on 64 deb 7
Thank you for reply
 
Last edited:
Yes i have installed gcc-multilib, ia32-libs
I think the problem is in path or missed another package


I tryied to locate libxml2 and result is:

/usr/lib/x86_64-linux-gnu/libxml2.so.2
/usr/lib/x86_64-linux-gnu/libxml2.so.2.8.0


in makefile it looks such different

CFLAGS=-I. -I/usr/include/libxml2 -I/usr/include/lua50 -I/usr/local/include

LIBLINK=-L/usr/lib64 -lxml2 -lz -lpthread -lm -llualib50 -llua50 -ldl -lboost_thread -lmysqlclient -Wl,-Map=otserv.map

ENDFLAGS=-m32 -Winvalid-pch -O2 -include "preheaders.h"
 
Last edited:
My bet is ur system is looking for libxml2.so while u only got libxml2.so.2 and libxml2.so.2.8.0

Try symlinking libxml2.so to libxml2.so.2 or try updating ur cache: ldconfig -v
 
Back
Top