Failed to include qt-ros from qt_build [closed]

asked 2014-05-29 22:47:39 -0600

mr42 gravatar image

Hi guys,

i get the compile error:

[rosbuild] Including /opt/ros/hydro/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/hydro/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/hydro/share/rospy/rosbuild/rospy.cmake
-- Eigen found (include: /usr/include/eigen3)
installing g2o in folder /home/michael/vertensj_quadroter/sokobot/ssa/externals/g2o
installing ssa in folder /home/michael/vertensj_quadroter/sokobot/ssa/externals/ssa
CMake Error at /opt/ros/hydro/share/ros/core/rosbuild/public.cmake:1145 (message):
[rosbuild] Failed to include qt-ros from qt_build
Call Stack (most recent call first):
externals/ais3dToolsVis/CMakeLists.txt:1 (rosbuild_include)


-- Configuring incomplete, errors occurred!

i am using hydro and i have installed qt_build and qt-ros by running the two following lines:

sudo apt-get install ros-hydro-qt-build
sudo apt-get install ros-hydro-qt-build

My CMakeList.txt looks like the following:

cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
include(ExternalProject)

# Set the build type.  Options are:
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
#  Debug          : w/ debug symbols, w/o optimization
#  Release        : w/o debug symbols, w/ optimization
#  RelWithDebInfo : w/ debug symbols, w/ optimization
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)

find_package(Eigen REQUIRED)

include_directories(${EIGEN_INCLUDE_DIRS})
add_definitions(${EIGEN_DEFINITIONS})

#target_link_libraries(${PROJECT_NAME} another_library)
rosbuild_add_boost_directories()

#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()
#add_subdirectory(externals)

set(G2O_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/externals/g2o")
MESSAGE("installing g2o in folder " ${G2O_INSTALL_PREFIX})

ExternalProject_Add(
g2o
GIT_REPOSITORY https://github.com/RainerKuemmerle/g2o.git
PREFIX ${G2O_INSTALL_PREFIX}
INSTALL_DIR ${${PROJECT_NAME}_SOURCE_DIR}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${G2O_INSTALL_PREFIX}   -DG2O_USE_OPENMP=${${PROJECT_NAME}_USE_OPENMP}
#BUILD_IN_SOURCE 1
)
include_directories(${G2O_INSTALL_PREFIX}/include)
link_directories(${G2O_INSTALL_PREFIX}/lib)

set(SSA_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/externals/ssa")
MESSAGE("installing ssa in folder " ${SSA_INSTALL_PREFIX})

ExternalProject_Add(
ssa
GIT_REPOSITORY https://github.com/MichaelRuhnke/ssa.git
PREFIX ${SSA_INSTALL_PREFIX}
INSTALL_DIR ${${PROJECT_NAME}_SOURCE_DIR}  
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${SSA_INSTALL_PREFIX} -DSSA_USE_G2O_GIT=OFF -DG2O_ROOT=${G2O_INSTALL_PREFIX} -DSSA_USE_OPENMP=ON -DPCL_DIR=${PCL_DIR}
DEPENDS g2o
#BUILD_IN_SOURCE 1
)
include_directories(${SSA_INSTALL_PREFIX}/include)
link_directories(${SSA_INSTALL_PREFIX}/lib)

add_subdirectory(externals)

My manifest.xml is:

<package>
  <description brief="ssa">

    ssa external libraries

  </description>
  <author>ruhnke</author>
  <license>BSD</license>
  <review status="unreviewed" notes=""/>
  <url>http://ros.org/wiki/ssa</url>
  <depend package="qt_build"/>
  <depend package="roscpp"/>
  <depend package="rospy"/>
  <depend package="rosbag"/>
  <depend package="tf"/>
  <!--<depend package="pcl"/>-->
  <rosdep name="suitesparse"/>
  <rosdep name="libqglviewer"/>
  <rosdep name="libqt4-dev"/>
  <rosdep name="qt4-qmake"/>
  <export>
    <cpp cflags="-I${prefix}/externals/g2o/include -I${prefix}/externals/ssa/include -I${prefix}/externals/ais3dToolsVis" lflags="-L${prefix}/externals/g2o/lib -L${prefix}/externals/ssa/lib -L${prefix}/lib" />
  </export>
</package>

Has someone a idea, what is missing or what the error means?

Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-30 20:57:58.753226