• WINCE下编译STLPort


    编译环境: VS2005, MIPSII SDK, stlport5.2.1

    设置环境变量的批处理文件如下:

    MIPS平台的:

    rem you need to adapt at least these three
    set OSVERSION=WCE500
    set PLATFORM=test
    set TARGETCPU=MIPSII

    rem the compiler is always cl.exe, different compilers are in different paths
    set CC=cl.exe
    rem obviously, these need to be adjusted to where you installed VS2005 and the SDKs
    set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
    set SDKROOT=C:\Program Files\Windows CE Tools

    set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_mips;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
    set PLATFORMROOT=%SDKROOT%\%OSVERSION%\%PLATFORM%

    rem add libs and includes from the SDK
    set INCLUDE=%PLATFORMROOT%\include\%TARGETCPU%;%PLATFORMROOT%\MFC\include;%PLATFORMROOT%\ATL\include
    set LIB=%PLATFORMROOT%\lib\%TARGETCPU%;%PLATFORMROOT%\MFC\lib\%TARGETCPU%;%PLATFORMROOT%\ATL\lib\%TARGETCPU%

    rem add libs that came with VC8
    rem Note: there are more libs and includes under ce\atlmfc, not sure if these are needed.
    set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%

    ARM平台的:

    set OSVERSION=WCE420
    set PLATFORM=POCKET PC 2003
    set TARGETCPU=ARMV4

    rem the compiler is always cl.exe, different compilers are in different paths
    set CC=cl.exe

    rem obviously, these need to be adjusted to where you installed VS2005
    set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
    set SDKROOT=%VSINSTALLDIR%\SmartDevices\SDK

    set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_arm;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
    set PLATFORMROOT=%SDKROOT%\PocketPC2003

    rem add libs and includes from the SDK
    set INCLUDE=%PLATFORMROOT%\include
    set LIB=%PLATFORMROOT%\lib\%TARGETCPU%

    rem add libs that came with VC8
    set INCLUDE=%INCLUDE%;%VSINSTALLDIR%\VC\ce\atlmfc\include
    set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%;%VSINSTALLDIR%\VC\ce\atlmfc\lib\%TARGETCPU%


     

    先执行批处理文件设置好编译环境

    然后运行configure.bat.

    最后根据提示进入你的STL存放路径下的\build\lib下进行编译就OK了. 因为现在全部都做成makefile了,所以很方便.

  • 相关阅读:
    JqueryQrcode生成二维码不支持中文的解决办法
    [转载]浅析海量用户的分布式系统设计
    [转载]大型网站应用中 MySQL 的架构演变史
    CSS3变形记(上):千变万化的Div
    JavaScript进阶之路——认识和使用Promise,重构你的Js代码
    Visual Studio Code预览版Ver 0.3.0试用体验
    Apache Spark 2.3.0 正式发布
    Apache Spark 2.2.0 新特性详细介绍
    Apache Spark 2.2.0 正式发布
    Spark 论文篇-论文中英语单词集
  • 原文地址:https://www.cnblogs.com/frischzenger/p/1635872.html
Copyright © 2020-2023  润新知