I used cmake to build a makefile, using only bullet and nothing else, when i tried to "make" PAL, i got this
/home/pierrick/programming/palsvn/pal/pal/pal_i/bullet/bullet_pal.cpp: In member function ‘virtual void palBulletPhysics::Init(const palPhysicsDesc&)’: /home/pierrick/programming/palsvn/pal/pal/pal_i/bullet/bullet_pal.cpp:712:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] /home/pierrick/programming/palsvn/pal/pal/pal_i/bullet/bullet_pal.cpp:736:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] Linking CXX shared library ../lib64/libpal_bullet.so /usr/bin/ld: /usr/local/lib/libBulletSoftBody.a(btSoftBody.o): relocation R_X86_64_32 against `guard variable for btTransform::getIdentity()::identityTransform' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libBulletSoftBody.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [lib64/libpal_bullet.so] Error 1 make[1]: *** [pal_i/CMakeFiles/libpal_bullet.dir/all] Error 2 make: *** [all] Error 2
And i have no clue how to modify the makefile to add -fPIC
Log in to post a comment.
I used cmake to build a makefile, using only bullet and nothing else, when i tried to "make" PAL, i got this
And i have no clue how to modify the makefile to add -fPIC