Results 1 to 4 of 4

Thread: Can't build QT 5.6.1 and 5.7.0 from sources

  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Can't build QT 5.6.1 and 5.7.0 from sources

    Platform : Windows 7 Prof 64 bit
    Compiler : Visual Studio 2013
    Qt 5.6.1 and 5.7.0 from sources "everywhere opensource" configured with :
    Qt Code:
    1. configure -platform win32-msvc2013 -opensource -debug-and-release -confirm-license -l D:\openssl.2013\lib\libeay32 -l D:\openssl.2013\lib\ssleay32 -qt-zlib -plugin-sql-sqlite -plugin-sql-odbc -plugin-sql-psql -I D:\PostgreSQL\9.4\include -l D:\PostgreSQL\9.4\lib\libpq -qt-libpng -qt-libjpeg
    To copy to clipboard, switch view to plain text mode 
    . Building Qt5Network library linker says :
    Qt Code:
    1. link /NOLOGO /DYNAMICBASE /NXCOMPAT /BASE:0x64000000 /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.7 /MANIFEST:embed
    2. /OUT:..\..\lib\Qt5Networkd.dll @C:\Users\lesiok\AppData\Local\Temp\nm98EA.tmp
    3. Creating library ..\..\lib\Qt5Networkd.lib and object ..\..\lib\Qt5Networkd.exp
    4. qhttpnetworkreply.obj : error LNK2019: unresolved external symbol _inflate referenced in function "public: __int64 __thi
    5. scall QHttpNetworkReplyPrivate::uncompressBodyData(class QByteDataBuffer *,class QByteDataBuffer *)" (?uncompressBodyDat
    6. a@QHttpNetworkReplyPrivate@@QAE_JPAVQByteDataBuffer@@0@Z)
    7. qspdyprotocolhandler.obj : error LNK2001: unresolved external symbol _inflate
    8. qhttpnetworkreply.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function "public: virtual __
    9. thiscall QHttpNetworkReply::~QHttpNetworkReply(void)" (??1QHttpNetworkReply@@UAE@XZ)
    10. qhttpnetworkreply.obj : error LNK2019: unresolved external symbol _inflateInit2_ referenced in function "public: int __t
    11. hiscall QHttpNetworkReplyPrivate::initializeInflateStream(void)" (?initializeInflateStream@QHttpNetworkReplyPrivate@@QAE
    12. HXZ)
    13. qspdyprotocolhandler.obj : error LNK2019: unresolved external symbol _deflate referenced in function "private: class QBy
    14. teArray __thiscall QSpdyProtocolHandler::composeHeader(class QHttpNetworkRequest const &)" (?composeHeader@QSpdyProtocol
    15. Handler@@AAE?AVQByteArray@@ABVQHttpNetworkRequest@@@Z)
    16. qspdyprotocolhandler.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function "public: virtual
    17. __thiscall QSpdyProtocolHandler::~QSpdyProtocolHandler(void)" (??1QSpdyProtocolHandler@@UAE@XZ)
    18. qspdyprotocolhandler.obj : error LNK2019: unresolved external symbol _inflateSetDictionary referenced in function "priva
    19. te: bool __thiscall QSpdyProtocolHandler::uncompressHeader(class QByteArray const &,class QByteArray *)" (?uncompressHea
    20. der@QSpdyProtocolHandler@@AAE_NABVQByteArray@@PAV2@@Z)
    21. qspdyprotocolhandler.obj : error LNK2019: unresolved external symbol _deflateInit_ referenced in function "public: __thi
    22. scall QSpdyProtocolHandler::QSpdyProtocolHandler(class QHttpNetworkConnectionChannel *)" (??0QSpdyProtocolHandler@@QAE@P
    23. AVQHttpNetworkConnectionChannel@@@Z)
    24. qspdyprotocolhandler.obj : error LNK2019: unresolved external symbol _inflateInit_ referenced in function "public: __thi
    25. scall QSpdyProtocolHandler::QSpdyProtocolHandler(class QHttpNetworkConnectionChannel *)" (??0QSpdyProtocolHandler@@QAE@P
    26. AVQHttpNetworkConnectionChannel@@@Z)
    27. ..\..\lib\Qt5Networkd.dll : fatal error LNK1120: 8 unresolved externals
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Can't build QT 5.6.1 and 5.7.0 from sources

    I've built both from source on a Mac, but unfortunately that doesn't help you. Clearly the errors are with unresolved symbols from the zlib library. I don't do Windows any longer, is there a system zlib that you could try to use with the -system-zlib configure option instead of -qt-zlib?
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't build QT 5.6.1 and 5.7.0 from sources

    When I compile with -system-zlib I have a problem with PostgreSQL plugin. Makefile fo Qt5Core lib needs zdll.lib.
    Qt 4.8 works seamlessly.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can't build QT 5.6.1 and 5.7.0 from sources

    Problem exist for both configurations : -qt-zlib and -system-zlib.

Similar Threads

  1. compiling from sources fails
    By nuliknol in forum Installation and Deployment
    Replies: 1
    Last Post: 26th June 2014, 09:47
  2. Qt Linguist and coding sources
    By Hostel in forum Newbie
    Replies: 2
    Last Post: 1st November 2010, 02:36
  3. Unable to install QT 4.4.0 from sources
    By debnathm in forum Installation and Deployment
    Replies: 4
    Last Post: 6th August 2008, 07:43
  4. Installing Qt 4.4.0 from sources
    By tom in forum Installation and Deployment
    Replies: 1
    Last Post: 21st May 2008, 07:44
  5. Build Qt4.3.2 from sources with MinGW under WinXP
    By Nyphel in forum Installation and Deployment
    Replies: 9
    Last Post: 30th October 2007, 19:05

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.