I develop my application on IDE(QtCreator), it is so easy, but I don't know how does static build, any body tell me, thanks
I develop my application on IDE(QtCreator), it is so easy, but I don't know how does static build, any body tell me, thanks
You need to have Qt built statically. Consult our wiki if you have problems with it.
ok,thanks, I do this:
1. I download another qt4.4.3 opensource and install to E:\QtSrc\4.4.3
2. build qt to static
cd E:\QtSrc\4.4.3
configure.exe -static
nmake sub-src
3. modify my application pro file
myapp.pro add:
QMAKE_LFLAGS += -static
4. nmake clean
5. qmake -config release
6. nmake
and then appear two warn:
LINK : warning LNK4044: unrecognized option "static"; ignored
LINK: warning LNK4089: all references to "WINSPOOL.DRV" discarded by /OPT:REF
ok, I get my app.exe but I don't display QMovie gif, and font is not my font, I copy plugs\imageformats to myapp\imageformats, it's not display again...
Last edited by kyosold; 6th January 2009 at 09:34.
QMAKE_LFLAGS+=-static is for unices, not windows.
static build of Qt doesn't use plugins, so you need them built statically as well, linked against the application and imported into the application using Q_IMPORT_PLUGIN.
Bookmarks