ROS Noetic Failed to process package 'qt_gui_cpp':

asked 2020-12-16 15:39:11 -0600

Azarakuss gravatar image

Hi, Im following instructions in ROS Noetic website. I give this command

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

but i take errors.

[ 47%] Built target qt_gui_cpp
[ 50%] Running Shiboken generator for libqt_gui_cpp Python bindings...
Scanning dependencies of target libqt_gui_cpp_sip
[ 52%] Running SIP generator for qt_gui_cpp_sip Python bindings...
sip: Deprecation warning: qt_gui_cpp.sip:1: %Module version number should be specified using the 'version' argument
qt.shiboken: (typesystem) Unable to locate Clang's built-in include directory (neither by checking the environment variables 
LLVM_INSTALL_DIR, CLANG_INSTALL_DIR  nor running llvm-config). This may lead to parse errors.
(typesystem) clang_parseTranslationUnit2(0x0, cmd[23]=-fPIC -Wno-constant-logical-operand -std=c++14 - 
I/home/azarakuss/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include - 
I/home/azarakuss/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include -I/home/azarakuss/ros_catkin_ws/install_isolated/include - 
I/usr/include -I/usr/include -I/usr/include -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets - 
I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux- 
gnu/qt5/mkspecs/linux-g++ -I/usr/include/PySide2 -I/usr/include/c++/9 -I/usr/include/x86_64-linux-gnu/c++/9 - 
I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu - 
I/usr/include /tmp/global_KOuTOx.hpp)
(typesystem) Could not parse /tmp/global_KOuTOx.hpp, error code: 4
Keeping temporary file: /tmp/global_KOuTOx.hpp
shiboken: Error running ApiExtractor.
Command line: --generatorSet=shiboken --enable-pyside-extensions --include- 
paths =/home/azarakuss/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp_shiboken/../../include:/home/azarakuss/ros_catkin_ws/src/qt_gui_core/qt_gui_cpp/include:/home/azarakuss/ros_catkin_ws/install_isolated/include:/usr/include:/usr/include:/usr/include:/usr/include/x86_64-linux-gnu/qt5/:/usr/include/x86_64-linux-gnu/qt5/QtWidgets:/usr/include/x86_64-linux-gnu/qt5/QtGui:/usr/include/x86_64-linux-gnu/qt5/QtCore:/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++:/usr/lib/../include/PySide2:/usr/include/c++/9:/usr/include/x86_64-linux-gnu/c++/9:/usr/include/c++/9/backward:/usr/lib/gcc/x86_64-linux-gnu/9/include:/usr/local/include:/usr/include/x86_64-linux-gnu:/usr/include --typesystem-paths=/usr/share/PySide2/typesystems --output-directory=/home/azarakuss/ros_catkin_ws/build_isolated/qt_gui_cpp/src/qt_gui_cpp_shiboken global.h typesystem.xml
make[2]: *** [src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/build.make:75: 
src/qt_gui_cpp_shiboken/libqt_gui_cpp_shiboken/libqt_gui_cpp_shiboken_module_wrapper.cpp] Error 1
make[1]: *** [CMakeFiles/Makefile2:517: src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/all] Error 2
make[1]: *** Bitmemiş işler için bekliyor....
[ 55%] Compiling generated code for qt_gui_cpp_sip Python bindings...
[ 58%] Meta target for qt_gui_cpp_sip Python bindings...
[ 58%] Built target libqt_gui_cpp_sip
make: *** [Makefile:141: all] Error 2
<== Failed to process package 'qt_gui_cpp': 
Command '['/home/azarakuss/ros_catkin_ws/install_isolated/env.sh', 'make', '-j12', '-l12']' returned non-zero exit status 2.

Reproduce this error by running:
==> cd /home/azarakuss/ros_catkin_ws/build_isolated/qt_gui_cpp && /home/azarakuss/ros_catkin_ws/install_isolated/env.sh 
make -j12 -l12

Command failed, exiting.

How can i solve it ?

edit retag flag offensive close merge delete

Comments

Which instructions are you following that gave you these errors? can you paste the link here?

srujan gravatar image srujan  ( 2020-12-16 19:51:14 -0600 )edit

Yes, i forgot it. http://wiki.ros.org/noetic/Installati... Im followint this link. Im in step 2.1.2.

Azarakuss gravatar image Azarakuss  ( 2020-12-17 02:39:06 -0600 )edit

I found solution. Thx for helping.

Azarakuss gravatar image Azarakuss  ( 2020-12-17 03:46:11 -0600 )edit

@Azarakuss How did you address this error? I get the same error. I removed qt_gui_core folder from /src and cloned it from https://github.com/ros-visualization/.... Still I get the same error.

zlg9 gravatar image zlg9  ( 2021-05-16 18:50:20 -0600 )edit