配置PVN3D环境遇到的问题
1.报错提示:RuntimeError: Error compiling objects for extension
当配置完所有环境,到最后一步 python setup.py build_ext
,出现如下报错:
\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\utils\cpp_extension.py:270: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die angegebene Datei nicht finden
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'pointnet2_utils._ext' extension
Emitting ninja build file C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\build\temp.win-amd64-3.6\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/9] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\TH -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\Boche\anaconda3\envs\pvn3d36\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -c C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\ball_query.cpp /FoC:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\build\temp.win-amd64-3.6\Release\pvn3d/_ext-src/src\ball_query.obj -O2 -I./pvn3d/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
FAILED: C:/Users/Boche/Desktop/Bachelorarbeit/Implementation/PVN3D/build/temp.win-amd64-3.6/Release/pvn3d/_ext-src/src/ball_query.obj
cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\TH -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\Boche\anaconda3\envs\pvn3d36\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -c C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\ball_query.cpp /FoC:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\build\temp.win-amd64-3.6\Release\pvn3d/_ext-src/src\ball_query.obj -O2 -I./pvn3d/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\ball_query.cpp(1): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "ball_query.h": No such file or directory
[2/9] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\TH -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\Boche\anaconda3\envs\pvn3d36\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -c C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\sampling.cpp /FoC:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\build\temp.win-amd64-3.6\Release\pvn3d/_ext-src/src\sampling.obj -O2 -I./pvn3d/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
FAILED: C:/Users/Boche/Desktop/Bachelorarbeit/Implementation/PVN3D/build/temp.win-amd64-3.6/Release/pvn3d/_ext-src/src/sampling.obj
cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\TH -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\Boche\anaconda3\envs\pvn3d36\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -c C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\sampling.cpp /FoC:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\build\temp.win-amd64-3.6\Release\pvn3d/_ext-src/src\sampling.obj -O2 -I./pvn3d/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
C:\Users\Boche\Desktop\Bachelorarbeit\Implementation\PVN3D\pvn3d\_ext-src\src\sampling.cpp(1): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sampling.h": No such file or directory
[3/9] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\TH -IC:\Users\Boche\anaconda3\envs\pvn3d36\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -IC:\Users\Boche\anaconda3\envs\pvn3d36\in