#研究生日常
1.报错1:CMake Error at CMakeLists.txt:41 (add_subdirectory):
The source directory
/home/hipeson/zjw/V2Xverse/spconv/third_party/pybind11
does not contain a CMakeLists.txt file.
解决方案:显示缺少pybind11文件,去下载后安装进来这个文件夹
2.报错2:CMake Error at /home/hipeson/anaconda3/envs/v2xverse/share/cmake-3.22/Modules/CMakeTestCUDACompiler.cmake:56 (message):
The CUDA compiler
"/usr/bin/nvcc" // 省略部分报错
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1d793/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1d793.dir/build.make CMakeFiles/cmTC_1d793.dir/build
gmake[1]: Entering directory '/home/hipeson/zjw/V2Xverse/spconv/build/temp.linux-x86_64-cpython-37/CMakeFiles/CMakeTmp'
37/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_1d793.dir/main.cu.o
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
/usr/include/c++/11/type_traits(1406): error: type name is not allowed
/usr/include/c++/11/type_traits(1406): error: identifier "__is_same" is undefined
/usr/include/c++/11/type_traits(3251): error: type name is not allowed
/usr/include/c++/11/type_traits(3251): error: type name is not allowed
/usr/include/c++/11/bits/stl_pair.h(460): error: argument list for class template "std::pair" is missing
解决方案:gcc相关问题,建议直接在虚拟环境里安装gcc然后设置一下路径。(因为我的ubuntu22.04系统没办法安装gcc8)
3.报错3:/home/hipeson/zjw/V2Xverse/spconv/include/spconv/box_iou.h:21:10: fatal error: boost/geometry.hpp: No such file or directory
#include <boost/geometry.hpp>
解决方案:找不到系统中的boost的一些子文件,直虚拟环境里安装一下boost
4./home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:133:14: error: 'cout' is not a member of 'std'
std::cout << "box i corners:" << std::endl;
^~~~
std::cout << "box i corners:" << std::endl;
^~~~
/home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:135:16: error: 'cout' is not a member of 'std'
std::cout << box_corners_r(i, k, 0) << " " << box_corners_r(i, k, 1)
^~~~
/home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:135:16: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:138:14: error: 'cout' is not a member of 'std'
std::cout << "box j corners:" << std::endl;
^~~~
/home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:138:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/home/hipeson/zjw/V2Xverse/spconv/include/spconv/nms.h:140:16: error: 'cout' is not a member of 'std'
std::cout << box_corners_r(j, k, 0) << " " << box_corners_r(j, k, 1)
解决方案:// 在 nms.h 文件的顶部添加这一行,确保 <iostream> 被包含。
#include <iostream>



2138

被折叠的 条评论
为什么被折叠?



