Qt static build



  • i am trying to build a static version of qt 4.7 on wince platform.im using msvc with Qt addin.i used the following configuration to configure Qt statically in visual studio command prompt.

    @configure -platform win32-msvc2008 -xplatform wince60un20-mipsiv_fp-msvc2008 -opensource -debug-and-release -qt-libjpeg -qt-gif -qt-libpng -no-qt3support -no-phonon -no-phonon-backend -xmlpatterns -exceptions -arch windowsce -nomake examples -nomake demos -static@

    when i tried to build the projects.sln ,i got these link errors.

    @QtGuid.lib(qimagereader.obj) : error LNK2019: unresolved external symbol "public: static bool __cdecl QGifHandler::canRead(class QIODevice *)" (?canRead@QGifHandler@@SA_NPAVQIODevice@@@Z) referenced in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray const &,bool,bool)" (?createReadHandlerHelper@@YAPAVQImageIOHandler@@PAVQIODevice@@ABVQByteArray@@_N2@Z)
    1>QtGuid.lib(qimagereader.obj) : error LNK2019: unresolved external symbol "public: __cdecl QGifHandler::QGifHandler(void)" (??0QGifHandler@@QAA@XZ) referenced in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray const &,bool,bool)" (?createReadHandlerHelper@@YAPAVQImageIOHandler@@PAVQIODevice@@ABVQByteArray@@_N2@Z)
    1>QtGuid.lib(qimagewriter.obj) : error LNK2001: unresolved external symbol "public: __cdecl QGifHandler::QGifHandler(void)" (??0QGifHandler@@QAA@XZ)
    1>QtGuid.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol getenv referenced in function jinit_memory_mgr
    1>....\bin\qmlviewer.exe : fatal error LNK1120: 3 unresolved externals@

    anyone having an idea,pls help.
    thanks in advance
    nitin



  • I'll answer you with this link: http://blogs.msdn.com/b/vsdteam/archive/2005/11/20/495123.aspx

    Maybe that's your problem...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.