failed to process qt_gui_cpp
I'm following this link to compile ROS from source.
After executing the command ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
, I got such an error:
type 'QDataWidgetMapper' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
type 'QTreeWidget' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
type 'QGraphicsPixmapItem' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
enum 'QAbstractItemView::ScrollMode' is specified in typesystem, but not declared enum 'QListWidgetItem::ItemType' is specified in typesystem, but not declared
type 'QMovie' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
type 'QToolBox' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
enum 'QStyleOptionTitleBar::StyleOptionType' is specified in typesystem, but not declared
type 'QDial' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
signature 'QCoreApplication(int&,char)' for function modification in 'QCoreApplication' not found. Possible candidates: QCoreApplication(PySequence) in QCoreApplication, QCoreApplication(QCoreApplication) in QCoreApplication, QCoreApplication(int&,char,int) in QCoreApplication signature 'metaObject()const' for function modification in 'QObject' not found. Possible candidates: signature 'parent()const' for function modification in 'QSortFilterProxyModel' not found. Possible candidates: parent(QModelIndex)const in QSortFilterProxyModelc++: error: /home/zyh/roscatkinws/buildisolated/qtguicpp/src/qtguicppshiboken/libqtguicppshiboken/qtguicppgenericproxywrapper.cpp: No such file or directory c++: error: /home/zyh/roscatkinws/buildisolated/qtguicpp/src/qtguicppshiboken/libqtguicppshiboken/qtguicppplugindescriptorwrapper.cpp: No such file or directory [ 90%] Building CXX object src/qtguicppshiboken/CMakeFiles/qtguicppshiboken.dir/libqtguicppshiboken/qtguicppwrapper.cpp.o c++: fatal error: no input files compilation terminated. c++: error: /home/zyh/roscatkinws/buildisolated/qtguicpp/src/qtguicppshiboken/libqtguicppshiboken/qtguicppcompositepluginproviderwrapper.cpp: No such file or directory c++: fatal error: no input files compilation terminated. c++: error: /home/zyh/roscatkinws/buildisolated/qtguicpp/src/qtguicppshiboken/libqtguicppshiboken/qtguicpppluginwrapper.cpp: No such file or directory c++: fatal error: no input files compilation terminated. c++: error: /home/zyh/roscatkinws/buildisolated/qtguicpp/src/qtguicppshiboken/libqtguicppshiboken/qtguicpppluginproviderwrapper.cpp: No such file or directory c++: fatal error: no input files CMakeFiles/Makefile2:541: recipe for target 'src/qtguicppshiboken/CMakeFiles/qtguicppshiboken.dir/all' failed make[1]: *** [src/qtguicppshiboken/CMakeFiles/qtguicppshiboken.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 <== Failed to process package 'qtguicpp': Command '['/home/zyh/roscatkinws/installisolated/env.sh', 'make', '-j40', '-l40']' returned non-zero exit status 2
Reproduce this error by running: ==> cd /home/zyh/roscatkinws/buildisolated/qtguicpp && /home/zyh/roscatkinws/installisolated/env.sh make -j40 -l40
Command failed, exiting.
Asked by bear234 on 2018-02-28 00:49:53 UTC
Answers
Remove shiboken with
sudo apt-get remove libshiboken*
and then re-run the build
I found the solution in this github issue https://github.com/ros-visualization/qt_gui_core/issues/105#issuecomment-324250312
Asked by sy on 2020-01-14 20:09:16 UTC
Comments