diff --git a/cartographer_rviz/CMakeLists.txt b/cartographer_rviz/CMakeLists.txt index da1c14d..3e2144d 100644 --- a/cartographer_rviz/CMakeLists.txt +++ b/cartographer_rviz/CMakeLists.txt @@ -48,15 +48,12 @@ target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES}) 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 a430303..0e0dfde 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -67,7 +67,9 @@ We recommend using `wstool `_ and `rosdep wstool update -t src # Install deb dependencies. - rosdep init + # The command 'sudo rosdep init' will print an error if you have already + # executed it since installing ROS. This error can be ignored. + sudo rosdep init rosdep update rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y