记录自己在Raspberrypi4+openEuler21.03上ROS打包过程中遇到的问题及解决办法。后续遇到新的问题也会在此更新。
-
问题
缺少Qt5Widgets依赖。[ 351s] Could not find a package configuration file provided by "Qt5Widgets" with [ 351s] any of the following names: [ 351s] [ 351s] Qt5WidgetsConfig.cmake [ 351s] qt5widgets-config.cmake
-
解决
dnf install qt5-devel
-
-
问题
缺少SIP binding[ 418s] -- Found PythonInterp: /usr/bin/python3.8 (found suitable version "3.8.5", minimum required is "3.8") [ 418s] CMake Warning at /home/abuild/rpmbuild/BUILD/qt_gui_core-0.4.2/install_isolated/share/python_qt_binding/cmake/sip_helper.cmake:28 (message): [ 418s] SIP binding generator NOT available. [ 418s] Call Stack (most recent call first): [ 418s] src/qt_gui_cpp_sip/CMakeLists.txt:36 (include)
-
解决
dnf install python3-sip
-
-
问题
ModuleNotFoundError: No module named 'sipconfig'
-
解决
dnf install python3-sip-devel
-
-
问题:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. [ 426s] Please set them or make sure they are set and tested correctly in the CMake files: [ 426s] GPGME_LIBRARY [ 426s] linked by target "rosbag_storage" in directory /home/abuild/rpmbuild/BUILD/executive_smach-2.5.0/src/ros_comm/rosbag_storage [ 426s] linked by target "rosbag_default_encryption_plugins" in directory /home/abuild/rpmbuild/BUILD/executive_smach-2.5.0/src/ros_comm/rosbag_storage
-
解决
dnf install openssl-devel dnf install python3-gpgme dnf install gpgme-devel
-
-
问题:缺少PyQt5
FileNotFoundError: The sip directory for PyQt5 could not be located. Please ensure that PyQt5 is installed
-
解决
dnf install python3-qt5
-
-
问题:缺少QtCore
from PyQt5 import QtCore ImportError: cannot import name 'QtCore' from 'PyQt5' (unknown location)
-
解决
dnf install python3-qt5
-
-
问题 缺少OpenCV依赖
Could not find a package configuration file provided by "OpenCV" with any [ 7915s] of the following names: [ 7915s] [ 7915s] OpenCVConfig.cmake [ 7915s] opencv-config.cmak
- 解决
wget https://files.pythonhosted.org/packages/59/e3/78c921adf4423fff68da327cc91b73a16c63f29752efe7beb6b88b6dd79d/Cython-0.29.24.tar.gz tar -xzf Cython-0.29.24.tar.gz cd Cython-0.29.24 python3 setup.py install cd .. wget https://files.pythonhosted.org/packages/3a/be/650f9c091ef71cb01d735775d554e068752d3ff63d7943b26316dc401749/numpy-1.21.2.zip unzip numpy-1.21.2.zip cd numpy-1.21.2.zip python3 setup.py install cd .. git clone https://github.com/opencv/opencv.git cd opencv mkdir build cd build cmake .. make make install
- 解决
-
问题:theora_image_transport 缺少ogg theora
Processing catkin package: 'theora_image_transport' Package 'ogg', required by 'virtual:world', not found
-
解决
dnf install libogg-devel dnf install libtheora-devel # BuildRequires: libogg-devel # BuildRequires: libtheora-devel
-