PaddlePaddle / PaddlePaddle/FastDeploy
VS2019 编译错误
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 756
- Avg merge
- 19h 28m
- Merged PRs (30d)
- 4
Description
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
- 【FastDeploy版本】: 说明具体的版本,如fastdeploy-linux-gpu-0.8.0
- 【编译命令】如果您是自行编译的FastDeploy,请说明您的编译方式(参数命令)
- 【系统平台】: Windows x64(Windows11)
- 【硬件】: Nvidia GPU 3090, CUDA 12.1
- 【编译语言】:Python3.10 (C++)
问题日志及出现问题的操作流程
- 附上详细的问题日志有助于快速定位分析
正在创建库 D:/OCR/FastDeploy/python/.setuptools-cmake-build/Release/fastdeploy_main.lib 和对象 D:/OCR/Fas
tDeploy/python/.setuptools-cmake-build/Release/fastdeploy_main.exp
fastdeploy_main.vcxproj -> D:\OCR\FastDeploy\python.setuptools-cmake-build\Release\fastdeploy_main
.cp310-win_amd64.pyd
Error copying directory from "D:/OCR/FastDeploy/python/.setuptools-cmake-build/third_libs/install"
to "D:/OCR/FastDeploy/python/fastdeploy/libs/third_libs".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp
Common.targets(241,5): error MSB8066: “D:\OCR\FastDeploy\python.setuptools-cmake-build\CMakeFiles\d1
b01e200c73bd69209e24f7896224e0\copy_third_libraries.rule”的自定义生成已退出,代码为 1。 [D:\OCR\FastDeploy\python.
setuptools-cmake-build\copy_third_libraries.vcxproj]
Building Custom Rule D:/OCR/FastDeploy/CMakeLists.txt
Traceback (most recent call last):
File "D:\OCR\FastDeploy\python\setup.py", line 449, in
setuptools.setup(
File "D:\anaconda\lib\site-packages\setuptools_init_.py", line 108, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "D:\anaconda\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "D:\anaconda\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "D:\anaconda\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "D:\anaconda\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\anaconda\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "D:\anaconda\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "D:\anaconda\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "D:\anaconda\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\OCR\FastDeploy\python\setup.py", line 312, in run
self.run_command('cmake_build')
File "D:\anaconda\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "D:\anaconda\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "D:\anaconda\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\OCR\FastDeploy\python\setup.py", line 306, in run
subprocess.check_call(build_args)
File "D:\anaconda\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe', '--build', '.', '--config', 'Release', '--', '/maxcpucount:32']' returned non-zero exit status 1.
您好,我按照https://github.com/PaddlePaddle/FastDeploy/blob/develop/docs/cn/build_and_install/gpu.md 下Windows python的方法进行编译 在VS2019下运行
set ENABLE_ORT_BACKEND=ON
set ENABLE_PADDLE_BACKEND=ON
set ENABLE_OPENVINO_BACKEND=ON
set ENABLE_VISION=ON
set ENABLE_TEXT=ON
set ENABLE_TRT_BACKEND=ON
set WITH_GPU=ON
python setup.py build
python setup.py bdist_wheel
但是出现了以上错误 我不知道具体哪里出现了问题 还请帮我检查检查
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with python/setup.py and the top-level CMakeLists.txt, then inspect the failed copy_third_libraries build rule shown in the MSBuild log. Re-run the documented Windows Python build with the required environment variables and capture the complete configuration and version details. Done means identifying the cause of the directory-copy failure and confirming that the Python build completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100