gaowenliang / code_utils

my code utils
103 stars 94 forks source link

catkin_make error #20

Open zzhmx opened 9 months ago

zzhmx commented 9 months ago

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 commented 4 months ago

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

bearmeetu commented 3 months ago

请问解决了吗

liubeihefei commented 1 month ago

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