PDA

View Full Version : cannot compile qt4.6.3 for CE with vs2005 sp1



feverzsj
2nd August 2010, 08:12
after invoking nmake, I got:



Creating library ..\..\lib\QtCored4.lib and object ..\..\lib\QtCored4.exp
qtsciicodec.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qcoreapplication.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qcoreapplication_win.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qfunctions_wince.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qtextcodec.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qsettings.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qfsfileengine_win.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
quuid.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qlibrary_win.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qdatastream.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qfile.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qtextstream.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qtemporaryfile.obj : error LNK2019: unresolved external symbol __GSHandlerCheck referenced in function "int __cdecl _gettemp(char *,int *,int,int)" (?_gettemp@@YAHPADPAHHH@Z)
gzio.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
inftrees.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
trees.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
harfbuzz-shaper-all.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qdatetime.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qlocale.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qregexp.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qstring.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qglobal.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qbytearray.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qbytearraymatcher.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
qcryptographichash.obj : error LNK2001: unresolved external symbol __GSHandlerCheck
..\..\lib\QtCored4.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\ce\bin\x86_arm\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"d:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.


This seems to be a problem with sp1 upgrade. The suggested workaround is to explicitly include "libcmt.lib". So, I tried adding the "libcmt.lib" to "\mkspecs\common\wince\qmake.conf" and "\mkspecs\wince50standard-armv4i-msvc2005\qmake.conf", but error remained.