Sophus icon indicating copy to clipboard operation
Sophus copied to clipboard

Add/Link installation instructions in the README

Open jonassvedas opened this issue 3 years ago • 3 comments

Thanks

jonassvedas avatar Oct 05 '20 09:10 jonassvedas

+1 I installed the library using general CMake steps

cd Sophus
mkdir build
cd build
cmake ..
make

However in my project CMakeLists.txt I have

#Sophus
FIND_PACKAGE( Sophus REQUIRED )
INCLUDE_DIRECTORIES( ${Sophus_INCLUDE_DIRS} )

#Link with third party libs.
set( THIRD_PARTY_LIBS 
    ${OpenCV_LIBS}
    ${Sophus_LIBRARIES}
    g2o_core g2o_stuff g2o_types_sba
)

But I am getting error in my include

In file included from /home/menonsandu/github/Online_Correction/Online_Correction/src/initializer.cpp:1:
/home/menonsandu/github/Online_Correction/Online_Correction/include/initializer.h:7:10: fatal error: sophus/se3.h: No such file or directory
 #include "sophus/se3.hpp"

sandeepnmenon avatar May 06 '22 06:05 sandeepnmenon

You can try:

FIND_PACKAGE( Sophus REQUIRED )

#Link with third party libs.
set( THIRD_PARTY_LIBS 
    ${OpenCV_LIBS}
    Sophus::Sophus
    g2o_core g2o_stuff g2o_types_sba
)

NikolausDemmel avatar May 06 '22 09:05 NikolausDemmel

Thank you. That worked!

sandeepnmenon avatar May 06 '22 11:05 sandeepnmenon