安装spconv1.2.1的常见问题

#研究生日常

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>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值