ros-visualization / qt_gui_core

BSD 3-Clause "New" or "Revised" License
37 stars 76 forks source link

build qt_gui_cpp failed:libqt_gui_cpp_shiboken_python.h:23:10: fatal error: 'settings.h' file not found #253

Closed dongpan90 closed 3 years ago

dongpan90 commented 3 years ago

OS: Pi4 pi@raspberrypi:~/ROS2/ros_ws $ uname -a Linux raspberrypi 5.10.17-v7l+ #1421 SMP Thu May 27 14:00:13 BST 2021 armv7l GNU/Linux

ROS2 version: foxy

Error: --- stderr: qt_gui_cpp
qt.shiboken: (typesystem) Unknown attribute for 'add-function': 'allow-thread' 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[25]=-fPIC -Wno-constant-logical-operand -std=c++14 -I/home/pi/ROS2/ros_ws/src/ros-visualization/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp_shiboken/../../include -I/home/pi/ROS2/ros_ws/install/pluginlib/include -I/home/pi/ROS2/ros_ws/install/class_loader/include -I/home/pi/ROS2/ros_ws/install/rcpputils/include -I/home/pi/ROS2/ros_ws/install/rcutils/include -I/home/pi/ROS2/ros_ws/install/console_bridge_vendor/include -I/home/pi/ROS2/ros_ws/install/ament_index_cpp/include -I/usr/include -I/usr/include/arm-linux-gnueabihf/qt5/ -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtGui -I/usr/include/arm-linux-gnueabihf/qt5/QtCore -I/usr/lib/arm-linux-gnueabihf/qt5//mkspecs/linux-g++ -I/usr/include/PySide2 -I/usr/include/c++/8 -I/usr/include/arm-linux-gnueabihf/c++/8 -I/usr/include/c++/8/backward -I/usr/include/clang/7.0.1/include -I/usr/local/include -I/usr/include/arm-linux-gnueabihf -I/usr/include /tmp/global_yuMDKi.hpp) qt.shiboken: (typesystem) enum 'RCUTILS_LOG_SEVERITY' does not have a type entry or is not an enum qt.shiboken: (typesystem) skipping abstract function 'void QAbstractEventDispatcher::registerTimer(int,int,Qt::TimerType,QObject*)', unmatched type 'Qt::TimerType' in parameter #3 "timerType" This will lead to compilation errors due to not being able to instantiate the wrapper. qt.shiboken: (typesystem) class 'QFile' inherits from unknown base class 'QFileDevice' qt.shiboken: (typesystem) class not found for setup inheritance 'QFileDevice' qt.shiboken: (typesystem) class 'QSaveFile' inherits from unknown base class 'QFileDevice' qt.shiboken: (typesystem) class 'QAccessibleWidget' inherits from unknown base class 'QAccessibleActionInterface' qt.shiboken: (typesystem) class not found for setup inheritance 'QAccessibleActionInterface' qt.shiboken: (typesystem) class 'QGraphicsTextItem' inherits from unknown base class 'QGraphicsObject' qt.shiboken: (typesystem) class not found for setup inheritance 'QGraphicsObject' qt.shiboken: (typesystem) class 'QGraphicsWidget' inherits from unknown base class 'QGraphicsObject' In file included from /home/pi/ROS2/ros_ws/build/qt_gui_cpp/src/qt_gui_cpp_shiboken/libqt_gui_cpp_shiboken/libqt_gui_cpp_shiboken_module_wrapper.cpp:12: /home/pi/ROS2/ros_ws/build/qt_gui_cpp/src/qt_gui_cpp_shiboken/libqt_gui_cpp_shiboken/libqt_gui_cpp_shiboken_python.h:23:10: fatal error: 'settings.h' file not found

include

     ^~~~~~~~~~~~

1 error generated. make[2]: [src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/build.make:129: src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/libqt_gui_cpp_shiboken/libqt_gui_cpp_shiboken_module_wrapper.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:229: src/qt_gui_cpp_shiboken/CMakeFiles/qt_gui_cpp_shiboken.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

Failed <<< qt_gui_cpp [2min 19s, exited with code 2]

Summary: 0 packages finished [2min 25s] 1 package failed: qt_gui_cpp 1 package had stderr output: qt_gui_cpp

dongpan90 commented 3 years ago

my problem

fzd9752 commented 2 years ago

my problem

Hi @dongpan90, I met the same issue with rpi3b + ros2. May I know how you fix it out?