always build error in setup project

本文提供了一种解决Visual Studio 2008中遇到的编译问题的方法。通过运行特定命令并定位到VS2008安装目录下的指定文件夹,可以打开活动日志并进一步定位解决方案中的问题。
try this one

run cmd vs 2008 provided.

go to vs 2008 location eg: C:\\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
 

devenv /log c:"ActivityLog.xsl

open related solution.

build it.

转载于:https://www.cnblogs.com/caichunsheng/archive/2009/04/29/1446193.html

PS C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2> pip install . Processing c:\users\zhaoh\downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2 Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [41 lines of output] + meson setup C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2 C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2\.mesonpy-ogb0n8vy -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2\.mesonpy-ogb0n8vy\meson-python-native-file.ini The Meson build system Version: 1.9.0 Source dir: C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2 Build dir: C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2\.mesonpy-ogb0n8vy Build type: native build Project name: vnpy_ctp Project version: 6.7.7.2 C++ compiler for the host machine: c++ (gcc 8.1.0 "c++ (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0") C++ linker for the host machine: c++ ld.bfd 2.30 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (C:\Users\zhaoh\AppData\Local\Programs\Python\Python312\python.exe) Run-time dependency python found: YES 3.12 Message: 使用pybind11路径: C:\Users\zhaoh\AppData\Local\Temp\pip-build-env-a_x57tb_\overlay\Lib\site-packages\pybind11\include Message: 构建目标系统: windows Library thostmduserapi_se found: YES Library thosttraderapi_se found: YES Build targets in project: 2 vnpy_ctp 6.7.7.2 User defined options Native files: C:\Users\zhaoh\Downloads\vnpy_ctp-6.7.7.2\vnpy_ctp-6.7.7.2\.mesonpy-ogb0n8vy\meson-python-native-file.ini b_ndebug : if-release b_vscrt : md buildtype : release Found ninja.EXE-1.13.0.git.kitware.jobserver-pipe-1 at C:\Users\zhaoh\AppData\Local\Temp\pip-build-env-a_x57tb_\normal\Scripts\ninja.EXE + meson compile [1/4] Compiling C++ object vnctpmd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctpmd_vnctpmd.cpp.obj FAILED: [code=1] vnctpmd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctpmd_vnctpmd.cpp.obj "c++" "-Ivnctpmd.cp312-win_amd64.pyd.p" "-I." "-I.." "-I..\vnpy_ctp\api\include" "-I..\vnpy_ctp\api\vnctp" "-IC:\Users\zhaoh\AppData\Local\Temp\pip-build-env-a_x57tb_\overlay\Lib\site-packages\pybind11\include" "-IC:\Users\zhaoh\AppData\Local\Programs\Python\Python312\Include" "-fvisibility=hidden" "-fvisibility-inlines-hidden" "-fdiagnostics-color=always" "-DNDEBUG" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-std=c++17" "-O3" "/MT" -MD -MQ vnctpmd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctpmd_vnctpmd.cpp.obj -MF "vnctpmd.cp312-win_amd64.pyd.p\vnpy_ctp_api_vnctp_vnctpmd_vnctpmd.cpp.obj.d" -o vnctpmd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctpmd_vnctpmd.cpp.obj "-c" ../vnpy_ctp/api/vnctp/vnctpmd/vnctpmd.cpp c++: error: /MT: No such file or directory [2/4] Compiling C++ object vnctptd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctptd_vnctptd.cpp.obj FAILED: [code=1] vnctptd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctptd_vnctptd.cpp.obj "c++" "-Ivnctptd.cp312-win_amd64.pyd.p" "-I." "-I.." "-I..\vnpy_ctp\api\include" "-I..\vnpy_ctp\api\vnctp" "-IC:\Users\zhaoh\AppData\Local\Temp\pip-build-env-a_x57tb_\overlay\Lib\site-packages\pybind11\include" "-IC:\Users\zhaoh\AppData\Local\Programs\Python\Python312\Include" "-fvisibility=hidden" "-fvisibility-inlines-hidden" "-fdiagnostics-color=always" "-DNDEBUG" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-std=c++17" "-O3" "/MT" -MD -MQ vnctptd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctptd_vnctptd.cpp.obj -MF "vnctptd.cp312-win_amd64.pyd.p\vnpy_ctp_api_vnctp_vnctptd_vnctptd.cpp.obj.d" -o vnctptd.cp312-win_amd64.pyd.p/vnpy_ctp_api_vnctp_vnctptd_vnctptd.cpp.obj "-c" ../vnpy_ctp/api/vnctp/vnctptd/vnctptd.cpp c++: error: /MT: No such file or directory ninja: build stopped: subcommand failed. INFO: autodetecting backend as ninja INFO: calculating backend command to run: C:\Users\zhaoh\AppData\Local\Temp\pip-build-env-a_x57tb_\normal\Scripts\ninja.EXE [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. [notice] A new release of pip is available: 25.1.1 -> 25.2 [notice] To update, run: python.exe -m pip install --upgrade pip error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
最新发布
09-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值