I am trying to compile the code provided here, but I am stuck when trying to run the command cmake ..
When running this command a lot of stuff is output to the screen and one of those things are those lines:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
G2O_EXT_CSPARSE
and also
-- Configuring incomplete, errors occurred!
See also "/home/yalishanda/Downloads/lsd_slam_noros-master/build/CMakeFiles/CMakeOutput.log".
See also "/home/yalishanda/Downloads/lsd_slam_noros-master/build/CMakeFiles/CMakeError.log".
So when doing cat of CMakeError.log I can see among many other things this:
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_792f7.dir/build.make:97: recipe for target 'cmTC_792f7' failed
I already installed pthreads using:
sudo apt-get install libpthread-stubs0-dev
which even returned:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpthread-stubs0-dev is already the newest version (0.3-4).
The following package was automatically installed and is no longer required:
snap-confine
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
So this shouldn't be the issue I think, yet the error output file complains about this.
I also already read 2 other posts on SE related to this kind of errors, but they didn't solve my issue.
Could someobody explain what I am doing incorrectly?
libsuitesparse-dev
) i.e.cmake -DBUILD_CSPARSE=ON ..