Results 1 to 3 of 3

Thread: Qt 4.7.4 fails to compile with VS 2008

  1. #1
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt 4.7.4 fails to compile with VS 2008

    Trying to compile 4.7.4 with VS 2008 gives:

    link /LIBPATH:"c:\cygwin\home\mpi\git\quantumsource\exte rnal-libs\build\Qt-4.7.4\lib" /LIBPATH:"c:\cygwin\home\mpi\git\quantumsource\exte rna
    l-libs\build\Qt-4.7.4\lib" /NOLOGO /BASE:0x65000000 /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\QtGuid.intermed iate.manifest" /VERSION
    :4.74 /OUT:..\..\lib\QtGuid4.dll @C:\Users\MADSIP~1\AppData\Local\Temp\nmB7D1.tmp
    Creating library ..\..\lib\QtGuid4.lib and object ..\..\lib\QtGuid4.exp
    qimagereader.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl QTiffHandler::canRead(class QIODevice *)" (?canRead@QTiffH
    andler@@SA_NPEAVQIODevice@@@Z) referenced in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray co
    nst &,bool,bool)" (?createReadHandlerHelper@@YAPEAVQImageIOHandler@@ PEAVQIODevice@@AEBVQByteArray@@_N2@Z)
    qimagereader.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl QMngHandler::canRead(class QIODevice *)" (?canRead@QMngHan
    dler@@SA_NPEAVQIODevice@@@Z) referenced in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray cons
    t &,bool,bool)" (?createReadHandlerHelper@@YAPEAVQImageIOHandler@@ PEAVQIODevice@@AEBVQByteArray@@_N2@Z)
    qimagereader.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl QJpegHandler::canRead(class QIODevice *)" (?canRead@QJpegH
    andler@@SA_NPEAVQIODevice@@@Z) referenced in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray co
    nst &,bool,bool)" (?createReadHandlerHelper@@YAPEAVQImageIOHandler@@ PEAVQIODevice@@AEBVQByteArray@@_N2@Z)
    qimagereader.obj : error LNK2019: unresolved external symbol "public: __cdecl QTiffHandler::QTiffHandler(void)" (??0QTiffHandler@@QEAA@XZ) reference
    d in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray const &,bool,bool)" (?createReadHandlerHel
    per@@YAPEAVQImageIOHandler@@PEAVQIODevice@@AEBVQBy teArray@@_N2@Z)
    qimagewriter.obj : error LNK2001: unresolved external symbol "public: __cdecl QTiffHandler::QTiffHandler(void)" (??0QTiffHandler@@QEAA@XZ)
    qimagereader.obj : error LNK2019: unresolved external symbol "public: __cdecl QMngHandler::QMngHandler(void)" (??0QMngHandler@@QEAA@XZ) referenced i
    n function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray const &,bool,bool)" (?createReadHandlerHelper
    @@YAPEAVQImageIOHandler@@PEAVQIODevice@@AEBVQByteA rray@@_N2@Z)
    qimagewriter.obj : error LNK2001: unresolved external symbol "public: __cdecl QMngHandler::QMngHandler(void)" (??0QMngHandler@@QEAA@XZ)
    qimagereader.obj : error LNK2019: unresolved external symbol "public: __cdecl QJpegHandler::QJpegHandler(void)" (??0QJpegHandler@@QEAA@XZ) reference
    d in function "class QImageIOHandler * __cdecl createReadHandlerHelper(class QIODevice *,class QByteArray const &,bool,bool)" (?createReadHandlerHel
    per@@YAPEAVQImageIOHandler@@PEAVQIODevice@@AEBVQBy teArray@@_N2@Z)
    qimagewriter.obj : error LNK2001: unresolved external symbol "public: __cdecl QJpegHandler::QJpegHandler(void)" (??0QJpegHandler@@QEAA@XZ)
    ..\..\lib\QtGuid4.dll : fatal error LNK1120: 6 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'

    Any clues?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt 4.7.4 fails to compile with VS 2008

    How are you trying to build Qt? What options have you given? Are you doing anything directly related to image file handling plugins (which seems to be the issue)?

  3. #3
    Join Date
    Apr 2009
    Posts
    32
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.7.4 fails to compile with VS 2008

    Just running configure with no options. VS 2008 is autodetected.

Similar Threads

  1. VC++ 2008 compile error
    By cutie.monkey in forum Newbie
    Replies: 8
    Last Post: 25th April 2011, 08:44
  2. Compile Qt with Visual Studio 2008 64 bit
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 10th December 2010, 15:10
  3. Replies: 2
    Last Post: 15th February 2010, 15:07
  4. Qt 4.5.2 compile fails on opensolaris
    By andrnils in forum Installation and Deployment
    Replies: 1
    Last Post: 23rd September 2009, 19:38
  5. how to compile with msvc express 2008
    By john_god in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd March 2009, 14:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.