查看完整版本: [-- Qt wince 4.5.3编译失败 --]

QTCN开发网 -> Qt嵌入式开发 -> Qt wince 4.5.3编译失败 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

zen_yue 2009-12-04 18:27

Qt wince 4.5.3编译失败

请教各位,我下了 qt-embedded-wince-opensource-src-4.5.3.zip 在nmake时提示出错,信息如下:

d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(347) : error
C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowe
d
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(347)
: see declaration of 'InterlockedIncrement'
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(348) : error
C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowe
d
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(348)
: see declaration of 'InterlockedDecrement'
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(349) : error
C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed

d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(349)
: see declaration of 'InterlockedExchange'
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(350) : error
C2733: second C linkage of overloaded function 'InterlockedCompareExchange' not
allowed
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(350)
: see declaration of 'InterlockedCompareExchange'
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(351) : error
C2733: second C linkage of overloaded function 'InterlockedExchangeAdd' not allo
wed
d:\qt_wits\include\qtcore\../../src/corelib/arch/qatomic_windows.h(351)
: see declaration of 'InterlockedExchangeAdd'
D:\Program Files\Windows CE Tools\wce600\WitsSDK\Include\Armv4i\malloc.h(45) : e
rror C2143: syntax error : missing ',' before '*'
NMAKE : fatal error U1077: “"D:\Program Files\Microsoft Visual Studio 8\VC\ce\b
in\x86_arm\cl.EXE"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\
nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “cd”: 返回代码“0x2”
Stop.

请大家帮忙看看如何解决,谢谢!

zen_yue 2009-12-05 18:35
没有大侠能帮小弟看看吗?

gaxuhongyu 2010-02-09 09:30
路径要设置对,我昨天才编过。你配置完成后最好用setcepaths.bat加上
你编译的时候选择的平台(例如:wincewm60professional-msvc2005)去配置,最好不要手动的set include
例如:先configure -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005 -opengl-es-cm
等到这个结束了,然后运行:
setcepaths.bat wincewm60professional-msvc2005
然后就会有相应的提示是错误还是失败,
网上很多都是说的手动添加inlcue lib 以及path 路径,感觉没说完全。当setcepaths.bat wincewm60professional-msvc2005
这个设置成功后可以用,set include set lib 命令去查看include 以及lib的路径

chen.kline 2011-03-14 19:56
我也遇到过这个问题,可能是你没有安装vs80sp补丁,装上应该就没事了

alme 2011-03-17 15:42
到底什么问题啊,我也遇见这个问题,而且我VS80SP补丁也装了啊,求助,很急~

tsyc 2011-04-26 11:21
这个问题我刚遇到,我是这样解决的,希望对后来者有帮助:
问题原因:wincewm60professional-msvc2005  不是wince6.0, 我的SDK是wince6.0,
configure -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005  改为:
configure -platform win32-msvc2005 -xplatform wince60standard-armv4i-msvc2005
问题解决。
在setcepaths.bat wince60standard-armv4i-msvc2005前,可能要修改两个地方:
1.\mkspecs\wince60standard-armv4i-msvc2005\qmake.conf:
CE_SDK        = wince60sdk   # replace with actual SDK name
2.)\bin\setcepaths.bat: 添加:
ELSE IF "%1" EQU "wince60standard-armv4i-msvc2005" (
checksdk.exe -sdk "wince60sdk (ARMV4I)" -script tmp_created_script_setup.bat 1>NUL
tmp_created_script_setup.bat
del tmp_created_script_setup.bat
echo Windows ce 6  selected, environment is set up
注意:wince60sdk 要是你实际安装的wince SDK名称。

zhi2008zhu 2011-10-13 17:12
折腾了3天终于找出原因了,在网上查遍了都没找到正确的解决办法,写出来希望对后来者有用

出现....\x86_arm\cl.exe  返回代码“0x2”的问题是在它的前一行的描述,描述了编译过程中的错误,如楼主的错误是:
malloc.h文件里面有错误:syntax error:missing ',' before '*'

安装这些描述修改了就通过编译了


查看完整版本: [-- Qt wince 4.5.3编译失败 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled