Qt 4.7.0静态构建为wince

时间:2010-10-05 05:33:10

标签: qt qt4

我无法为WinCE进行Qt 4.7.0的静态构建。

首先我将Qt 4.7.0 wince来源复制到C:\Qt\4.7.0_wince并使用params运行配置

-platform win32-msvc2008 -xplatform wincewm60professional-msvc2008

然后setcepath.bat为wincewm60professional-msvc2008然后nmake。一切都很好。

现在我需要做一个静态版本的Qt的libs。我该怎么做?我在C:\Qt\4.7.0_wince_static中使用相同的Qt 4.7.0 wince创建了另一个Qtdir并使用params运行了配置

-release -nomake examples -nomake demos -no-qt3support -no-openssl -no-opengl -no-webkit -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008 -qt-libjpeg -qt-libpng -qt-gif -static

然后setcepaths.bat为wincewm60professional-msvc2008。但当我跑nmake时,我收到了一个错误:

Generating Code...
link /LIBPATH:"c:\Qt\4.7.0_wince_static\lib" /LIBPATH:"c:\Qt\4.7.0_wince
_static\lib" /NOLOGO /NODEFAULTLIB:OLDNAMES.LIB /INCREMENTAL:NO /SUBSYSTEM:WINDO
WSCE,5.02 /MACHINE:THUMB /OUT:..\..\bin\qmlviewer.exe @C:\Users\SerGe\AppData\Lo
cal\Temp\nm315F.tmp
QtDeclarative.lib(qdeclarativevaluetype.obj) : warning LNK4217: locally defined
symbol ?qt_defaultDpi@@YAHXZ (int __cdecl qt_defaultDpi(void)) imported in funct
ion "public: float __cdecl QDeclarativeFontValueType::pointSize(void)const " (?p
ointSize@QDeclarativeFontValueType@@QBAMXZ)
QtGui.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol getenv refere
nced in function jinit_memory_mgr
..\..\bin\qmlviewer.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\ce\bin\x86_arm\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\bin\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

怎么了?请帮我解决这个问题。在此先感谢!!!

0 个答案:

没有答案