运行orbslam2的一系列问题解决

其实,这些问题,之前已经遇到过一次这种情况了,但是当时懒癌犯了,没记录,导致这次又得到处翻解决方案

  1. error: No rule to make target ‘/usr/lib/libOpenNI.so’, needed by ‘bin/euroc_rectify’
    说是pangolin安装失败或者被破坏掉了
    解决方案

  2. /home/mk/anaconda3/lib/libpng16.so.16: undefined reference to ’inflateValidate@ZLIB_1.2.9’
    collect2: error: ld returned 1 exit status
    CMakeFiles/mono_euroc.dir/build.make:158: recipe for target ‘…/Examples/Monocular/mono_euroc’ failed
    make[2]: […/Examples/Monocular/mono_euroc] Error 1
    CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/mono_euroc.dir/all’ failed
    make[1]: [CMakeFiles/mono_euroc.dir/all] Error 2
    make[1]: Waiting for unfinished jobs…
    是因为anaconda里面自带的版本冲突了

    解决办法把 export LD_LIBRARY_PATH=~/anaconda3/lib:$LD_LIBRARY_PATH 加到~/.bashrc里面去,然后发现后续一堆错,并且改不成功

    然后因为问题是libpng引起的,直接卸载掉,反正也用不上
    最终解决办法参考该处

    conda remove libpng
    

    以后要用,就安装一下libpng6就行

发布了93 篇原创文章 · 获赞 29 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/ljl1015ljl/article/details/102533901