Skip to content
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

Kimera VIO cmake build error. #223

Open
threedee003 opened this issue Jan 5, 2024 · 4 comments
Open

Kimera VIO cmake build error. #223

threedee003 opened this issue Jan 5, 2024 · 4 comments

Comments

@threedee003
Copy link

Dear @marcusabate ,
I followed the installation instructions and tried building the package. But I am getting the following error. Can you please tell me, what do I need to do to resolve this ? I would be happy to provide you any additional information.

[ 92%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testInitializationFromImu.cpp.o
[ 93%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testVioBackend.cpp.o
[ 93%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testVioBackendParams.cpp.o
[ 94%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testVioParams.cpp.o
[ 95%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testVisionImuFrontendParams.cpp.o
[ 95%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testFeatureDetectorParams.cpp.o
[ 96%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testFeatureDetector.cpp.o
[ 96%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testVisualizer3D.cpp.o
[ 97%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testOnlineAlignment.cpp.o
[ 98%] Building CXX object CMakeFiles/testKimeraVIO.dir/tests/testOpticalFlowPredictor.cpp.o
[100%] Linking CXX executable stereoVIOEuroc
/usr/bin/ld: warning: libopencv_core.so.409, needed by /usr/local/lib/libDBoW2.so, not found (try using -rpath or -rpath-link)
[100%] Built target stereoVIOEuroc
[100%] Linking CXX executable testKimeraVIO
/usr/bin/ld: warning: libopencv_core.so.409, needed by /usr/local/lib/libDBoW2.so, not found (try using -rpath or -rpath-link)
/home/bikram/Kimera-VIO/build/testKimeraVIO: error while loading shared libraries: libopencv_core.so.409: cannot open shared object file: No such file or directory
CMake Error at /usr/share/cmake-3.16/Modules/GoogleTestAddTests.cmake:40 (message):
  Error running test executable.

 Path: '/home/bikram/Kimera-VIO/build/testKimeraVIO'
 Result: 127
 Output:

make[2]: *** [CMakeFiles/testKimeraVIO.dir/build.make:1011: testKimeraVIO] Error 1
make[2]: *** Deleting file 'testKimeraVIO'
make[1]: *** [CMakeFiles/Makefile2:911: CMakeFiles/testKimeraVIO.dir/all] Error 2
make: *** [Makefile:141: all] Error

regards,
Tribikram.

@yangzhongii
Copy link

I encountered the same problem as you, how did you solve it?

@marcusabate
Copy link
Member

marcusabate commented Apr 29, 2024

Sometimes this happens if you make changes to the code and try to rebuild, though you didn't mention doing that so it probably isn't the case here. Try first doing catkin clean kimera_vio kimera_vio_ros and then catkin build kimera_vio to see if the clean and rebuild works (this is usually it for me).
It's also giving a warning about libopencv_core.so that I've not seen before, are you building opencv3_catkin in the same workspace? Try building it before Kimera, it shouldn't matter but that might help. Alternatively, install a system-wide version of opencv.

@yangzhongii
Copy link

yangzhongii commented Apr 30, 2024 via email

@yangzhongii
Copy link

yangzhongii commented May 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants