01.12.2014, 02:07
Hello! Unfortunatelly I have CentOS server and want to compile your GDK from the box.
What I have done:
updated GCC to 4.7.6 with devtoolset-1.1
updated python to 2.7
installed cmake
First of all try to make project and success with it.
Next step I turned on the following options:
And tried to recompile again:
Could you help me with this issue?
Many thanks for future investigation
What I have done:
updated GCC to 4.7.6 with devtoolset-1.1
updated python to 2.7
installed cmake
First of all try to make project and success with it.
Next step I turned on the following options:
PHP код:
option(SAMPGDK_STATIC "Build static library instead" ON)
option(SAMPGDK_BUILD_PLUGINS "Build example plugins" ON)
option(SAMPGDK_BUILD_AMALGAMATION "Build amalgamation" ON)
PHP код:
[ 0%] Built target sampgdk_init
[ 2%] Generating lib/sampgdk/a_vehicles.c
[ 4%] Generating include/sampgdk/a_http.h
[ 6%] Generating include/sampgdk/a_objects.h
[ 8%] Generating include/sampgdk/a_players.h
[ 10%] Generating include/sampgdk/a_samp.h
[ 12%] Generating include/sampgdk/a_vehicles.h
[ 14%] Generating lib/sampgdk/a_http.api
[ 16%] Generating lib/sampgdk/a_objects.api
[ 18%] Generating lib/sampgdk/a_players.api
[ 20%] Generating lib/sampgdk/a_samp.api
[ 22%] Generating lib/sampgdk/a_vehicles.api
[ 24%] Generating lib/sampgdk/sampgdk.sym
[ 26%] Generating lib/sampgdk/a_http.c
[ 28%] Generating lib/sampgdk/a_objects.c
[ 30%] Generating lib/sampgdk/a_players.c
[ 32%] Generating lib/sampgdk/a_samp.c
Scanning dependencies of target sampgdk
[ 34%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/amx.c.o
[ 36%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/amxhooks.c.o
[ 38%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/array.c.o
[ 40%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/callback.c.o
[ 42%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/fakeamx.c.o
[ 44%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/hook.c.o
[ 46%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/log.c.o
[ 48%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/logprintf.c.o
[ 51%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/native.c.o
[ 53%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/param.c.o
[ 55%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/plugin.c.o
[ 57%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/timer.c.o
[ 59%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/internal/init.c.o
[ 61%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_samp.idl.c.o
[ 63%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/core.c.o
[ 65%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/interop.c.o
[ 67%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/version.c.o
[ 69%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_http.c.o
[ 71%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_objects.c.o
[ 73%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_players.c.o
[ 75%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_samp.c.o
[ 77%] Building C object CMakeFiles/sampgdk.dir/lib/sampgdk/a_vehicles.c.o
Linking C static library libsampgdk.a
[ 77%] Built target sampgdk
[ 79%] Generating amalgamation
[ 79%] Built target sampgdk_amalgam
[ 81%] Packaging amalgamation files
Archiving file: /home/batman/sampx/build/lib/sampgdk/sampgdk.c
Archiving file: /home/batman/sampx/build/lib/sampgdk/sampgdk.h
Archiving file: /home/batman/sampx/sampgdk/doc/how-to-use-amalgamation.txt
Done
[ 81%] Built target sampgdk_amalgam_package
Scanning dependencies of target helloworld
[ 83%] Building CXX object plugins/helloworld/CMakeFiles/helloworld.dir/helloworld.cpp.o
[ 85%] Building CXX object plugins/helloworld/CMakeFiles/helloworld.dir/home/batman/sampx/samp-plugin-sdk/amxplugin.cpp.o
Linking CXX shared module helloworld.so
/usr/bin/ld: skipping incompatible /opt/centos/devtoolset-1.1/root/usr/lib/gcc/x86_64-redhat-linux/4.7.2/libstdc++_nonshared.a when searching for -lstdc++_nonshared
/usr/bin/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
make[2]: *** [plugins/helloworld/helloworld.so] Error 1
make[1]: *** [plugins/helloworld/CMakeFiles/helloworld.dir/all] Error 2
make: *** [all] Error 2
Many thanks for future investigation