rviz plugin compile
I am trying to install the rviz satellite plugin. https://github.com/gareth-cross/rviz_satellite
I clone the package into my catkin workspace/src directory and call catkin make and I get the following error.
#### Running command: "make -j4 -l4" in "/home/kris/Projects/fvs/trunk/ros/catkin_ws/build"
####
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `/home/kris/Projects/fvs/trunk/ros/catkin_ws/devel/lib/librviz_satellite.so'. Stop.
make[1]: *** [rviz_satellite/CMakeFiles/rviz_satellite.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
When I move the package to the root of my catkin workspace it compiles but Rviz is unable to locate it then.
How can I compile it while leaving it in the src directory?
Thanks.
Asked by kkrasnosky on 2015-06-01 22:55:39 UTC
Answers
An earlier question that seems related is Attempting to compile from source - error making libGLU for libstage.
In my experience, this error (which I doubt is actually related to where you compile your package) is caused by:
- not having any / the correct drivers for your graphics card installed, OR
- running a 64bit system, but only having the 32bit version of either the graphics card driver or libGL installed
Assuming some version of Ubuntu, make sure you have proper drivers installed, and additionally make sure you have the packages libgl1-mesa-glx
and / or libgl1-mesa-dev
on your system.
Although it often works, I'd recommend against simply sym-linking the file in /usr/lib
to /usr/lib/x86_64-linux-gnu/libGL.so
, as that is rather fragile.
Asked by gvdhoorn on 2015-06-02 04:39:23 UTC
Comments