openeuler 适配ros包问题记录

3 篇文章 0 订阅
3 篇文章 0 订阅

记录自己在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
      
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值