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

ARDRONE AUTONOMY - Build and add external projects

asked 2015-11-30 07:54:01 -0500

JanOr gravatar image

updated 2015-12-02 15:21:43 -0500

Mani gravatar image

Hello, I want to create a patch for the ardroneLib of autonomy lab. The CMakeLists includes an external project:

include(ExternalProject)
ExternalProject_Add(ardronelib
    GIT_REPOSITORY git://github.com/AutonomyLab/ardronelib.git
    GIT_TAG 2f987029c55531e4c0119c3600f9c57f935851ed
    PREFIX ${CATKIN_DEVEL_PREFIX}
    CONFIGURE_COMMAND echo "No configure"
    BUILD_COMMAND make
    INSTALL_COMMAND make install INSTALL_PREFIX=${CATKIN_DEVEL_PREFIX}/lib/
    BUILD_IN_SOURCE 1
)

I wont to use this projectfiles locally. So I copied it in the sourcefolder:

catkin_ws/src/my_project/
                         ardronelib/
                         src/ ...
                         launch/ ...
...

the ardronelib folder contains the makefile of the project.

ardronelib/
           ARDroneLib
           .git
           .travis.yml
           LICENSE
           Makefile
           README.md

How can I build an include this library locally? My approach with:

include(ExternalProject)
ExternalProject_Add(ardronelib
    SOURCE_DIR=${PROJECT_SOURCE_DIR}/ardronelib
    PREFIX ${CATKIN_DEVEL_PREFIX}
    CONFIGURE_COMMAND echo "No configure"
    BUILD_COMMAND make
    INSTALL_COMMAND make install INSTALL_PREFIX=${CATKIN_DEVEL_PREFIX}/lib/
    BUILD_IN_SOURCE 1
)

and several others didn't work. Any ideas how to build the project so that later I can use "ardronelib" within my project? I am a bit desperate so thanks a lot for your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-12-02 15:20:12 -0500

Mani gravatar image

Try using URL instead of SOURCE_DIR and ${CMAKE_CURRENT_SOURCE_DIR} instead of ${PROJECT_SOURCE_DIR}.

include(ExternalProject)
ExternalProject_Add(ardronelib
    URL ${CMAKE_CURRENT_SOURCE_DIR}/ardronelib
    PREFIX ${CATKIN_DEVEL_PREFIX}
    CONFIGURE_COMMAND echo "No configure"
    BUILD_COMMAND make
    INSTALL_COMMAND make install INSTALL_PREFIX=${CATKIN_DEVEL_PREFIX}/lib/
    BUILD_IN_SOURCE 1
)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-30 07:54:01 -0500

Seen: 398 times

Last updated: Dec 02 '15