ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rviz plugin compile

asked 2015-06-01 22:55:39 -0500

kkrasnosky gravatar image

I am trying to install the rviz satellite plugin. https://github.com/gareth-cross/rviz_...

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-02 04:39:23 -0500

gvdhoorn gravatar image

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:

  1. not having any / the correct drivers for your graphics card installed, OR
  2. 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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-01 22:55:39 -0500

Seen: 935 times

Last updated: Jun 02 '15