-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get CSparse to work with G2O #600
Comments
While your cmake refers to ${G20_CSPARSE_EXTENSION} this library does not show up in the linker command you pasted. Can you check whether the find script is setting this variable correctly? |
How can I use the target file of g2o sounds like it an easier fix |
I created a folder called Thirdlibrary and cloned g2o in there, did the build and all with make - j4.
but I don't think I have a libg2o.so in that directory, I tried to use the CMake from Orb slam2 |
If you anyhow want to build g2o in your project, you might want to try the fetch content approach described in #596 (comment) Otherwise, install g2o to some folder, adapt CMAKE_INSTALL_PREFIX for that, let's say this is set to /home/user/local On your project, a CMakeLists might look like cmake_minimum_required(VERSION 3.14)
project(testlib)
find_package(g2o)
add_library(testlib SHARED library.cpp)
target_compile_features(testlib PUBLIC cxx_std_14)
target_link_libraries(testlib g2o::core) Now configure this project by |
still no luck i deleted g2o, cloned it ,did the whole
all over again the for my project I did
still didn't work I don't know what am doing wrong
and my find csparseis
I still keep getting the same error
|
# ${G20_TYPES_LIBRARY}
# ${G2O_SOLVER_CSPARSE}
# ${G20_CSPARSE_EXTENSION}
# ${G2O_SOLVER_CSPARSE_LIBRARY} Above all is commented anyways but please note that some (in particular the one on the csparse extension) have mixed up O (capital latter o) vs 0 (number zero). |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
Hey guys I have been trying to get Csparse to work with g2o and I am not sure exactly what to do
when I use this line
I get the error
My cmakelist.txt
the file in cmake_modules to find CSparse
The text was updated successfully, but these errors were encountered: