You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我按照oak官方提供的教程顺序执行,也遇到了同样的报错。
后来我发现可能是依赖的ceres-solver库的问题,我安装的是ceres-solver2.2.0版本,在官网的安装界面有如下说明: CUDA If you have an NVIDIA GPU then Ceres Solver can use it accelerate the solution of the Gauss-Newton linear systems using the CMake flag USE_CUDA. Currently this support is limited to using the dense linear solvers that ship with CUDA. As a result GPU acceleration can be used to speed up DENSE_QR, DENSE_NORMAL_CHOLESKY and DENSE_SCHUR. This also enables CUDA mixed precision solves for DENSE_NORMAL_CHOLESKY and DENSE_SCHUR. Optional.
可以发现其中提到有一个USE_CUDA选项是默认开启的,开启后调用该库可能会在一些情况下使用cuda库,于是我将ceres-solver2.2.0 CMakeLists.txt中的USE_CUDA从ON改为OFF并重新sudo make install,再次编译code_utils成功了,希望对你有帮助!
make[2]: *** [CMakeFiles/test_imu_calib.dir/build.make:107:/home/zzh/imu_tk-master/src/bin/test_imu_calib] error 1
make[1]: *** [CMakeFiles/Makefile2:775:CMakeFiles/test_imu_calib.dir/all] error 2
make[1]: *** 正在等待未完成的任务....
/usr/bin/ld: can't find -lCUDA::cublas
/usr/bin/ld: can't find -lCUDA::cudart
/usr/bin/ld: can't find -lCUDA::cusolver
/usr/bin/ld: can't find -lCUDA::cusparse
can you teach me how to fix it
The text was updated successfully, but these errors were encountered: