LCKB
missing -lmysqlclient and wait_player error - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: missing -lmysqlclient and wait_player error (/showthread.php?tid=5030)

Pages: 1 2


- kdy - 03-11-2023


does anyone know how to fix a some things in the desarija compiler? 2 2




- nicolasg - 03-11-2023


Probably u makefile.inc file is wrong, show it to us




- kdy - 03-11-2023



35 minutes ago, nicolasg said:




Probably u makefile.inc file is wrong, show it to us




.SUFFIXES : .cpp .o

.PHONY: clean dep new cleanall local debug clear test

CXX = ccache g++ -g

BOOST_INCLUDE = /usr/local/include/boost-1_60

BOOST_LIB_VER = -gcc44-mt-d-1_60

OPT_CRYPT = -I../ShareLib \

        -I/usr/include/mysql \

        -I/usr/local/ssl/include \

        -I/usr/local/include/botan-1.10 \

        -I$(BOOST_INCLUDE)

        

OPT_LDOBJ = -L../ShareLib \

            -L/usr/local/lib \

            -L/usr/local/apr/lib \

            -L/usr/lib/mysql \

            -lSharelib \

            -lmysqlclient \

            -lboost_thread$(BOOST_LIB_VER) \

            -lboost_system$(BOOST_LIB_VER) \

            -llog4cxx \

            -laprutil-1 \

            -lapr-1 \

            -lrt \

            -lstdc++ \

            -lexpat \

            -lz \

            -lpthread \

            -ljsoncpp

            

OPT_VER=-DLC_VER=\"$(LC_VER)\"

CXXFLAGS =  -D_THREAD_SAFE -finline-functions \

            -funroll-loops \

            -fdefer-pop \

            -fstrength-reduce \

            -Wno-write-strings \

            -Wno-char-subscripts \

            $(OPT_BIGENDIAN) \

            $(OPT_LANG) \

            $(OPT_DEBUG) \

            $(OPT_DEF) \

            $(OPT_TEST) \

            $(OPT_VER) \

            $(OPT_CRYPT)




- nicolasg - 03-11-2023


Hmm u can try changing

cxx flag to this: CXX to

ccache g++ -m32

and OPT_LDOBJ flag to this

OPT_LDOBJ = -L../ShareLib \
            -L/usr/local/lib \
            -L/usr/local/apr/lib \
            -L/usr/lib/mysql \
            -lSharelib \
            -l:libmysqlclient.a \
            -lboost_thread$(BOOST_LIB_VER) \
            -lboost_system$(BOOST_LIB_VER) \
            -llog4cxx \
            -l:libaprutil-1.a \
            -l:libapr-1.a \
            -lrt \
            -lstdc++ \
            -lexpat \
            -lz \
            -lpthread \
            -ljsoncpp

i'm not sure if all that are installed by default, or I installed it, but u can give a try




- kdy - 03-11-2023


hmm 2




- kdy - 03-11-2023


i dont understand why this happens, i have mysql installed




- kdy - 03-11-2023



Just now, kdy said:




i dont understand why this happens, i have mysql installed




wtf, ok update, mysql fix but now 2




- nicolasg - 03-11-2023



1 minute ago, kdy said:




wtf, ok update, mysql fix but now 2




Check u boost version i think @Desarija compiler have ¿1_65_1?




- kdy - 03-11-2023


yes, thats what i was looking at




- kdy - 03-11-2023


yes, that was it but there are more errors xDD