openppl-public / ppl.cv

ppl.cv is a high-performance image processing library of openPPL supporting various platforms.
Apache License 2.0
484 stars 108 forks source link

cl : 命令行 error D8003: 缺少源文件名 [E:\ppl.cv\pplcv-build\pplcv_static.vcxproj] #112

Closed Yutong-gannis closed 1 year ago

Yutong-gannis commented 1 year ago

What are the problems?(snapshots or detailed error messages)

  (base) E:\ppl.cv\pplcv-build>"E:\CUDA11.2\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc.exe" -gencode=arch=compute
  _35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_5
  0,compute_50\" -gencode=arch=compute_53,code=\"sm_53,compute_53\" -gencode=arch=compute_60,code=\"sm_60,compute_60\"
  -gencode=arch=compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" -gencode=arch=c
  ompute_72,code=\"sm_72,compute_72\" -gencode=arch=compute_75,code=\"sm_75,compute_75\" -gencode=arch=compute_80,code=
  \"sm_80,compute_80\" -gencode=arch=compute_86,code=\"sm_86,compute_86\" --use-local-env -ccbin "E:\Program Files (x86
  )\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu   -IE:\ppl.cv\include -IE:
  \ppl.cv\src -I"E:\CUDA11.2\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -IE:\ppl.cv\deps\pplcommon\src -I"E:\CUDA
  11.2\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include"     --keep-dir x64\Release  -maxrregcount=0  --machine 64 --com
  pile -cudart static -Xcompiler="/EHsc /wd4819,/wd4828 -Ob2"   -D_WINDOWS -DNDEBUG -DPPLCV_USE_CUDA -DPPLCV_VERSION_MA
  JOR=0 -DPPLCV_VERSION_MINOR=7 -DPPLCV_VERSION_PATCH=0 -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBU
  G -DPPLCV_USE_CUDA -DPPLCV_VERSION_MAJOR=0 -DPPLCV_VERSION_MINOR=7 -DPPLCV_VERSION_PATCH=0 -D"CMAKE_INTDIR=\"Release\
  "" -Xcompiler "/EHsc /W3 /nologo /O2 /FdE:\ppl.cv\pplcv-build\Release\pplcv_static.pdb /FS   /MD /GR" -o pplcv_static
  .dir\Release\cvtcolor.obj "E:\ppl.cv\src\ppl\cv\cuda\cvtcolor.cu"
cl : 命令行 error D8003: 缺少源文件名 [E:\ppl.cv\pplcv-build\pplcv_static.vcxproj]
CUDACOMPILE : nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 'sm_37' and 'sm_50' architectures a
re deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). [E:\ppl.cv
\pplcv-build\pplcv_static.vcxproj]
  cvtcolor.cu
E:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.
targets(785,9): error MSB3721: 命令“"E:\CUDA11.2\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin\nvcc.exe" -gencode=arch=comp
ute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_
50,compute_50\" -gencode=arch=compute_53,code=\"sm_53,compute_53\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -
gencode=arch=compute_61,code=\"sm_61,compute_61\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" -gencode=arch=comp
ute_72,code=\"sm_72,compute_72\" -gencode=arch=compute_75,code=\"sm_75,compute_75\" -gencode=arch=compute_80,code=\"sm_
80,compute_80\" -gencode=arch=compute_86,code=\"sm_86,compute_86\" --use-local-env -ccbin "E:\Program Files (x86)\Micro
soft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu   -IE:\ppl.cv\include -IE:\ppl.cv\s
rc -I"E:\CUDA11.2\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include" -IE:\ppl.cv\deps\pplcommon\src -I"E:\CUDA11.2\NVIDIA
 GPU Computing Toolkit\CUDA\v11.2\include"     --keep-dir x64\Release  -maxrregcount=0  --machine 64 --compile -cudart
static -Xcompiler="/EHsc /wd4819,/wd4828 -Ob2"   -D_WINDOWS -DNDEBUG -DPPLCV_USE_CUDA -DPPLCV_VERSION_MAJOR=0 -DPPLCV_V
ERSION_MINOR=7 -DPPLCV_VERSION_PATCH=0 -D"CMAKE_INTDIR=\"Release\"" -D_MBCS -DWIN32 -D_WINDOWS -DNDEBUG -DPPLCV_USE_CUD
A -DPPLCV_VERSION_MAJOR=0 -DPPLCV_VERSION_MINOR=7 -DPPLCV_VERSION_PATCH=0 -D"CMAKE_INTDIR=\"Release\"" -Xcompiler "/EHs
c /W3 /nologo /O2 /FdE:\ppl.cv\pplcv-build\Release\pplcv_static.pdb /FS   /MD /GR" -o pplcv_static.dir\Release\cvtcolor
.obj "E:\ppl.cv\src\ppl\cv\cuda\cvtcolor.cu"”已退出,返回代码为 2。 [E:\ppl.cv\pplcv-build\pplcv_static.vcxproj]

Which version(commit id or tag) of ppl.cv is used?

v0.7.0

What's the operating system ppl.cv runs on?

windows11

What are the commands used to build ppl.cv?

cmake .. -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DHPCC_USE_CUDA=ON -DPPLCV_USE_MSVC_STATIC_RUNTIME=OFF

cmake --build . --config Release -- /m

jimurk commented 1 year ago

我测试了一下,用如下命令可以正常编译成功: cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DPPLCV_USE_CUDA=ON -DPPLCV_USE_MSVC_STATIC_RUNTIME=OFF .. cmake --build . --config Release -- /m cmake --install . --config Release

或者直接用我们推荐的build.bat脚本也可以编译成功: ./build.bat -G "Visual Studio 16 2019" -A x64 -DPPLCV_USE_CUDA=ON

Yutong-gannis commented 1 year ago

@jimurk 感谢帮助,已经成功了

jimurk commented 1 year ago

客气了