24.06.2015, 22:54
(
Последний раз редактировалось Typhome; 25.06.2015 в 02:42.
)
Quote:
Can you post precisely what you did?
I am getting this error; CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find SAMPSDK (missing: SAMPSDK_DIR SAMPSDK_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake/FindSAMPSDK.cmake:21 (find_package_handle_standard_args) CMakeLists.txt:30 (find_package) |
Код:
Could NOT find SAMPSDK (missing: SAMPSDK_DIR SAMPSDK_INCLUDE_DIR)
Actually I haven't got correct mysql_static plugin, because size is only circa 540kB. I don't know why compiler won't include libraries.
https://www.upload.ee/files/4799154/...static.so.html
https://www.upload.ee/files/4799153/mysql.so.html
makefile:
Код:
GPP=g++ -m32 GCC=gcc -m32 COMPILE_FLAGS = -c -O3 -w -fPIC -DLINUX -Wall -I libs/ -I libs/sdk/amx/ LIBRARIES = -pthread -lrt -Wl,-Bstatic -lboost_thread -lboost_chrono -lboost_date_time -lboost_system -lboost_atomic -Wl,-Bdynamic all: compile dynamic_link static_link clean dynamic: compile dynamic_link clean static: compile static_link clean compile: @mkdir -p bin @echo Compiling plugin.. @ $(GPP) $(COMPILE_FLAGS) -std=c++0x src/*.cpp @echo Compiling plugin SDK.. @ $(GPP) $(COMPILE_FLAGS) libs/sdk/*.cpp @ $(GCC) $(COMPILE_FLAGS) libs/sdk/amx/*.c dynamic_link: @echo Linking \(dynamic\).. @ $(GPP) -O2 -fshort-wchar -shared -o "bin/mysql.so" *.o -L/usr/lib/mysql/libmysqlclient_r.so $(LIBRARIES) static_link: @echo Linking \(static\).. @ $(GPP) -O2 -fshort-wchar -shared -o "bin/mysql_static.so" *.o -Wl,-Bstatic -L/usr/lib/mysql/libmysqlclient_r.so -Wl,-Bdynamic $(LIBRARIES) clean: @ rm -f *.o @echo Done.
Код:
[root@localhost SA-MP-MySQL-R39-3]# cd bin [root@localhost bin]# ls -al total 1080 drwxr-xr-x. 2 root root 4096 Jun 25 02:02 . drwxr-xr-x. 7 root root 4096 Jun 25 02:05 .. -rwxr-xr-x. 1 root root 547152 Jun 25 02:02 mysql.so -rwxr-xr-x. 1 root root 547152 Jun 25 02:02 mysql_static.so