Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rl-master comile error #61

Open
chgjsj-th opened this issue Jun 10, 2022 · 1 comment
Open

rl-master comile error #61

chgjsj-th opened this issue Jun 10, 2022 · 1 comment

Comments

@chgjsj-th
Copy link

There was an error when comiling rl-master:

[ 36%] Building CXX object src/rl/sg/CMakeFiles/sg.dir/solid/Scene.cpp.o
[ 36%] Building CXX object src/rl/sg/CMakeFiles/sg.dir/solid/Shape.cpp.o
[ 36%] Linking CXX shared library ../../../lib/librlsg.so
/usr/bin/ld: /usr/local/lib/libBulletCollision.a(btDbvtBroadphase.o): relocation R_X86_64_32S against `_ZTV16btDbvtBroadphase' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libBulletCollision.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/rl/sg/CMakeFiles/sg.dir/build.make:686: recipe for target 'lib/librlsg.so.0.7.0' failed
make[2]: *** [lib/librlsg.so.0.7.0] Error 1
CMakeFiles/Makefile2:1478: recipe for target 'src/rl/sg/CMakeFiles/sg.dir/all' failed
make[1]: *** [src/rl/sg/CMakeFiles/sg.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

OS:ubuntu 16.04

@rickertm
Copy link
Member

It seems you're linking against a static version of the Bullet library that is missing the -fPIC option. You can recompile Bullet with this option or build a shared version of Bullet instead. On Ubuntu, you can also install Bullet via the libbullet-dev package.

RL can also be installed as pre-built packages on Ubuntu via our PPA on LaunchPad. There is a PPA for the last release and a PPA for the current master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants