Coder Social home page Coder Social logo

Compiling for centos 6.8 64bit about fcnpc HOT 6 CLOSED

ziggi avatar ziggi commented on May 31, 2024
Compiling for centos 6.8 64bit

from fcnpc.

Comments (6)

ziggi avatar ziggi commented on May 31, 2024

You should download full sources (with submodules): https://github.com/ziggi/FCNPC/blob/master/README.md#how-to-clone

from fcnpc.

zeelorenc avatar zeelorenc commented on May 31, 2024

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.

ziggi avatar ziggi commented on May 31, 2024

I found this solution

yum install glibc-devel.i686 libstdc++-devel.i686

from fcnpc.

zeelorenc avatar zeelorenc commented on May 31, 2024

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.

ziggi avatar ziggi commented on May 31, 2024

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.

zeelorenc avatar zeelorenc commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.