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

catkin_make error #20

Open
zzhmx opened this issue Nov 29, 2023 · 3 comments
Open

catkin_make error #20

zzhmx opened this issue Nov 29, 2023 · 3 comments

Comments

@zzhmx
Copy link

zzhmx commented Nov 29, 2023

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

@finn-wang
Copy link

请问解决了吗,我也遇到了同样的报错

@bearmeetu
Copy link

请问解决了吗

@liubeihefei
Copy link

我按照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成功了,希望对你有帮助!

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

4 participants