vc6 设置 pre-build 步骤

把 spdatapickle 移植到 win32 平台,使用 vc6 进行编译。在编译示范例子的时候,第一步需要调用代码生成工具根据 xml 生成一些代码。这个步骤在 makefile 中很容易实现,但是在 vc6 中,试了好久才终于试验成功。记录一下步骤

[img]http://dl.iteye.com/upload/attachment/165175/5324ca86-9ceb-3be4-b074-7e531109c4ac.jpg[/img]

[img]http://dl.iteye.com/upload/attachment/165177/4b230488-f53d-3a5b-85dd-1ecab4296b4a.jpg[/img]
) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\86186\AppData\Local\Temp\pip-install-8hpoqv19\scikit-learn_ff294da55c6d435993bb72a85ed9abf8\sklearn\setup.py", line 85, in configuration cythonize_extensions(top_path, config) File "C:\Users\86186\AppData\Local\Temp\pip-install-8hpoqv19\scikit-learn_ff294da55c6d435993bb72a85ed9abf8\sklearn\_build_utils\__init__.py", line 47, in cythonize_extensions basic_check_build() File "C:\Users\86186\AppData\Local\Temp\pip-install-8hpoqv19\scikit-learn_ff294da55c6d435993bb72a85ed9abf8\sklearn\_build_utils\pre_build_helpers.py", line 114, in basic_check_build compile_test_program(code) File "C:\Users\86186\AppData\Local\Temp\pip-install-8hpoqv19\scikit-learn_ff294da55c6d435993bb72a85ed9abf8\sklearn\_build_utils\pre_build_helpers.py", line 70, in compile_test_program ccompiler.compile( File "C:\Users\86186\AppData\Local\Programs\Python\Python311\Lib\distutils\_msvccompiler.py", line 323, in compile self.initialize() File "C:\Users\86186\AppData\Local\Programs\Python\Python311\Lib\distutils\_msvccompiler.py", line 220, in initialize vc_env = _get_vc_env(plat_spec) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\86186\AppData\Local\Temp\pip-build-env-jzf6ibu8\overlay\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env return _msvc14_get_vc_env(plat_spec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\86186\AppData\Local\Temp\pip-build-env-jzf6ibu8\overlay\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env raise distutils.errors.DistutilsPlatformError( distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subproc
03-09
12:00:30: Information - CPreRequisiteInstallerApp::InitializeLog(273) - * Version: 25.3.0.189 12:00:30: Information - CPreRequisiteInstallerApp::InitializeLog(275) - * Build Date: May 6 2025 12:00:30: Information - CPreRequisiteInstallerApp::InitializeLog(276) - * Build Time: 10:05:59 12:00:30: Information - CPreRequisiteInstallerApp::InitializeLog(277) - * Command Line: /Silent /StoreWin32 OfflineInstaller 12:00:30: Information - CPreRequisiteInstallerApp::Run(303) - Silent Installation without UI triggered 12:00:30: Information - CPreRequisiteVerification::IsDotNetInstalled(98) - Checking if .NET Framework is present with Min Release No 528040 12:00:30: Information - CPreRequisiteVerification::IsDotNetInstalled(121) - The.NET Framework requirement satisfied 12:00:30: Information - CPreRequisiteVerification::IsDotNetCoreInstalled(65) - Searching for Desktop Runtime 8.0.11, currently found 8.0.15 12:00:30: Information - CPreRequisiteVerification::IsDotNetCoreInstalled(79) - Found Desktop Runtime 8.0.15 that is greater than or equal to 8.0.11, the .net 8 requirement is satisfied 12:00:30: Information - CPreRequisiteVerification::IsRequireToInstallVCRedist(131) - Checking for installed VC Redist 12:00:30: Information - CPreRequisiteVerification::IsRequireToInstallVCRedist(136) - Found the installed VC Redist version details as 14.42.34433.00, 14.44.35208.00 12:00:30: Information - CPreRequisiteVerification::IsEdgeWebView2Installed(155) - Checking if Microsoft Webview2 Runtime is present on the system. 12:00:30: Information - CPreRequisiteVerification::IsEdgeWebView2Installed(219) - Status of Edge runtime on system : 1 12:00:30: Information - WinAppRuntimePrerequisiteChecks::IsWinAppRuntimeInstalled(42) - Following package not found Microsoft.WinAppRuntime.DDLM.7000.435.154.0-x8_7000.435.154.0_x86__8wekyb3d8bbwe : 12:00:30: Information - CInstallManager::Install(25) - Proceeding with Packages installation 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(27) - Is this offline Installer : 1 12:00:30: Information - WinAppRuntimePrerequisiteChecks::IsServerOS2k19orBelow(66) - OS Version (major version, minor version, build number: 10 , 0, 19045 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(74) - Initializing Pre requisite components 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(80) - Checking for installed VC Redist 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(101) - Pre requisite components log file path : "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-DotNetCoreInstaller-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(106) - Creating component with PackageName: windowsdesktop-runtime-8.0.11-win-x86.exe and commandline argument: /silent /norestart /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-DotNetCoreInstaller-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::Create(10) - Create Component windowsdesktop-runtime-8.0.11-win-x86.exe with commandline : /silent /norestart /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-DotNetCoreInstaller-20250709-120030.log" 12:00:30: Information - CPreRequisiteVerification::IsDotNetCoreInstalled(65) - Searching for Desktop Runtime 8.0.11, currently found 8.0.15 12:00:30: Information - CPreRequisiteVerification::IsDotNetCoreInstalled(79) - Found Desktop Runtime 8.0.15 that is greater than or equal to 8.0.11, the .net 8 requirement is satisfied 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(117) - Disable installation for package : windowsdesktop-runtime-8.0.11-win-x86.exe 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(154) - Adding component : windowsdesktop-runtime-8.0.11-win-x86.exe to list 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(101) - Pre requisite components log file path : "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-NetFramework-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(106) - Creating component with PackageName: ndp48-x86-x64-allos-enu.exe and commandline argument: /q /norestart /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-NetFramework-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::Create(10) - Create Component ndp48-x86-x64-allos-enu.exe with commandline : /q /norestart /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-NetFramework-20250709-120030.log" 12:00:30: Information - CPreRequisiteVerification::IsDotNetInstalled(98) - Checking if .NET Framework is present with Min Release No 528040 12:00:30: Information - CPreRequisiteVerification::IsDotNetInstalled(121) - The.NET Framework requirement satisfied 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(123) - Disable installation for package : ndp48-x86-x64-allos-enu.exe 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(154) - Adding component : ndp48-x86-x64-allos-enu.exe to list 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(101) - Pre requisite components log file path : "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(106) - Creating component with PackageName: vc_redist.x86.exe and commandline argument: /q /norestart /ACTION=Install /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::Create(10) - Create Component vc_redist.x86.exe with commandline : /q /norestart /ACTION=Install /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(129) - Disable installation for package : vc_redist.x86.exe 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(154) - Adding component : vc_redist.x86.exe to list 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(101) - Pre requisite components log file path : "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(106) - Creating component with PackageName: vc_redist.x64.exe and commandline argument: /q /norestart /ACTION=Install /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::Create(10) - Create Component vc_redist.x64.exe with commandline : /q /norestart /ACTION=Install /l "C:\Program Files (x86)\Citrix\Logs\CTXPreRequisiteInstallLogs-20250709-120030\CtxInstall-vc_redist-20250709-120030.log" 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(135) - Disable installation for package : vc_redist.x64.exe 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(154) - Adding component : vc_redist.x64.exe to list 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(106) - Creating component with PackageName: MicrosoftEdgeWebView2RuntimeInstallerX86.exe and commandline argument: /silent /install 12:00:30: Information - CPreRequisitesComponent::Create(10) - Create Component MicrosoftEdgeWebView2RuntimeInstallerX86.exe with commandline : /silent /install 12:00:30: Information - CPreRequisiteVerification::IsEdgeWebView2Installed(155) - Checking if Microsoft Webview2 Runtime is present on the system. 12:00:30: Information - CPreRequisiteVerification::IsEdgeWebView2Installed(219) - Status of Edge runtime on system : 1 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(142) - Disable installation for package : MicrosoftEdgeWebView2RuntimeInstallerX86.exe 12:00:30: Information - CPreRequisitesComponent::InitializePreRequisiteComponent(154) - Adding component : MicrosoftEdgeWebView2RuntimeInstallerX86.exe to list 12:00:30: Information - CInstallManager::InstallPreRequisite(57) - Completed initialization of pre requisite component 12:00:30: Information - CInstallManager::InstallPreRequisite(60) - Checking of installation of component 12:00:30: Information - CInstallManager::InstallPreRequisite(60) - Checking of installation of component 12:00:30: Information - CInstallManager::InstallPreRequisite(60) - Checking of installation of component 12:00:30: Information - CInstallManager::InstallPreRequisite(60) - Checking of installation of component 12:00:30: Information - CInstallManager::InstallPreRequisite(60) - Checking of installation of component 12:00:30: Information - CPreRequisiteInstallerApp::ExitInstance(369) - Exit Code = 0 什么原因导致
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值