tum-vision/tum_ardrone

Error with catkin_make after install tum_ardrone

Rafagarcia0810 opened this issue · 3 comments

Hi,
I have this configuration:
ROS version: Indigo 1.11.9
OS version: Ubuntu 14.04 64 bits
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)

I follow this instructions of https://github.com/tum-vision/tum_ardrone

cd catkin_ws/src
git clone https://github.com/tum-vision/tum_ardrone.git -b indigo-devel
cd ..
rosdep install tum_ardrone
catkin_make

and I received this message after 83%:
...
Building ARDroneTool/Lib
/usr/bin/ld: no se puede encontrar -lglut
collect2: error: ld returned 1 exit status
make[2]: *** [/home/rafagarcia0810/catkin_ws/devel/lib/tum_ardrone/drone_stateestimation] Error 1
make[1]: *** [tum_ardrone/CMakeFiles/drone_stateestimation.dir/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
Building ARDroneTool/Lib
[ 84%] Performing install step for 'ardronelib'
make[3]: atención: el servidor de tareas no está disponible: se utilizará -j1. Añada `+' a la regla padre del make.
[ 84%] Completed 'ardronelib'
[ 86%] Built target ardronelib
make: *** [all] Error 2
Invoking "make" failed

someone know how I can fix it?
thanks.

Hi there,

I'm also having the configuration:
ROS version: Indigo
OS version: Ubuntu 14.04 64 bits

And I'm also having the same issue as mentioned in this post, after running

cd catkin_ws/src
git clone https://github.com/tum-vision/tum_ardrone.git -b indigo-devel
cd ..
rosdep install tum_ardrone
catkin_make

I got the same error of "/usr/bin/ld: cannot find -lglut". I fixed this by installing "freeglut3-dev". However in my case, I still have one more error message, as follows:

Linking CXX executable /home/ray/catkin_ws/devel/lib/tum_ardrone/drone_stateestimation
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[2]: *** [/home/ray/catkin_ws/devel/lib/tum_ardrone/drone_stateestimation] Error 1
make[1]: *** [tum_ardrone/CMakeFiles/drone_stateestimation.dir/all] Error 2
make: *** [all] Error 2

I have installed "libgl1-mesa-dev" package. I suppose the linker still cannot find the "libGL.so" files, thus I added a path "/usr/lib/x86_64-linux-gnu" to $LD_LIBRARY_PATH. And I'm sure that the path contains "libGL.so", "libGL.so.1", and "libGL.so.346.46" (I'm using a nvidia driver here).

However, it still doesn't work, each time stating the error message "/usr/bin/ld: cannot find -lGL". Is the problem due to my nvidia driver installation? Any idea how I can fix this?

Thanks.

Definitely a late reply but i have found the solution for future users of this amazing ROS package

basically its a QT4 error and you need to add following line to RosThread.h which is located in your catkin_ws directory : catkin_ws/src/tum_ardrone/src/UINode

after the first two lines below #define_ROSTHREAD.h

add #ifndef Q_MOS_RUN

and add #endif at the end or the last line in the file