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

Cannot catkin_make example from Tutorials

asked 2016-01-30 14:16:55 -0600

user23fj239 gravatar image

updated 2016-10-24 09:06:51 -0600

ngrennan gravatar image

I used my fresh knowledge from package form format to extend basics of catkins cmakelist.txt and package.xml Is there anything principally wrong with it or is all right. It does work with catkin_make

I use this CMakeLits and package.xml.txt. I would be glad if someone could have a look at it and tell if any mistakes in it


Edit: So i got the general order, but where to place this, it feels like deadlock: How to add when it needs to be exported?

add_library(my_test_lib ${MY_TEST_LIB_SRC})

catkin_package(
    CATKIN_DEPENDS #catkin packages
        roscpp 
        std_msgs 
        #message_generation
    #DEPENDS Boost  #other libs
    #INCLUDE_DIRS include   #my headers
    LIBRARIES my_test_lib #my exported libs from the project
    #CFG_EXTRAS - Additional configuration options 
)
edit retag flag offensive close merge delete

Comments

gvdhoorn gravatar image gvdhoorn  ( 2016-01-31 01:58:55 -0600 )edit
1

Don't post answers if you're not answering your own question. If you want to update your question (to provide us with more information fi), then please use the edit button/link.

gvdhoorn gravatar image gvdhoorn  ( 2016-01-31 11:22:58 -0600 )edit
1

re: deadlock: there is no deadlock. As the documentation states, just add all your add_library(..) and add_executable(..) statements after the catkin_package(..) statement.

gvdhoorn gravatar image gvdhoorn  ( 2016-01-31 11:23:49 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-30 18:57:04 -0600

ahendrix gravatar image

The only obvious thing that I would warn you about is the ordering; see my answer to: http://answers.ros.org/question/22544...

The ordering requirement is the last item on this page: http://docs.ros.org/jade/api/catkin/h... and is also documented on the wiki: http://wiki.ros.org/catkin/CMakeLists...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-01-30 14:16:55 -0600

Seen: 168 times

Last updated: Jan 31 '16