• 13942阅读
  • 7回复

【已解决】qt-embedded-wince-opensource-src-4.5.0是否支持wince6?编译老不成功 [复制链接]

上一主题 下一主题
离线lgh603
 
只看楼主 正序阅读 楼主  发表于: 2009-01-15
— 本帖被 XChinux 从 Qt for Embedded Linux 移动到本区(2010-02-07) —
哈哈,搞定了,答案是QT4.5(snapshot)支持wince6,其它版本未尝试
1.安装vs2005sp1
2.安装wince6
3.安装wince6sp1
4.生成ce平台和SDK,并安装SDK(我的系统出了问题,所以第5步configure后生成的checksdk找不到安装的SDK)
5.参照Windows CE - Using shadow builds进行shadow builds
6.没有了
---------------------------------------------------------------------------------------------------

使用如下命令:
configure -platform win32-msvc2005 -xplatform wince60standard-armv4i-msvc2005
set INCLUDE=D:\Microsoft\Microsoft Visual Studio 8\VC\ce\include
set LIB=D:\Microsoft\Microsoft Visual Studio 8\VC\ce\lib\armv4i
set PATH=D:\Microsoft\Microsoft Visual Studio 8\VC\ce\bin\x86_arm;%PATH%
nmake

出现如下错误:
。。。。。。(省略若干行)
cl: 命令行 warning D9002 :忽略未知选项“-QRarch4T”
cl: 命令行 warning D9002 :忽略未知选项“-QRinterwork-return”
qtmain_win.cpp
x:\qtce450\include\qtcore\../../src/corelib/global/qt_windows.h(54) : fatal erro
r C1083: 无法打开包括文件:“ceconfig.h”: No such file or directory
NMAKE : fatal error U1077: “"D:\Microsoft\Microsoft Visual Studio 8\VC\BIN\cl.E
XE"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"D:\Microsoft\Microsoft Visual Studio 8\VC\BIN\nmak
e.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.

--------------------------------------------------------------------------------------

我怎么在wince6的安装目录里找不到ceconfig.h这个文件呢,还是Qt还不支持wince6?
[ 此贴被lgh603在2009-02-02 13:10重新编辑 ]
离线panther124
只看该作者 7楼 发表于: 2010-01-20
等待中,怎么还没高手来解决
离线jjxt
只看该作者 6楼 发表于: 2009-07-12
楼主,我现在也是遇到了这个问题,提示
NMAKE : fatal error U1077: “"D:\Microsoft\Microsoft Visual Studio 8\VC\BIN\nmak
e.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.

你是怎么解决的啊?你说系统出问题,是出的什么问题才可能导致这个错误出现呢?
离线lgh603
只看该作者 5楼 发表于: 2009-01-27
换wce5就可以,继续郁闷中。。。
离线zhlgh603

只看该作者 4楼 发表于: 2009-01-20
郁闷啊,就算是生成SDK安装后还是同样的错误
有没有人教教我啊。。。
离线wd007

只看该作者 3楼 发表于: 2009-01-17
呵呵,wince上没有用过,学习一下
欢迎访问我的博客,一起学习提高
http://blog.csdn.net/qter_wd007
离线zhlgh603

只看该作者 2楼 发表于: 2009-01-16
好了,ceconfig.h找到了,继续

真是菜啊,要先在vs2005建一个ce6工程,然后sysgen
工程目录下有一个PBInitEnv.bat文件,初始化环境的吧,运行

设置环境变量,我的是:

set PATH=D:\Microsoft\Visual Studio 8\VC\ce\bin\x86_arm;%PATH%
set INCLUDE=D:\Microsoft\Visual Studio 8\VC\ce\include
set LIB=D:\Microsoft\Visual Studio 8\VC\ce\lib\armv4i

set INCLUDE=%_PROJECTROOT%\cesysgen\sdk\inc;%INCLUDE%
set LIB=%_PROJECTSDKROOT%\cesysgen\sdk\lib\ARMV4I\retail;%LIB%

nmake
出错了

错误和警告-----------------------------------------------------
Windows CE Version (Release) (Built on Jun 30 2006 16:52:46)
    cl -c -FIqt_pch.h -Yuqt_pch.h -Fptmp\obj\debug_shared\QtCored_pch.pch -nologo -Zm200 -Zc:wchar_t- -QRarch4T -QRinterwork-return -DDEBUG -D_DEBUG -Zi -MDd -W3 -w34100 -w34189 -DQT_SHARED -DQT_THREAD_SUPPORT -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE -DSTANDARDSHELL_UI_MODEL -D_WIN32_WCE=0x600 -DARMV4I -D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D_WIN32 -D__arm__ -DQ_OS_WINCE_STD -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DNO_ERRNO_H -DHB_EXPORT=Q_CORE_EXPORT -DQT_DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp\rcc\debug_shared" -I"tmp" -I"concurrent" -I"global" -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\wince60standard-armv4i-msvc2005" -Fotmp\obj\debug_shared\ @C:\DOCUME~1\lgh\LOCALS~1\Temp\nm30CE.tmp
qcryptographichash.cpp
tools\qcryptographichash.cpp : warning C4005: '_MSC_VER' : macro redefinition
        command-line arguments : see previous definition of '_MSC_VER'
tools\qcryptographichash.cpp : warning C4005: '_MSC_FULL_VER' : macro redefinition
        command-line arguments : see previous definition of '_MSC_FULL_VER'
tools\qcryptographichash.cpp : warning C4651: '/D_MSC_VER=1401' specified for precompiled header but not for current compile
tools\qcryptographichash.cpp : warning C4651: '/D_MSC_FULL_VER=140160511' specified for precompiled header but not for current compile
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(59) : error C2143: syntax error : missing ';' before '*'
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(59) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(59) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(61) : error C2146: syntax error : missing ';' before identifier 'HPROCESS'
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(64) : error C2146: syntax error : missing ';' before identifier 'PCRECT'
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(66) : error C2146: syntax error : missing ';' before identifier 'WIN32_ERROR_CODE'
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
E:\lgh\MyOS\MyOS\Wince600\DeviceEmulator_ARMV4I\cesysgen\sdk\inc\types.h(66) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


types文件--------------------------------------------------
50
51 typedef const void * PCVOID;
52 typedef void ** PPVOID;
53
54 typedef unsigned char uchar;
55 typedef unsigned short ushort;
56 typedef unsigned int uint;
57 typedef unsigned long ulong;
58 typedef void (*PFNVOID)();
59 typedef CHAR * LPCHAR;
60
61 typedef HANDLE HPROCESS;
62 typedef HANDLE HTHREAD;
63
64 typedef LPCRECT PCRECT;
65
66 typedef DWORD WIN32_ERROR_CODE;
67
68 #endif // _TYPES_H_
离线jnny_cn

只看该作者 1楼 发表于: 2009-01-16
昨晚我刚在vs2005_wince5.0下编已通过,在开发板上也跑通了,按照安装文件中的指导安的,没出问题

建议你按照安装包中的,安装文件一步步来。
快速回复
限100 字节
 
上一个 下一个