Tag Archives: /usr/bin/ld

[Solved] ORB SLAM2 Compile Error: /usr/bin/ld:Couldnot Find -lEigen3::Eigen

This error was reported at the beginning

Then delete the original eigen as required, install eigen 3.3.7, uninstall the original opencv, install opencv3.4.5, and install pangolin V6

This error is reported after loading. At first, people thought it was because they gave eigen. They wanted to manually set the path of eigen in cmakelists, but it was still useless…

When thinking about whether there is a problem with their own source code, they ran to the GitHub of orb slam2 for the next wave of source code, which is still useless

On the verge of giving up, I visited a wave of issues. Thank you, brother. I succeeded in the first one, so I didn’t try the second one,

It should be that C + + 17 adopted in pangolin version is incompatible with C + + 11 recommended by orb slam2

/usr/bin/ld: cannot find -lz

The reason is the lack of zlib library, so we need to install the dependency manually

The automatic installation scheme is provided as follows:

Zlib is a function library for data compression

1.centos

yum install zlib*

2.ubuntu

sudo apt-get install zlib*

3dynamic installation

(1) downloaded file, http://www.zlib.net/

(2) installation path and installation

./configure
make
make install