sibafb / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
0 stars 0 forks source link

/usr/bin/ld: cannot find -lEigen3::Eigen collect2: error: ld returned 1 exit status #2

Closed sibafb closed 2 years ago

sibafb commented 2 years ago

https://eigen.tuxfamily.org/index.php?title=Main_Page

sibafb commented 2 years ago

https://qiita.com/okubo999/items/6c8b001e79376f594ea3

sibafb commented 2 years ago

$ wget http://bitbucket.org/eigen/eigen/get/3.3.4.tar.gz URL transformed to HTTPS due to an HSTS policy --2022-05-09 11:52:12-- https://bitbucket.org/eigen/eigen/get/3.3.4.tar.gz Resolving bitbucket.org (bitbucket.org)... 2406:da00:ff00::22e9:9f55, 2406:da00:ff00::22c5:2ef4, 2406:da00:ff00::22c0:3470, ... Connecting to bitbucket.org (bitbucket.org)|2406:da00:ff00::22e9:9f55|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-05-09 11:52:13 ERROR 404: Not Found.

sibafb commented 2 years ago

https://github.com/FloopCZ/tensorflow_cc/issues/192

sibafb commented 2 years ago

wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz gitlabから取得できた

sibafb commented 2 years ago

https://gitlab.com/libeigen/eigen

sibafb commented 2 years ago

https://github.com/raulmur/ORB_SLAM2/issues/1015#issuecomment-912593195

I solve it. I found Pangolin has a upgrade to version 0.6 and the author make it to comply with c++ 17 or something. but orbslam2 reconment to c++ 11.
a higher version Pangolin is not suitble even it is installed.
1st, check the /usr/local/include. is there a signals derectory? if yes, delete it.
2ed, remove Pangolin files and clone 0.5 version codes.
3rd, rebuild it and install it.
to end, build orbslam2 (I was using build.sh).
hope it can help.
sibafb commented 2 years ago
Pangolin
git checkout v0.5
sudo apt-get install libglew-dev
sudo apt-get install cmake
sudo apt-get install libpython2.7-dev
sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
sudo apt-get install libdc1394-22-dev libraw1394-dev
sudo apt-get install libjpeg-dev libpng12-dev libtiff5-dev libopenexr-dev
mkdir ~/pangolin_ws
cd ~/pangolin_ws
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
make -j
sudo make install
sibafb commented 2 years ago

上記で実行できた

Screenshot from 2022-05-10 06-02-53