zoukankan      html  css  js  c++  java
  • 修复ubuntu 18.04的错误: “libpng12.so.0: cannot open shared object file: No such file or directory”

    错误“libpng12.so.0: cannot open shared object file: No such file or directory”

    运行ORB_SLAM3时,遇到错误“libpng12.so.0: cannot open shared object file: No such file or directory”。执行命令“sudo apt install libpng12-0”,可以按照libpng12.so.0,解决这个问题。

    出错的命令记录

    /proj/hankf/slam/ORB_SLAM3$ ./Examples/Stereo/stereo_euroc ./Vocabulary/ORBvoc.txt ./Examples/Stereo/EuRoC.yaml /proj/hankf/hankf/slam/euroc-mav-dataset/MH_04_difficult ./Examples/Stereo/EuRoC_TimeStamps/MH04.txt dataset-MH04_stereo
    ./Examples/Stereo/stereo_euroc: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
    

    安装的命令记录

    hankf@XSZGS4:/proj/hankf/hankf/slam/opencv-4.5$ sudo apt install libpng12-0
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      libpng12-0
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 0 B/116 kB of archives.
    After this operation, 285 kB of additional disk space will be used.
    Selecting previously unselected package libpng12-0:amd64.
    (Reading database ... 315713 files and directories currently installed.)
    Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
    Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
    Setting up libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
    Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
    
  • 相关阅读:
    mysql数据库表中判断字段是否存在,如果不存在则创建该字段
    PHP同时操作两个mysql数据库
    Bootstrap-分页插件Paginator
    NLP--自然语言处理与机器学习会议
    对CURL的一些研究
    Nginx完整配置说明
    SecureCRT自动登陆到服务器的脚本以及脚本编写简单说明
    Fast CGI 工作原理
    FastCGI中文规范
    Linux +apache+fastcgi运行c/c++
  • 原文地址:https://www.cnblogs.com/hankfu/p/15744932.html
Copyright © 2011-2022 走看看