Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@KoenBuys answer works for OpenGL.

And as @Felix Endres suggested I was able to get Qt working with my ROS package. here's some more detail on how:

  1. edit your manifest.xml and add <rosdep name="qt4"/>
  2. edit CMakelists.txt in your package and make it look similar to CMakelists.txt

    -> the line file(GLOB_RECURSE QT_MOC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/local/.hpp src/mainwindow.h)* should include all the header files that use Qt functionality.

    -> the line file(GLOB_RECURSE QT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS src/gicp-fallback.cpp src/mainwindow.cpp src/listener.cpp) should include all the cpp files that use Qt functionality.

Let me know if you have any issues. Thanks.

@KoenBuys answer works for OpenGL.

And as @Felix Endres suggested I was able to get Qt working with my ROS package. here's some more detail on how:

  1. edit your manifest.xml and add <rosdep name="qt4"/>
  2. edit CMakelists.txt in your package and make it look similar to CMakelists.txt

    -> the line file(GLOB_RECURSE QT_MOC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/local/.hpp src/mainwindow.h)* should include all the header files that use Qt functionality.

    -> the line file(GLOB_RECURSE QT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS src/gicp-fallback.cpp src/mainwindow.cpp src/listener.cpp) should include all the cpp files that use Qt functionality.

Let me know if you have any issues. Thanks.