SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
757 stars 271 forks source link

vs2017构建错误 #128

Open izhaojinlong opened 5 years ago

izhaojinlong commented 5 years ago

cmake成功!但是使用vs2017进行构建发生了错误。我想知道该如何解决这个问题。如能指出将非常感谢。torch1.1.0 py3.5 VS2017 display: 1>------ 已启动生成: 项目: ZERO_CHECK, 配置: Debug Win32 ------ 1>Checking Build System 1>CMake does not need to re-run because D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/build/CMakeFiles/generate.stamp is up-to-date. 2>------ 已启动生成: 项目: warpctc, 配置: Debug Win32 ------ 2>Building NVCC (Device) object CMakeFiles/warpctc.dir/src/Debug/warpctc_generated_ctc_entrypoint.cu.obj 2>Failed to run D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostWin32/x86 (系统锟揭诧拷锟斤拷指锟斤拷锟斤拷锟侥硷拷锟斤拷 2> 2>). 2>CMake Error at warpctc_generated_ctc_entrypoint.cu.obj.Debug.cmake:219 (message): 2> Error generating 2> D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/build/CMakeFiles/warpctc.dir/src/Debug/warpctc_generated_ctc_entrypoint.cu.obj 2> 2> 2>D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe”已退出,代码为 1。 2>已完成生成项目“warpctc.vcxproj”的操作 - 失败。 3>------ 已启动生成: 项目: test_cpu, 配置: Debug Win32 ------ 4>------ 已启动生成: 项目: test_gpu, 配置: Debug Win32 ------ 3>Building Custom Rule D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/CMakeLists.txt 3>CMake does not need to re-run because D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/build/CMakeFiles/generate.stamp is up-to-date. 3>cl : 命令行 error D8016: “/O2”和“/RTC1”命令行选项不兼容 3>已完成生成项目“test_cpu.vcxproj”的操作 - 失败。 4>Building NVCC (Device) object CMakeFiles/test_gpu.dir/tests/Debug/test_gpu_generated_test_gpu.cu.obj 4>Failed to run D:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostWin32/x86 (系统锟揭诧拷锟斤拷指锟斤拷锟斤拷锟侥硷拷锟斤拷 4> 4>). 4>CMake Error at test_gpu_generated_test_gpu.cu.obj.Debug.cmake:219 (message): 4> Error generating 4> D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/build/CMakeFiles/test_gpu.dir/tests/Debug/test_gpu_generated_test_gpu.cu.obj 4> 4> 4>D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe”已退出,代码为 1。 4>已完成生成项目“test_gpu.vcxproj”的操作 - 失败。 5>------ 已启动生成: 项目: ALL_BUILD, 配置: Debug Win32 ------ 5>Building Custom Rule D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/CMakeLists.txt 5>CMake does not need to re-run because D:/Python_code/crnn.pytorch/warp-ctc-pytorch_bindings/build/CMakeFiles/generate.stamp is up-to-date. 6>------ 已跳过生成: 项目: INSTALL, 配置: Debug Win32 ------ 6>没有为此解决方案配置选中要生成的项目