Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 670

Porting Qt packages from Kinetic to Melodic

$
0
0
When trying to compile in ROS Melodic packages created using catkin_create_qt_pkg in ROS Kinetic, catkin_make fails with the message: -- Could NOT find qt_build (missing: qt_build_DIR) -- Could not find the required component 'qt_build'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "qt_build" with any of the following names: qt_buildConfig.cmake qt_build-config.cmake Add the installation prefix of "qt_build" to CMAKE_PREFIX_PATH or set "qt_build_DIR" to a directory containing one of the above files. If "qt_build" provides a separate development package or SDK, be sure it has been installed. Apparently, qt_build is [currently unavailable](http://wiki.ros.org/qt_build) for Melodic. Below is my CmakeLists file: cmake_minimum_required(VERSION 2.8.0) set (CMAKE_CXX_STANDARD 14) set (CMAKE_BUILD_TYPE Debug) project(visualization) find_package(catkin REQUIRED COMPONENTS qt_build roscpp converters) include_directories(include ${catkin_INCLUDE_DIRS}) catkin_package() include_directories( ../../devel/include ../../install/include ) ############################################################################## # Qt Environment ############################################################################## rosbuild_prepare_qt4(QtCore QtGui) # Add the appropriate components to the component list here ############################################################################## # Sections ############################################################################## file(GLOB QT_FORMS_BLOCK RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ui/main_window_block.ui) file(GLOB QT_RESOURCES_BLOCK RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} resources/resources.qrc) file(GLOB_RECURSE QT_MOC_BLOCK RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/visualization/main_window_block.hpp) QT4_ADD_RESOURCES(QT_RESOURCES_CPP_BLOCK ${QT_RESOURCES_BLOCK}) QT4_WRAP_UI(QT_FORMS_HPP_BLOCK ${QT_FORMS_BLOCK}) QT4_WRAP_CPP(QT_MOC_HPP_BLOCK ${QT_MOC_BLOCK}) ############################################################################## # Binaries ############################################################################## add_executable(block src/main_block.cpp src/main_window_block.cpp ${QT_RESOURCES_CPP_BLOCK} ${QT_FORMS_HPP_BLOCK} ${QT_MOC_HPP_BLOCK}) add_dependencies(block converters_generate_messages) target_link_libraries(block ${QT_LIBRARIES} ${catkin_LIBRARIES}) install(TARGETS block RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) Are there any workaround options or should I wait with porting to Melodic until qt_build is available? Thanks

Viewing all articles
Browse latest Browse all 670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>