目录
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required.
OpenPCDet 代码地址:
GitHub - open-mmlab/OpenPCDet: OpenPCDet Toolbox for LiDAR-based 3D Object Detection.
好文推荐:
安装OpenPCDet跑通PointRCNN_av2.utils.io-CSDN博客
Windows安装OpenPCDet
windows下配置OpenPCDet_win10安装openpcdet-CSDN博客
在vs2019 的x64命令行下编译成功,成功了5个组件,但是
ingroup_inds编译报错。
set DISTUTILS_USE_SDK=1
python setup.py develop
依赖项 不全:
pip install pyquaternion
pip install av2
pip install open3d
windows下编译SharedArray
参考:
Windows安装SharedArray_no module named 'sharedarray-CSDN博客
python setup.py develop,
报错:
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required.
解决方法:
下载生成工具:
Microsoft C++ 生成工具 - Visual Studio
但是报了新的错误。
转自:解决distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required - 简书
安装 Microsoft Visual C++ Build tools
链接:https://pan.baidu.com/s/1sxCQFGrhC4PPz2ihLDq7QQ
提取码:p4cd
报了新的错误无法打开包括文件: “Windows.h”:
shared_memory_python.cpp(3): fatal error C1083: 无法打开包括文件: “Windows.h”: No such file or directory
在vs2019的命令行下执行,又报了新错误:
我在运行一个程序时候出现了出现了bug error: command ‘\XXX\VS2015\VC\BIN\x86_amd64\link.exe‘ failed with exit status 1158
后缀为1158的错误
后来在vs2017的命令行下执行,编译成功。
编译3d_nms等库
python3不支持long类型,把long改为int_64t,cpp和cu都改,可以编译了。
在vs2019的x64命令行下编译成功,
自己修改编译的 ingroup-inds库代码
https://download.csdn.net/download/jacke121/88670867
一些报错解决和编译依赖库:
‘quaternion_to_rotation_matrix‘ is being compiled since it was called from ‘quat_to_mat‘-CSDN博客
linux系统:
支持bin格式和npy格式:
if self.ext == '.bin':
points = np.fromfile(self.sample_file_list[index], dtype=np.float32).reshape(-1, 4)
elif self.ext == '.npy':
points = np.load(self.sample_file_list[index])
else:
raise NotImplementedError
input_dict = {
'points': points,
'frame_id': index,
}
data_dict = self.prepare_data(data_dict=input_dict)