# Unable to integrate with Qt.

I am trying to implement Grid based FAST SLAM in ROS. I have taken the source code from http://openslam.org/gridslam.html .

I have made a catkin package and put all the source code in src folder. Now, I am trying to build that package using $catkin_make It is giving me the error: qapplication.h No such file or directory. I have qt4 installed already and have qapplication.h file at /usr/include/qt4/Qt I have tried using .pro file and qmake but still its giving me the error. what should I do please help... edit retag close merge delete ## 2 Answers Sort by » oldest newest most voted write the following lines in your Cmake find_package(Qt4 COMPONENTS QtCore QtGui) INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS}) rosbuild_add_executable(qt_test src/qt_test.cpp) target_link_libraries(qt_test${QT_LIBRARIES})


more

( 2014-04-05 23:29:04 -0500 )edit

rosbuild_add_executable for rosbuild system and add_executable for catkin. I made mistake that I thought you worked with rosbuild system...

( 2014-04-06 02:27:36 -0500 )edit

I would start by googling about using Qt in catkin. For exmaple this turns up (have not checked if it is good): https://qt-project.org/quarterly/view...

more

## Stats

Seen: 485 times

Last updated: Apr 04 '14