Comments (6)
You should download full sources (with submodules): https://github.com/ziggi/FCNPC/blob/master/README.md#how-to-clone
from fcnpc.
Ok that seemed to work. Now I get a rubbish error as soon as it finishes to compile!
# make
Scanning dependencies of target subhook
[ 3%] Building C object lib/subhook/CMakeFiles/subhook.dir/subhook.c.o
In file included from /home/usr/FCNPC/lib/subhook/subhook.c:52:0:
/home/usr/FCNPC/lib/subhook/subhook_x86.c: In function ‘subhook_disasm’:
/home/usr/FCNPC/lib/subhook/subhook_x86.c:171:10: warning: variable ‘address_size’ set but not used [-Wunused-but-set-variable]
size_t address_size = 4;
^
Linking C static library libsubhook.a
[ 3%] Built target subhook
Scanning dependencies of target FCNPC
[ 7%] Building CXX object CMakeFiles/FCNPC.dir/lib/fopen_s/fopen_s.cpp.o
[ 11%] Building CXX object CMakeFiles/FCNPC.dir/src/CMovePath.cpp.o
[ 14%] Building CXX object CMakeFiles/FCNPC.dir/src/CPlayback.cpp.o
[ 18%] Building CXX object CMakeFiles/FCNPC.dir/src/CExceptionHandler.cpp.o
[ 22%] Building CXX object CMakeFiles/FCNPC.dir/src/CServer.cpp.o
[ 25%] Building CXX object CMakeFiles/FCNPC.dir/src/CNodeManager.cpp.o
[ 29%] Building CXX object CMakeFiles/FCNPC.dir/src/CHooks.cpp.o
[ 33%] Building CXX object CMakeFiles/FCNPC.dir/src/CMaths.cpp.o
[ 37%] Building CXX object CMakeFiles/FCNPC.dir/src/CAddress.cpp.o
[ 40%] Building CXX object CMakeFiles/FCNPC.dir/src/CAnimationInfo.cpp.o
[ 44%] Building CXX object CMakeFiles/FCNPC.dir/src/CWeaponInfo.cpp.o
[ 48%] Building CXX object CMakeFiles/FCNPC.dir/src/Main.cpp.o
[ 51%] Building CXX object CMakeFiles/FCNPC.dir/src/CPlayerManager.cpp.o
[ 55%] Building CXX object CMakeFiles/FCNPC.dir/src/CVehicleInfo.cpp.o
[ 59%] Building CXX object CMakeFiles/FCNPC.dir/src/RPCs.cpp.o
[ 62%] Building CXX object CMakeFiles/FCNPC.dir/src/CNode.cpp.o
[ 66%] Building CXX object CMakeFiles/FCNPC.dir/src/CFunctions.cpp.o
[ 70%] Building CXX object CMakeFiles/FCNPC.dir/src/CUtils.cpp.o
[ 74%] Building CXX object CMakeFiles/FCNPC.dir/src/CPlayerData.cpp.o
[ 77%] Building CXX object CMakeFiles/FCNPC.dir/src/Natives.cpp.o
[ 81%] Building CXX object CMakeFiles/FCNPC.dir/src/CCallbackManager.cpp.o
[ 85%] Building CXX object CMakeFiles/FCNPC.dir/src/CRecordManager.cpp.o
[ 88%] Building CXX object CMakeFiles/FCNPC.dir/lib/sdk/amxplugin.cpp.o
[ 92%] Building CXX object CMakeFiles/FCNPC.dir/lib/strlcpy/strlcpy.cpp.o
[ 96%] Building CXX object CMakeFiles/FCNPC.dir/lib/raknet/BitStream.cpp.o
[100%] Building CXX object CMakeFiles/FCNPC.dir/lib/mapandreas/MapAndreas.cpp.o
Linking CXX shared library FCNPC.so
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: skipping incompatible /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++_nonshared.a when searching for -lstdc++_nonshared
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
make[2]: *** [FCNPC.so] Error 1
make[1]: *** [CMakeFiles/FCNPC.dir/all] Error 2
make: *** [all] Error 2
Got any clue?
from fcnpc.
I found this solution
yum install glibc-devel.i686 libstdc++-devel.i686
from fcnpc.
It appeared already installed. I decided to yum reinstall
but no success :(
Here's what it said, incase my mirrors are the problem:
# yum install glibc-devel.i686 libstdc++-devel.i686
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: mirror.cogentco.com
* ius: mirror.team-cymru.org
Package glibc-devel-2.12-1.192.el6.i686 already installed and latest version
Package libstdc++-devel-4.4.7-17.el6.i686 already installed and latest version
Nothing to do
... and when I type make
# make
[ 3%] Built target subhook
Linking CXX shared library FCNPC.so
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: skipping incompatible /opt/rh/devtoolset-2/root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/libstdc++_nonshared.a when searching for -lstdc++_nonshared
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
make[2]: *** [FCNPC.so] Error 1
make[1]: *** [CMakeFiles/FCNPC.dir/all] Error 2
make: *** [all] Error 2
If you don't mind testing it yourself under a centos 64bit 6.8 environment, we would appreciate it a lot. Many of us server owners still use centos to this day lol
from fcnpc.
You have problems because CentOS 6.8 uses GCC 4.4, and this version have no support for C++11 (this version released more than 7 years ago). I see that you have tried to update your compiler, but anyway resulting binaries will not working with old glibc. You should use newer OS or older plugin version (maybe 1.3 or 1.2).
from fcnpc.
Ok. I decided to rent a new cloud VPS and compiled it successfully (will just do that lol). I will post a Centos Version of the plugin on the sa-mp forum.
Thanks
from fcnpc.
Related Issues (20)
- Need Some Information About Some Natives HOT 3
- Correct Delta Calculations
- Signal 11 (Segmentation fault), address is 351 from f79570e3 HOT 2
- Signal 11 (Segmentation fault) HOT 2
- FCNPCs can't drive trailers
- The position of the train cars is not returned if FCNPC drive train.
- FCNPC_EnterVehicle. NPC should not check map.
- FCNPC_LoadPlayingPlayback conflicts with temporary recordings loaded by FCNPC_StartPlayingPlayback
- FCNPC Not created HOT 1
- FCNPC CRASH HOT 7
- FCNPC CRASH AFTER GMX HOT 9
- FCNPC Crash HOT 4
- Crash issue HOT 3
- DL FCNPC_SetVelocity HOT 11
- Bug HOT 3
- Crash while server executing HOT 14
- NPC leaves the server directly after spawning. HOT 3
- Server is not starting HOT 11
- Server crashes randomly (FCNPC 2.0.9, SA:MP 0.3.7 R2, Ubuntu 22.04). HOT 1
- Callbacks not being called on filterscripts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcnpc.