配置Qt for VS2005, VS2008 Run on WinCE6.0 平台

本文详细介绍了如何在Windows 7 x64环境下,配置Qt 4.7.3以支持Visual Studio 2008和Windows CE 6.0平台。首先,介绍了所需的软件环境,包括Qt源码、Visual Studio 2008、WinCE SDK等。接着,详细讲述了配置Qt的步骤,包括创建目录、修改配置文件、设置环境变量等。在配置过程中,遇到的Qt4.8.6版本configure失败的问题及解决方法也被提及。最后,成功配置Qt4.7.3,并完成了库的构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一.准备环境:

二. 配置Qt:

  • 创建新的目录C:\Qt\qt4.7.3-wince60, 解压qt-everywhere-opensource-src-4.7.3.zip到该目录下
    Note: 新建的目录中不能有空格
  • 打开C:\Qt\qt4.7.3-wince60\mkspecs
  • 按照按文件夹下的命名规则 :
    wince<version><SDK-shortcut>-[architecture]-msvc2005<\br>
  • 新建子文件夹 wince60chsint-armv4i-msvc2008
  • 复制名字近似的mkspec子目录下的qmake.conf和qplatformdefs.h文件到该新建的文件夹中
  • 打开qmake.conf文件修改一下两个参数:
    • CE_SDK 指定SDK的名字 (specifies the name of the SDK)
    • CE_ARCH 指定目标架构的平台 (specifies information about the target architecture)
    • 修改如下:
      CE_SDK = WINCE6.0_CHS_SDK # replace with actual SDK name
      CE_ARCH = ARMV4I
  • 添加系统环境变量C:\qt\qt4.7.3-wince60\bin
  • 使用管理员权限打开VS2008 Command Prompt,运行命令configure -platform win32-msvc2008 -xplatform wince60chsint-armv4i-msvc2008

    Note:
    不使用管理员权限可能会提示复制mkspec失败
    提示选择Qt的版本时

    Type ‘c’ if you want to use the Commercial Edition.
    Type ‘o’ if you want to use the Open Source Edition.

    输入o,表示使用开源版本。或者可以在configure命令中加上参数-opensource,则不会出现该提示。

    This is the Qt for Windows CE Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 2.1
    or the GNU General Public License (GPL) version 3.

    Type ‘3’ to view the GNU General Public License version 3 (GPLv3).
    Type ‘L’ to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
    Type ‘y’ to ac

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值