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

CMake Warning due to FindEigen3.cmake [closed]

asked 2016-03-27 09:45:36 -0500

SQ gravatar image

updated 2016-03-28 06:29:45 -0500

gvdhoorn gravatar image

Hi. Im new to ROS and Ubuntu so pardon me if i ask silly questions. I'm running on ROS Indigo and this is what i did:

  1. Add pre-made packages (E.g. cmake_modules) from github using

    $ git clone git://github.com/ros/cmake_modules.git
    
  2. Build the workspace using

    $ catkin_make
    

    (did cd ~/catkin_ws/ before that)

The command ran ok at the beginning, until i get a series of similar CMake warnings:

CMake Warning at catkin_modules/cmake/Modules/FindEigen.cmake:62 (message):
  The FindEigen.cmake Module in the cmake_modules package is deprecated.

  Please use the FIndEigen3.cmake Module provided with Eigen. Change instances of find_package(Eigen) to    find_package(Eigen3). Check the FindEigen3.cmake Module for the resulting Cmake variable names.

Followed by an error:

Invoking "make cmake_check_build_system" failed

My issue is i have no idea where to find that FindEigen3.cmake Module provided with Eigen and upon checking my CMakeLists.txt in the cmake_modules folder i don't see any lines saying: find_package(Eigen) or whatsoever.

Did some research over Google and ROS site and found nothing similar to my case.

Any help will be deeply appreciated. Thanks in advance!


Edit: this is what i get:

CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libtf.so" to target
  "getID" which is not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libtf2_ros.so" to target
  "getID" which is not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libactionlib.so" to target
  "getID" which is not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libmessage_filters.so" to
  target "getID" which is not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libtf2.so" to target
  "getID" which is not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "laser_proc_library" to target "getID" which is
  not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "laser_publisher" to target "getID" which is
  not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "laser_transport" to target "getID" which is
  not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link lI guess my command is this long and these are what i got:ibrary "laser_proc_ROS" to target "getID" which is not
  built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "LaserProcNodelet" to target "getID" which is
  not built in this directory.


CMake Error at urg_node/CMakeLists.txt:44 (target_link_libraries):
  Attempt to add link library "/opt/ros/indigo/lib/libnodeletlib.so" to
  target "getID" which is not built in this ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by SQ
close date 2016-04-03 03:58:47.071430

Comments

Can you post the full output of your catkin_make command and your CMakeLists.txt ? Do you have any CMake Error [...] message beside the CMake Warning you posted ? And what is your Ubuntu distribution (lsb_release -a)?

al-dev gravatar image al-dev  ( 2016-03-27 14:13:10 -0500 )edit

@SQ: can you please edit your question next time you have new information / updates (instead of posting an answer)? I've already merged your two posts, but please keep it in mind next time.

gvdhoorn gravatar image gvdhoorn  ( 2016-03-28 06:30:58 -0500 )edit

Roger that my bad :(

SQ gravatar image SQ  ( 2016-03-28 06:58:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-28 11:48:38 -0500

al-dev gravatar image

As you can see from the output you posted, several libraries external to the urg_node package fail to be linked to the getID executable declared in the CMakeLists.txt of the urg_node package. If you haven't done any modification to the urg_node package itself, this suggests to me that either :

  1. you did not properly install the packages containing the external libraries mentioned, which you can check using rosdep update, rosdep install urg_node (tutorial here), or
  2. you did not properly source your environment : source /opt/ros/indigo/setup.bash for packages installed via binaries, and source ~/catkin_ws/devel/setup.bash for packages that you compiled yourself in your catkin workspace.

Note that the failure to compile is caused by the CMake Error messages, and not by the CMake Warning on the Eigen library, so you might want to rename your thread or split it into 2 questions, as it is a bit misleading.

edit flag offensive delete link more

Comments

tried the 2 rosdep commands, sourced the environment again and it did not help. However upon removing "hokuyo_node" the workspace builds well. Perhaps i shoudn't use "urg_node" and "hokuyo_node" together. Sorry for the confusion and thank you so much!

SQ gravatar image SQ  ( 2016-03-29 03:04:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-03-27 09:45:36 -0500

Seen: 1,399 times

Last updated: Mar 28 '16