building from source ros-hydro, Fatal Error : QWidget
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/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/plugin.h:37:0, from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/src/qtguicpp/pluginbridge.cpp:35: /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/plugincontext.h:43:19: fatal error: QWidget: No such file or directory #include
^ In file included from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/plugin.h:37:0, from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/pluginprovider.h:36, from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/compositepluginprovider.h:37, from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/src/qtguicpp/compositepluginprovider.cpp:33: /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/plugincontext.h:43:19: fatal error: QWidget: No such file or directory #include ^ compilation terminated. compilation terminated. In file included from /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/src/qtguicpp/plugincontext.cpp:33:0: /home/mckenzie34/roscatkinws/src/qtguicore/qtguicpp/include/qtguicpp/plugincontext.h:43:19: fatal error: QWidget: No such file or directory #include ^ compilation terminated. make[2]: *** [src/qtguicpp/CMakeFiles/qtguicpp.dir/pluginbridge.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [src/qtguicpp/CMakeFiles/qtguicpp.dir/compositepluginprovider.cpp.o] Error 1 make[2]: *** [src/qtguicpp/CMakeFiles/qtguicpp.dir/plugincontext.cpp.o] Error 1 make[1]: *** [src/qtguicpp/CMakeFiles/qtguicpp.dir/all] Error 2 make: *** [all] Error 2 <== Failed to process package 'qtguicpp': Command '/home/mckenzie34/roscatkinws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2 Reproduce this error by running: ==> cd /home/mckenzie34/roscatkinws/buildisolated/qtguicpp && /home/mckenzie34/roscatkinws/installisolated/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 :(
Asked by AlptugruI-lYI on 2015-10-03 16:31:16 UTC
Answers
post your versions of qt, cmake
Asked by clynamen on 2015-10-04 06:48:06 UTC
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
Asked by AlptugruI-lYI on 2015-10-04 07:11:25 UTC
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.
Asked by AlptugruI-lYI on 2015-10-07 07:18:34 UTC
Comments