Ubuntu 16.04安裝Pangolin-機子安裝Anaconda的情況


Pangolin是一個輕量級的視頻交互/顯示工具,很多視覺SLAM程序使用他進行視頻的顯示和結果的繪制,比如DSO和ORB-SLAM2. 

Pangolin工程地址:https://github.com/stevenlovegrove/Pangolin

按照github上面的步驟編譯安裝的時候出現了錯誤:

[ 73%] Built target pangolin
[ 74%] Linking CXX executable HelloPangolin
//usr/lib/x86_64-linux-gnu/libsoxr.so.0: undefined reference to `GOMP_parallel@GOMP_4.0'
collect2: error: ld returned 1 exit status
examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/build.make:113: recipe for target 'examples/HelloPangolin/HelloPangolin' failed
make[2]: *** [examples/HelloPangolin/HelloPangolin] Error 1
CMakeFiles/Makefile2:268: recipe for target 'examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/all' failed
make[1]: *** [examples/HelloPangolin/CMakeFiles/HelloPangolin.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

 這是由於我的機子上安裝了Anaconda引起的,解決的辦法參照:https://github.com/stevenlovegrove/Pangolin/issues/285

 

我的具體解決辦法:

1. 將Anaconda的地址從環境變量中刪除,即打開.bashrc文件,注釋掉  export PATH="/home/zxw/anaconda2/bin:$PATH"

subl ~/.bashrc
(注釋掉export PATH="/home/zxw/anaconda2/bin:$PATH"之后:)
source ~/.bashrc

2. 打開新的窗口執行一下命令(前提是安裝好了相關的依賴庫,比如OpenGL等):

git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .

沒有出錯,編譯安裝成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM