Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Qt and cmake errors while building gazebo_ros_pkgs for ROS Groovy

Hello everyone,

I am installing Gazebo with ROS Groovy and I have landed up with a number of errors. First I installed Gazebo 1.9 from the Source using the link (http://gazebosim.org/wiki/1.9/install). Gazebo runs perfectly when I do the gazebo in the terminal. However, when I download the gazebo_ros_pkgs for ROS Groovy as stated in (http://gazebosim.org/wiki/Tutorials/1.9/Installing_gazebo_ros_Packages), then I do a catkin_make, I get the following error::

CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package): Could not find a configuration file for package cmake_modules.

Set cmake_modules_DIR to the directory containing a CMake configuration file for cmake_modules. The file will have one of the following names:

cmake_modulesConfig.cmake
cmake_modules-config.cmake

I did try the solution from this forum using the link (http://answers.gazebosim.org/question/4026/installing-gazebo-19-and-gazebo_ros_pkgs-from/), where I did a "git clone https://github.com/ros/cmake_modules.git" in the catkin_ws/src, but unfortunately it did not solve the problem. Then I removed ros_control, ros_controller, realtime_tools, and control_toolbox from the src directory since I did not find any dependency for the gazebo_ros_pkgs. Now, when I build the gazebo_ros_pkgs, I get the following error at around 95% of the build process.

/usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QTextEdit::QTextEdit(QWidget)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QTextEdit::setText(QString const&)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QTextEdit::setReadOnly(bool)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsScene::sceneRect() const' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsScene::setSceneRect(QRectF const&)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QWidget::move(QPoint const&)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QCursor::QCursor(QPixmap const&, int, int)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsScene::QGraphicsScene(QObject)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsScene::setBackgroundBrush(QBrush const&)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsView::setScene(QGraphicsScene)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsView::centerOn(QPointF const&)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsView::setViewportUpdateMode(QGraphicsView::ViewportUpdateMode)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsView::setDragMode(QGraphicsView::DragMode)' /usr/local/lib/libgazebo_gui_building.so: error: undefined reference to 'QGraphicsScene::addItem(QGraphicsItem)'

What should I do? I do have the QtDir set in the bashrc file. Please help.

Thanks