20.09.2017, 10:38
(
Последний раз редактировалось Aliassassin123456; 21.09.2017 в 11:46.
)
I'm trying to compile latest version of the plugin using Ubuntu 14.04.5 and it fails with this error:
CMake output:
MySQL libraries are in /usr/lib/x86_64-linux-gnu/, I tried to link them manually but failed.
No errors on compiling tho.
Код:
[100%] Building CXX object src/CMakeFiles/mysql.dir/main.cpp.o Linking CXX shared module mysql.so /usr/bin/ld: cannot find -lmysqlclient_r collect2: error: ld returned 1 exit status make[2]: *** [src/mysql.so] Error 1 make[1]: *** [src/CMakeFiles/mysql.dir/all] Error 2 make: *** [all] Error 2
Код:
-- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found MySQLCAPI: /usr/include/mysql -- CMake version: 3.1.3 -- Version: 4.0.0 -- Build type: -- Performing Test HAVE_STD_CPP11_FLAG -- Performing Test HAVE_STD_CPP11_FLAG - Success -- Performing Test FMT_CPP11_CMATH -- Performing Test FMT_CPP11_CMATH - Success -- Performing Test FMT_CPP11_UNISTD_H -- Performing Test FMT_CPP11_UNISTD_H - Success -- Performing Test FMT_CPP11_SNPRINTF -- Performing Test FMT_CPP11_SNPRINTF - Success -- Performing Test SUPPORTS_VARIADIC_TEMPLATES -- Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success -- Performing Test SUPPORTS_INITIALIZER_LIST -- Performing Test SUPPORTS_INITIALIZER_LIST - Failed -- Performing Test SUPPORTS_ENUM_BASE -- Performing Test SUPPORTS_ENUM_BASE - Success -- Performing Test SUPPORTS_TYPE_TRAITS -- Performing Test SUPPORTS_TYPE_TRAITS - Failed -- Performing Test SUPPORTS_USER_DEFINED_LITERALS -- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success -- Looking for open -- Looking for open - found -- Looking for alloca.h -- Looking for alloca.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for malloc.h -- Looking for malloc.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Found SAMPSDK: /root/SA-MP-MySQL/libs/sdk -- Configuring done -- Generating done -- Build files have been written to: /root/SA-MP-MySQL/build
No errors on compiling tho.