ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

building from source ros-hydro, Fatal Error : QWidget [closed]

asked 2015-10-03 16:31:16 -0600

AlptugruI-lYI gravatar image

Hi everyone!! I m newbie to Ros platform. now I m trying to build ros-hydro from source on the ubuntu 12.04 precise but I had have a problem dealing with QWidget. This problems output is below, it says those errors


In file included from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin.h:37:0, from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp/plugin_bridge.cpp:35: /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin_context.h:43:19: fatal error: QWidget: No such file or directory #include <qwidget> ^ In file included from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin.h:37:0, from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin_provider.h:36, from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/composite_plugin_provider.h:37, from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp/composite_plugin_provider.cpp:33: /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin_context.h:43:19: fatal error: QWidget: No such file or directory #include <qwidget> ^ compilation terminated. compilation terminated. In file included from /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp/plugin_context.cpp:33:0: /home/mckenzie34/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/plugin_context.h:43:19: fatal error: QWidget: No such file or directory #include <qwidget> ^ compilation terminated. make[2]: * [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/plugin_bridge.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/composite_plugin_provider.cpp.o] Error 1 make[2]: [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/plugin_context.cpp.o] Error 1 make[1]: [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/all] Error 2 make: * [all] Error 2 <== Failed to process package 'qt_gui_cpp': Command '/home/mckenzie34/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2

Reproduce this error by running: ==> cd /home/mckenzie34/ros_catkin_ws/build_isolated/qt_gui_cpp && /home/mckenzie34/ros_catkin_ws/install_isolated/env.sh make -j4 -l4

Command failed, exiting.


I made googling a lot for fixed this problem but I have no luck! Whats the problem I dont know. I followed this page while I try to installing that and I prefered "ros-full-desktop-building". also I installed qt4 libraies (gui,core) from indepently this one but doesnt fix it. I hope that you to help me kindly :)

                                                                                                                                                        thanks in advance.

*and also I m sory for my english :(

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by AlptugruI-lYI
close date 2015-10-07 07:20:07.469209

2 Answers

Sort by » oldest newest most voted
0

answered 2015-10-04 06:48:06 -0600

clynamen gravatar image

post your versions of qt, cmake

edit flag offensive delete link more

Comments

firstly thanks for your reply. cmake version 2.8.7, I installed new QT SDK which has Qt version 5.5.0, Also I prompted "sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui" from terminal

AlptugruI-lYI gravatar image AlptugruI-lYI  ( 2015-10-04 07:11:25 -0600 )edit
0

answered 2015-10-07 07:18:34 -0600

AlptugruI-lYI gravatar image

Hi everyone! eventually I have fixed problem. firstly I had installed QT 5.5.0 sdk and qt4 default libraries but it hadn't solved. now I have removed all of those and I have installed Qt 4.8.5 from source and been solved problem. İts problem due to incompatibility between qt5 and qt4.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-10-03 16:31:16 -0600

Seen: 424 times

Last updated: Oct 07 '15