diff --git a/cartographer_rviz/CMakeLists.txt b/cartographer_rviz/CMakeLists.txt index 94a3299..84efda5 100644 --- a/cartographer_rviz/CMakeLists.txt +++ b/cartographer_rviz/CMakeLists.txt @@ -40,12 +40,15 @@ set(CMAKE_AUTOMOC ON) if(rviz_QT_VERSION VERSION_LESS "5") message(STATUS "Using Qt4 based on the rviz_QT_VERSION: ${rviz_QT_VERSION}") find_package(Qt4 ${rviz_QT_VERSION} EXACT REQUIRED QtCore QtGui) + include_directories(${Qt4_INCLUDE_DIRS}) include(${QT_USE_FILE}) else() message(STATUS "Using Qt5 based on the rviz_QT_VERSION: ${rviz_QT_VERSION}") find_package(Qt5 ${rviz_QT_VERSION} EXACT REQUIRED Core Widgets) find_package(Qt5Widgets REQUIRED) set(QT_LIBRARIES Qt5::Widgets) + include_directories(${Qt5Widgets_INCLUDE_DIRS}) + include_directories(${Qt5_INCLUDE_DIRS}) endif() add_definitions(-DQT_NO_KEYWORDS) diff --git a/docs/source/index.rst b/docs/source/index.rst index 6cedaee..54acb01 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -65,6 +65,7 @@ We recommend using `wstool `_ and `rosdep wstool update -t src # Install deb dependencies. + rosdep init rosdep update rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y