编译Windows Embedded Compact 7的升级库
我正在使用运行 Windows Embedded Compact 7的NVIDIA Tegra 2进行嵌入式设备编程.我的开发环境是Microsoft Visual Studio 2008.升级库,特别是boost-asio包似乎对我的需求非常有帮助.不幸的是,我无法找到关于如何在Windows Embedded Compact 7上运行升级的良好指南.我更喜欢获取.lib文件,我可以将其静态链接到我的应用程序中. 解决方法看来这个过程的文档很稀疏,因为它需要对构建过程进行非平凡的更新才能使用Windows CE.这个问题最全面的教程似乎是 here.既然你明确标记了这个boost-asio,我还特别研究了Boost的那个组件. Here’s a thread from the Boost mailing list详细介绍了该库,包括您可能遇到的潜在故障情况,JAM file modifications,和a batch file to help you with the build. * 对于那些阅读此内容的人:请在您开始工作后分享您的经验.尽管有各种各样的担忧,Boost is too memory-heavy for embedded applications, Boost提供了使用单独的包来满足您的需求的能力.我希望SO上的其他用户对您的工作体验非常感兴趣. *因为当Nabble链接过期时,人们一直表示引用的批处理文件消失了,这里有一个后代的粘贴: @SET VCINSTALLDIR=%VS9INSTALLDIR%VC @if "%VS9INSTALLDIR%"=="" goto error_no_VSINSTALLDIR @if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR @echo Setting environment for using Microsoft Visual Studio 2008 tools for WM5. @set TARGETCPU=X86 @call :GetWindowsSdkDir @if not "%WindowsSdkDir%" == "" ( set "PATH=%WindowsSdkDir%bin;%PATH%" ) @rem @rem Root of Visual Studio IDE installed files. @rem @set DevEnvDir=%VS9INSTALLDIR%Common7IDE @set PATH=%VCINSTALLDIR%CEbinx86_arm;%VCINSTALLDIR%bin;%VS9INSTALLDIR%Common7Tools;%DevEnvDir%;%VS9INSTALLDIR%CommonTools;%VS9INSTALLDIR%CommonIDE;%VS9INSTALLDIR%;%PATH% @set INCLUDE=%STLPORT_PATH%STLPort-5.2.1stlport;%VCINSTALLDIR%ceinclude;%CETOOLS%Windows Mobile 5.0 Pocket PC SDKincludeARMV4I;%CETOOLS%Windows Mobile 5.0 Pocket PC SDKinclude;%VCINSTALLDIR%ceatlmfcinclude @set LIB=%STLPORT_PATH%STLPort-5.2.1libevc9-arm;%CETOOLS%Windows Mobile 5.0 Pocket PC SDKlibARMV4I;%VCINSTALLDIR%ceATLMFCLIBARMV4I;%VCINSTALLDIR%ceLIBARMV4I @set LIBPATH= @goto end :GetWindowsSdkDir @call :GetWindowsSdkDirHelper HKLM > nul 2>&1 @if errorlevel 1 call :GetWindowsSdkDirHelper HKCU > nul 2>&1 @if errorlevel 1 set WindowsSdkDir=%VCINSTALLDIR%PlatformSDK @exit /B 0 :GetWindowsSdkDirHelper @for /F "tokens=1,2*" %%i in ('reg query "%1SOFTWAREMicrosoftMicrosoft SDKsWindows" /v "CurrentInstallFolder"') DO ( if "%%i"=="CurrentInstallFolder" ( SET "WindowsSdkDir=%%k" ) ) @if "%WindowsSdkDir%"=="" exit /B 1 @exit /B 0 :error_no_VSINSTALLDIR @echo ERROR: VS9INSTALLDIR variable is not set. @goto end :error_no_VCINSTALLDIR @echo ERROR: VCINSTALLDIR variable is not set. @goto end :end @SET VCINSTALLDIR=%VS9INSTALLDIR%VC @SET FrameworkDir=C:WINDOWSMicrosoft.NETFramework @SET FrameworkVersion=v2.0.50727 @SET Framework35Version=v3.5 @if "%VS9INSTALLDIR%"=="" goto error_no_VSINSTALLDIR @if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR @echo Setting environment for using Microsoft Visual Studio 2008 x86 tools with STLport-5.2.1. @call :GetWindowsSdkDir @if not "%WindowsSdkDir%" == "" ( set "PATH=%WindowsSdkDir%bin;%PATH%" set "INCLUDE=%WindowsSdkDir%include;%INCLUDE%" set "LIB=%WindowsSdkDir%lib;%LIB%" ) @rem @rem Root of Visual Studio IDE installed files. @rem @set DevEnvDir=%VS9INSTALLDIR%Common7IDE @set PATH=%DevEnvDir%;%VCINSTALLDIR%BIN;%VS9INSTALLDIR%Common7Tools;%FrameworkDir%%Framework35Version%;%FrameworkDir%%FrameworkVersion%;%VCINSTALLDIR%VCPackages;%PATH% @set INCLUDE=%STLPORT_PATH%STLport-5.2.1stlport;%VCINSTALLDIR%ATLMFCINCLUDE;%VCINSTALLDIR%INCLUDE;%INCLUDE% @set LIB=%STLPORT_PATH%STLport-5.2.1libvc9;%VCINSTALLDIR%ATLMFCLIB;%VCINSTALLDIR%LIB;%LIB% @set LIBPATH=%FrameworkDir%%Framework35Version%;%FrameworkDir%%FrameworkVersion%;%VCINSTALLDIR%ATLMFCLIB;%VCINSTALLDIR%LIB;%LIBPATH% @goto end :GetWindowsSdkDir @call :GetWindowsSdkDirHelper HKLM > nul 2>&1 @if errorlevel 1 call :GetWindowsSdkDirHelper HKCU > nul 2>&1 @if errorlevel 1 set WindowsSdkDir=%VCINSTALLDIR%PlatformSDK @exit /B 0 :GetWindowsSdkDirHelper @for /F "tokens=1,2*" %%i in ('reg query "%1SOFTWAREMicrosoftMicrosoft SDKsWindows" /v "CurrentInstallFolder"') DO ( if "%%i"=="CurrentInstallFolder" ( SET "WindowsSdkDir=%%k" ) ) @if "%WindowsSdkDir%"=="" exit /B 1 @exit /B 0 :error_no_VSINSTALLDIR @echo ERROR: VSINSTALLDIR variable is not set. @goto end :error_no_VCINSTALLDIR @echo ERROR: VCINSTALLDIR variable is not set. @goto end :end (编辑:瑞安网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |