I'm trying to compile Cocos2d-x on Ubuntu 17.10.
But after I run make
I'm getting this:
[ 68%] Built target cocos2d
[ 68%] Linking CXX executable …/…/bin/cpp-empty-test/cpp-empty-test
/usr/bin/ld: …/…/…/…/external/bullet/prebuilt/linux/64-bit/libBulletDynamics.a(btSequentialImpulseConstraintSolver.o): relocation R_X86_64_32 against .rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../external/bullet/prebuilt/linux/64-bit/libBulletDynamics.a(btTypedConstraint.o): relocation R_X86_64_32S against symbol_ZTV17btTypedConstraint’ can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: …/…/…/…/external/bullet/prebuilt/linux/64-bit/libBulletDynamics.a(btDiscreteDynamicsWorld.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a shared object; recompile with -fPIC
…
tests/cpp-empty-test/CMakeFiles/cpp-empty-test.dir/build.make:174: recipe for target 'bin/cpp-empty-test/cpp-empty-test' failed
make[2]: *** [bin/cpp-empty-test/cpp-empty-test] Error 1
CMakeFiles/Makefile2:466: recipe for target 'tests/cpp-empty-test/CMakeFiles/cpp-empty-test.dir/all' failed
make[1]: *** [tests/cpp-empty-test/CMakeFiles/cpp-empty-test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
In /usr/local/lib
I have only these files:
cmake libavfilter.a libglfw.so libswresample.a pkgconfig
libavcodec.a libavformat.a libglfw.so.3 libswscale.a python2.7
libavdevice.a libavutil.a libglfw.so.3.2 node_modules python3.6
Where to get those .a
files?
` or other line breaks. – Tsyvarev Mar 11 '18 at 18:11