Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compiling Qt from Source on Windows - Error
Forum Update on Monday, May 27th 2025

Compiling Qt from Source on Windows - Error

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 3 Posters 6.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PrateekKhatri
    wrote on last edited by PrateekKhatri
    #1

    Hi All,
    I am trying to compile Qt from source for the first time. I am using the following configure option:

    configure -skip webengine -nomake examples -nomake tests
    

    However, even then I get an error related to compilations of the tests module.

    C:\Qt\Qt5.10>..\jom\jom.exe > output
    
    jom 1.1.2 - empower your cores
    
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\qcoreapplication\Makefile.Debug [debug\tst_qcoreapplication.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\qcoreapplication\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\Makefile [sub-qcoreapplication-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\Makefile [sub-kernel-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-corelib-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\qpixmapcache\Makefile.Debug [debug\tst_qpixmapcache.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\qpixmapcache\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\Makefile [sub-qpixmapcache-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\qhostinfo\Makefile.Debug [debug\tst_qhostinfo.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\qhostinfo\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\Makefile [sub-qhostinfo-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\qhttpnetworkconnection\Makefile.Debug [debug\tst_qhttpnetworkconnection.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\qhttpnetworkconnection\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\Makefile [sub-qhttpnetworkconnection-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\Makefile [sub-access-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\Makefile [sub-kernel-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-network-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\qpathclipper\Makefile.Debug [debug\tst_qpathclipper.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\qpathclipper\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\Makefile [sub-qpathclipper-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\qhostinfo\Makefile.Release [release\tst_bench_qhostinfo.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\qhostinfo\Makefile [release] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\Makefile [sub-qhostinfo-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\Makefile [sub-kernel-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\Makefile [sub-network-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\qguiapplication\Makefile.Debug [debug\tst_qguiapplication.exe] Error 1120
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\qguiapplication\Makefile [debug] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\Makefile [sub-qguiapplication-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-kernel-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-image-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-painting-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-gui-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\Makefile [sub-auto-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\tests\Makefile [sub-benchmarks-make_first] Error 2
    jom: C:\Qt\Qt5.10\qtbase\Makefile [sub-tests-make_first] Error 2
    jom: C:\Qt\Qt5.10\Makefile [module-qtbase-make_first] Error 2
    

    And, I get these during the compilation:

    tst_qcoreapplication.obj : error LNK2019: unresolved external symbol "public: static class QThreadData * __cdecl QThreadData::current(bool)" (?current@QThreadData@@SAPAV1@_N@Z) referenced in function "private: virtual void __thiscall Thread::run(void)" (?run@Thread@@EAEXXZ)
    debug\tst_qcoreapplication.exe : fatal error LNK1120: 1 unresolved externals
    tst_qpixmapcache.obj : error LNK2019: unresolved external symbol "int __cdecl q_QPixmapCache_keyHashSize(void)" (?q_QPixmapCache_keyHashSize@@YAHXZ) referenced in function "private: void __thiscall tst_QPixmapCache::noLeak(void)" (?noLeak@tst_QPixmapCache@@AAEXXZ)
    debug\tst_qpixmapcache.exe : fatal error LNK1120: 1 unresolved externals
    tst_qhostinfo.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_clear_cache(void)" (?qt_qhostinfo_clear_cache@@YAXXZ) referenced in function "private: void __thiscall tst_QHostInfo::init(void)" (?init@tst_QHostInfo@@AAEXXZ)
    tst_qhostinfo.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_enable_cache(bool)" (?qt_qhostinfo_enable_cache@@YAX_N@Z) referenced in function "private: void __thiscall tst_QHostInfo::init(void)" (?init@tst_QHostInfo@@AAEXXZ)
    debug\tst_qhostinfo.exe : fatal error LNK1120: 2 unresolved externals
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkRequest::QHttpNetworkRequest(class QUrl const &,enum QHttpNetworkRequest::Operation,enum QHttpNetworkRequest::Priority)" (??0QHttpNetworkRequest@@QAE@ABVQUrl@@W4Operation@0@W4Priority@0@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkRequest::QHttpNetworkRequest(class QHttpNetworkRequest const &)" (??0QHttpNetworkRequest@@QAE@ABV0@@Z) referenced in function "public: static void * __cdecl QtMetaTypePrivate::QMetaTypeFunctionHelper<class QHttpNetworkRequest,1>::Construct(void *,void const *)" (?Construct@?$QMetaTypeFunctionHelper@VQHttpNetworkRequest@@$00@QtMetaTypePrivate@@SAPAXPAXPBX@Z)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall QHttpNetworkRequest::~QHttpNetworkRequest(void)" (??1QHttpNetworkRequest@@UAE@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall QHttpNetworkRequest::setHeaderField(class QByteArray const &,class QByteArray const &)" (?setHeaderField@QHttpNetworkRequest@@UAEXABVQByteArray@@0@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::compression(void)" (?compression@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: enum QHttpNetworkRequest::Priority __thiscall QHttpNetworkRequest::priority(void)const " (?priority@QHttpNetworkRequest@@QBE?AW4Priority@1@XZ) referenced in function "public: void __thiscall GetMultipleWithPrioritiesReceiver::finishedSlot(void)" (?finishedSlot@GetMultipleWithPrioritiesReceiver@@QAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setPriority(enum QHttpNetworkRequest::Priority)" (?setPriority@QHttpNetworkRequest@@QAEXW4Priority@1@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkRequest::isPipeliningAllowed(void)const " (?isPipeliningAllowed@QHttpNetworkRequest@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setPipeliningAllowed(bool)" (?setPipeliningAllowed@QHttpNetworkRequest@@QAEX_N@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultiple(void)" (?getMultiple@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setUploadByteDevice(class QNonContiguousByteDevice *)" (?setUploadByteDevice@QHttpNetworkRequest@@QAEXPAVQNonContiguousByteDevice@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::post(void)" (?post@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkRequest __thiscall QHttpNetworkReply::request(void)const " (?request@QHttpNetworkReply@@QBE?AVQHttpNetworkRequest@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: int __thiscall QHttpNetworkReply::statusCode(void)const " (?statusCode@QHttpNetworkReply@@QBEHXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QString __thiscall QHttpNetworkReply::reasonPhrase(void)const " (?reasonPhrase@QHttpNetworkReply@@QBE?AVQString@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __int64 __thiscall QHttpNetworkReply::bytesAvailable(void)const " (?bytesAvailable@QHttpNetworkReply@@QBE_JXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QByteArray __thiscall QHttpNetworkReply::readAny(void)" (?readAny@QHttpNetworkReply@@QAE?AVQByteArray@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::put(void)" (?put@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QByteArray __thiscall QHttpNetworkReply::readAll(void)" (?readAll@QHttpNetworkReply@@QAE?AVQByteArray@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkReply::setDownstreamLimited(bool)" (?setDownstreamLimited@QHttpNetworkReply@@QAEX_N@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getAndThenDeleteObject(void)" (?getAndThenDeleteObject@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkReply::isFinished(void)const " (?isFinished@QHttpNetworkReply@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkReply::isPipeliningUsed(void)const " (?isPipeliningUsed@QHttpNetworkReply@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkConnection * __thiscall QHttpNetworkReply::connection(void)" (?connection@QHttpNetworkReply@@QAEPAVQHttpNetworkConnection@@XZ) referenced in function "public: void __thiscall tst_QHttpNetworkConnection::challenge401(class QHttpNetworkRequest const &,class QAuthenticator *)" (?challenge401@tst_QHttpNetworkConnection@@QAEXABVQHttpNetworkRequest@@PAVQAuthenticator@@@Z)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkConnection::QHttpNetworkConnection(class QString const &,unsigned short,bool,enum QHttpNetworkConnection::ConnectionType,class QObject *,class QSharedPointer<class QNetworkSession>)" (??0QHttpNetworkConnection@@QAE@ABVQString@@G_NW4ConnectionType@0@PAVQObject@@V?$QSharedPointer@VQNetworkSession@@@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkConnection::QHttpNetworkConnection(unsigned short,class QString const &,unsigned short,bool,class QObject *,class QSharedPointer<class QNetworkSession>,enum QHttpNetworkConnection::ConnectionType)" (??0QHttpNetworkConnection@@QAE@GABVQString@@G_NPAVQObject@@V?$QSharedPointer@VQNetworkSession@@@@W4ConnectionType@0@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultiple(void)" (?getMultiple@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall QHttpNetworkConnection::~QHttpNetworkConnection(void)" (??1QHttpNetworkConnection@@UAE@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QString __thiscall QHttpNetworkConnection::hostName(void)const " (?hostName@QHttpNetworkConnection@@QBE?AVQString@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: unsigned short __thiscall QHttpNetworkConnection::port(void)const " (?port@QHttpNetworkConnection@@QBEGXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkReply * __thiscall QHttpNetworkConnection::sendRequest(class QHttpNetworkRequest const &)" (?sendRequest@QHttpNetworkConnection@@QAEPAVQHttpNetworkReply@@ABVQHttpNetworkRequest@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkConnection::isSsl(void)const " (?isSsl@QHttpNetworkConnection@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
    tst_qhttpnetworkconnection.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QHttpNetworkReply::staticMetaObject" (?staticMetaObject@QHttpNetworkReply@@2UQMetaObject@@B)
    debug\tst_qhttpnetworkconnection.exe : fatal error LNK1120: 27 unresolved externals
    	cd qsslerror\ && ( if not exist Makefile C:\Qt\Qt5.10\qtbase\bin\qmake.exe -o Makefile C:\Qt\Qt5.10\qtbase\tests\auto\network\ssl\qsslerror\qsslerror.pro ) && C:\Qt\jom\jom.exe -f Makefile
    	cd qsqlerror\ && ( if not exist Makefile C:\Qt\Qt5.10\qtbase\bin\qmake.exe -o Makefile C:\Qt\Qt5.10\qtbase\tests\auto\sql\kernel\qsqlerror\qsqlerror.pro ) && C:\Qt\jom\jom.exe -f Makefile
    tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: __thiscall QWingedEdge::QWingedEdge(void)" (??0QWingedEdge@@QAE@XZ) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
    tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: __thiscall QWingedEdge::QWingedEdge(class QPainterPath const &,class QPainterPath const &)" (??0QWingedEdge@@QAE@ABVQPainterPath@@0@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
    tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: struct QWingedEdge::TraversalStatus __thiscall QWingedEdge::next(struct QWingedEdge::TraversalStatus const &)const " (?next@QWingedEdge@@QBE?AUTraversalStatus@1@ABU21@@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
    tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: int __thiscall QWingedEdge::addEdge(class QPointF const &,class QPointF const &)" (?addEdge@QWingedEdge@@QAEHABVQPointF@@0@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
    debug\tst_qpathclipper.exe : fatal error LNK1120: 4 unresolved externals
    main.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_clear_cache(void)" (?qt_qhostinfo_clear_cache@@YAXXZ) referenced in function "public: void __thiscall tst_qhostinfo::init(void)" (?init@tst_qhostinfo@@QAEXXZ)
    main.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_enable_cache(bool)" (?qt_qhostinfo_enable_cache@@YAX_N@Z) referenced in function "private: void __thiscall tst_qhostinfo::lookupSpeed(void)" (?lookupSpeed@tst_qhostinfo@@AAEXXZ)
    release\tst_bench_qhostinfo.exe : fatal error LNK1120: 2 unresolved externals
    tst_qcoreapplication.obj : error LNK2019: unresolved external symbol "public: static class QThreadData * __cdecl QThreadData::current(bool)" (?current@QThreadData@@SAPAV1@_N@Z) referenced in function "private: virtual void __thiscall Thread::run(void)" (?run@Thread@@EAEXXZ)
    debug\tst_qguiapplication.exe : fatal error LNK1120: 1 unresolved externals
    
    

    The above are all the lines from the output which contain the word error.

    Any help on how to resolve this would be greatly appreciated!

    Thanks!

    K 1 Reply Last reply
    0
    • P PrateekKhatri

      Hi All,
      I am trying to compile Qt from source for the first time. I am using the following configure option:

      configure -skip webengine -nomake examples -nomake tests
      

      However, even then I get an error related to compilations of the tests module.

      C:\Qt\Qt5.10>..\jom\jom.exe > output
      
      jom 1.1.2 - empower your cores
      
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\qcoreapplication\Makefile.Debug [debug\tst_qcoreapplication.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\qcoreapplication\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\kernel\Makefile [sub-qcoreapplication-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\corelib\Makefile [sub-kernel-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-corelib-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\qpixmapcache\Makefile.Debug [debug\tst_qpixmapcache.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\qpixmapcache\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\image\Makefile [sub-qpixmapcache-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\qhostinfo\Makefile.Debug [debug\tst_qhostinfo.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\qhostinfo\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\kernel\Makefile [sub-qhostinfo-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\qhttpnetworkconnection\Makefile.Debug [debug\tst_qhttpnetworkconnection.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\qhttpnetworkconnection\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\access\Makefile [sub-qhttpnetworkconnection-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\Makefile [sub-access-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\network\Makefile [sub-kernel-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-network-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\qpathclipper\Makefile.Debug [debug\tst_qpathclipper.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\qpathclipper\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\painting\Makefile [sub-qpathclipper-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\qhostinfo\Makefile.Release [release\tst_bench_qhostinfo.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\qhostinfo\Makefile [release] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\kernel\Makefile [sub-qhostinfo-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\network\Makefile [sub-kernel-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\benchmarks\Makefile [sub-network-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\qguiapplication\Makefile.Debug [debug\tst_qguiapplication.exe] Error 1120
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\qguiapplication\Makefile [debug] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\kernel\Makefile [sub-qguiapplication-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-kernel-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-image-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\gui\Makefile [sub-painting-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\auto\Makefile [sub-gui-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\Makefile [sub-auto-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\tests\Makefile [sub-benchmarks-make_first] Error 2
      jom: C:\Qt\Qt5.10\qtbase\Makefile [sub-tests-make_first] Error 2
      jom: C:\Qt\Qt5.10\Makefile [module-qtbase-make_first] Error 2
      

      And, I get these during the compilation:

      tst_qcoreapplication.obj : error LNK2019: unresolved external symbol "public: static class QThreadData * __cdecl QThreadData::current(bool)" (?current@QThreadData@@SAPAV1@_N@Z) referenced in function "private: virtual void __thiscall Thread::run(void)" (?run@Thread@@EAEXXZ)
      debug\tst_qcoreapplication.exe : fatal error LNK1120: 1 unresolved externals
      tst_qpixmapcache.obj : error LNK2019: unresolved external symbol "int __cdecl q_QPixmapCache_keyHashSize(void)" (?q_QPixmapCache_keyHashSize@@YAHXZ) referenced in function "private: void __thiscall tst_QPixmapCache::noLeak(void)" (?noLeak@tst_QPixmapCache@@AAEXXZ)
      debug\tst_qpixmapcache.exe : fatal error LNK1120: 1 unresolved externals
      tst_qhostinfo.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_clear_cache(void)" (?qt_qhostinfo_clear_cache@@YAXXZ) referenced in function "private: void __thiscall tst_QHostInfo::init(void)" (?init@tst_QHostInfo@@AAEXXZ)
      tst_qhostinfo.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_enable_cache(bool)" (?qt_qhostinfo_enable_cache@@YAX_N@Z) referenced in function "private: void __thiscall tst_QHostInfo::init(void)" (?init@tst_QHostInfo@@AAEXXZ)
      debug\tst_qhostinfo.exe : fatal error LNK1120: 2 unresolved externals
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkRequest::QHttpNetworkRequest(class QUrl const &,enum QHttpNetworkRequest::Operation,enum QHttpNetworkRequest::Priority)" (??0QHttpNetworkRequest@@QAE@ABVQUrl@@W4Operation@0@W4Priority@0@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkRequest::QHttpNetworkRequest(class QHttpNetworkRequest const &)" (??0QHttpNetworkRequest@@QAE@ABV0@@Z) referenced in function "public: static void * __cdecl QtMetaTypePrivate::QMetaTypeFunctionHelper<class QHttpNetworkRequest,1>::Construct(void *,void const *)" (?Construct@?$QMetaTypeFunctionHelper@VQHttpNetworkRequest@@$00@QtMetaTypePrivate@@SAPAXPAXPBX@Z)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall QHttpNetworkRequest::~QHttpNetworkRequest(void)" (??1QHttpNetworkRequest@@UAE@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall QHttpNetworkRequest::setHeaderField(class QByteArray const &,class QByteArray const &)" (?setHeaderField@QHttpNetworkRequest@@UAEXABVQByteArray@@0@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::compression(void)" (?compression@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: enum QHttpNetworkRequest::Priority __thiscall QHttpNetworkRequest::priority(void)const " (?priority@QHttpNetworkRequest@@QBE?AW4Priority@1@XZ) referenced in function "public: void __thiscall GetMultipleWithPrioritiesReceiver::finishedSlot(void)" (?finishedSlot@GetMultipleWithPrioritiesReceiver@@QAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setPriority(enum QHttpNetworkRequest::Priority)" (?setPriority@QHttpNetworkRequest@@QAEXW4Priority@1@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkRequest::isPipeliningAllowed(void)const " (?isPipeliningAllowed@QHttpNetworkRequest@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setPipeliningAllowed(bool)" (?setPipeliningAllowed@QHttpNetworkRequest@@QAEX_N@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultiple(void)" (?getMultiple@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkRequest::setUploadByteDevice(class QNonContiguousByteDevice *)" (?setUploadByteDevice@QHttpNetworkRequest@@QAEXPAVQNonContiguousByteDevice@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::post(void)" (?post@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkRequest __thiscall QHttpNetworkReply::request(void)const " (?request@QHttpNetworkReply@@QBE?AVQHttpNetworkRequest@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: int __thiscall QHttpNetworkReply::statusCode(void)const " (?statusCode@QHttpNetworkReply@@QBEHXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QString __thiscall QHttpNetworkReply::reasonPhrase(void)const " (?reasonPhrase@QHttpNetworkReply@@QBE?AVQString@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __int64 __thiscall QHttpNetworkReply::bytesAvailable(void)const " (?bytesAvailable@QHttpNetworkReply@@QBE_JXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QByteArray __thiscall QHttpNetworkReply::readAny(void)" (?readAny@QHttpNetworkReply@@QAE?AVQByteArray@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::put(void)" (?put@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QByteArray __thiscall QHttpNetworkReply::readAll(void)" (?readAll@QHttpNetworkReply@@QAE?AVQByteArray@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: void __thiscall QHttpNetworkReply::setDownstreamLimited(bool)" (?setDownstreamLimited@QHttpNetworkReply@@QAEX_N@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getAndThenDeleteObject(void)" (?getAndThenDeleteObject@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkReply::isFinished(void)const " (?isFinished@QHttpNetworkReply@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkReply::isPipeliningUsed(void)const " (?isPipeliningUsed@QHttpNetworkReply@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultipleWithPipeliningAndMultiplePriorities(void)" (?getMultipleWithPipeliningAndMultiplePriorities@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkConnection * __thiscall QHttpNetworkReply::connection(void)" (?connection@QHttpNetworkReply@@QAEPAVQHttpNetworkConnection@@XZ) referenced in function "public: void __thiscall tst_QHttpNetworkConnection::challenge401(class QHttpNetworkRequest const &,class QAuthenticator *)" (?challenge401@tst_QHttpNetworkConnection@@QAEXABVQHttpNetworkRequest@@PAVQAuthenticator@@@Z)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkConnection::QHttpNetworkConnection(class QString const &,unsigned short,bool,enum QHttpNetworkConnection::ConnectionType,class QObject *,class QSharedPointer<class QNetworkSession>)" (??0QHttpNetworkConnection@@QAE@ABVQString@@G_NW4ConnectionType@0@PAVQObject@@V?$QSharedPointer@VQNetworkSession@@@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: __thiscall QHttpNetworkConnection::QHttpNetworkConnection(unsigned short,class QString const &,unsigned short,bool,class QObject *,class QSharedPointer<class QNetworkSession>,enum QHttpNetworkConnection::ConnectionType)" (??0QHttpNetworkConnection@@QAE@GABVQString@@G_NPAVQObject@@V?$QSharedPointer@VQNetworkSession@@@@W4ConnectionType@0@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::getMultiple(void)" (?getMultiple@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall QHttpNetworkConnection::~QHttpNetworkConnection(void)" (??1QHttpNetworkConnection@@UAE@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QString __thiscall QHttpNetworkConnection::hostName(void)const " (?hostName@QHttpNetworkConnection@@QBE?AVQString@@XZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: unsigned short __thiscall QHttpNetworkConnection::port(void)const " (?port@QHttpNetworkConnection@@QBEGXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: class QHttpNetworkReply * __thiscall QHttpNetworkConnection::sendRequest(class QHttpNetworkRequest const &)" (?sendRequest@QHttpNetworkConnection@@QAEPAVQHttpNetworkReply@@ABVQHttpNetworkRequest@@@Z) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2019: unresolved external symbol "public: bool __thiscall QHttpNetworkConnection::isSsl(void)const " (?isSsl@QHttpNetworkConnection@@QBE_NXZ) referenced in function "private: void __thiscall tst_QHttpNetworkConnection::get(void)" (?get@tst_QHttpNetworkConnection@@AAEXXZ)
      tst_qhttpnetworkconnection.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QHttpNetworkReply::staticMetaObject" (?staticMetaObject@QHttpNetworkReply@@2UQMetaObject@@B)
      debug\tst_qhttpnetworkconnection.exe : fatal error LNK1120: 27 unresolved externals
      	cd qsslerror\ && ( if not exist Makefile C:\Qt\Qt5.10\qtbase\bin\qmake.exe -o Makefile C:\Qt\Qt5.10\qtbase\tests\auto\network\ssl\qsslerror\qsslerror.pro ) && C:\Qt\jom\jom.exe -f Makefile
      	cd qsqlerror\ && ( if not exist Makefile C:\Qt\Qt5.10\qtbase\bin\qmake.exe -o Makefile C:\Qt\Qt5.10\qtbase\tests\auto\sql\kernel\qsqlerror\qsqlerror.pro ) && C:\Qt\jom\jom.exe -f Makefile
      tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: __thiscall QWingedEdge::QWingedEdge(void)" (??0QWingedEdge@@QAE@XZ) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
      tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: __thiscall QWingedEdge::QWingedEdge(class QPainterPath const &,class QPainterPath const &)" (??0QWingedEdge@@QAE@ABVQPainterPath@@0@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
      tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: struct QWingedEdge::TraversalStatus __thiscall QWingedEdge::next(struct QWingedEdge::TraversalStatus const &)const " (?next@QWingedEdge@@QBE?AUTraversalStatus@1@ABU21@@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
      tst_qpathclipper.obj : error LNK2019: unresolved external symbol "public: int __thiscall QWingedEdge::addEdge(class QPointF const &,class QPointF const &)" (?addEdge@QWingedEdge@@QAEHABVQPointF@@0@Z) referenced in function "private: void __thiscall tst_QPathClipper::testWingedEdge(void)" (?testWingedEdge@tst_QPathClipper@@AAEXXZ)
      debug\tst_qpathclipper.exe : fatal error LNK1120: 4 unresolved externals
      main.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_clear_cache(void)" (?qt_qhostinfo_clear_cache@@YAXXZ) referenced in function "public: void __thiscall tst_qhostinfo::init(void)" (?init@tst_qhostinfo@@QAEXXZ)
      main.obj : error LNK2019: unresolved external symbol "void __cdecl qt_qhostinfo_enable_cache(bool)" (?qt_qhostinfo_enable_cache@@YAX_N@Z) referenced in function "private: void __thiscall tst_qhostinfo::lookupSpeed(void)" (?lookupSpeed@tst_qhostinfo@@AAEXXZ)
      release\tst_bench_qhostinfo.exe : fatal error LNK1120: 2 unresolved externals
      tst_qcoreapplication.obj : error LNK2019: unresolved external symbol "public: static class QThreadData * __cdecl QThreadData::current(bool)" (?current@QThreadData@@SAPAV1@_N@Z) referenced in function "private: virtual void __thiscall Thread::run(void)" (?run@Thread@@EAEXXZ)
      debug\tst_qguiapplication.exe : fatal error LNK1120: 1 unresolved externals
      
      

      The above are all the lines from the output which contain the word error.

      Any help on how to resolve this would be greatly appreciated!

      Thanks!

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @PrateekKhatri

      Hi and welcome to devnet

      From where did you get the sources for compilation?

      Did you follow this guide?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PrateekKhatri
        wrote on last edited by PrateekKhatri
        #3

        @koahnig
        Yes, I followed that guide and got the Compressed Archive for the sources form Qt website.
        I don't understand why setting the

        -nomake tests
        

        still tries to compile tests.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Do you get the same if you use configure.bat ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi and welcome to devnet,

            Do you get the same if you use configure.bat ?

            P Offline
            P Offline
            PrateekKhatri
            wrote on last edited by
            #5

            @SGaist
            I tried using configure.bat file as you suggested. Mentioning that explicitly in the Command Prompt gives the following output:

            C:\Qt\Qt5.10>configure.bat -skip webengine -nomake examples -nomake tests
            + cd qtbase
            + C:\Qt\Qt5.10\qtbase\configure.bat -top-level -skip webengine -nomake examples -nomake tests
            Bootstrapping qmake ...
            
            Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
            Copyright (C) Microsoft Corporation.  All rights reserved.
            
            
            
            Error: Unsupported target platform dummy!
            
            Project ERROR: License check failed! Giving up ...
            

            I do have commercial license which the usual "configure" command can detect. Also, the %QT_LICENSE_FILE% Env variable is set correctly.

            Please advise :(

            Thanks,
            Prateek

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What do you get if you pass the verbose option ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              P 1 Reply Last reply
              0
              • SGaistS SGaist

                What do you get if you pass the verbose option ?

                P Offline
                P Offline
                PrateekKhatri
                wrote on last edited by
                #7

                @SGaist

                I am unable to store much of the buffer as its Command Prompt here is the configuration it shows:

                C:\Qt\Qt5.10>configure -skip webengine -nomake examples -nomake tests -v
                + cd qtbase
                + C:\Qt\Qt5.10\qtbase\configure.bat -top-level -skip webengine -nomake examples -nomake tests -v
                Bootstrapping qmake ...
                
                Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
                Copyright (C) Microsoft Corporation.  All rights reserved.
                
                Command line: -skip webengine -nomake examples -nomake tests -v
                
                Selecting Qt Edition.
                
                Type 'c' if you want to use the Commercial Edition.
                Type 'o' if you want to use the Open Source Edition.
                
                Which edition of Qt do you want to use? c
                + C:/Qt/Qt5.10/qtbase/bin/licheck.exe  ""  C:/Qt/Qt5.10/qtbase C:/Qt/Qt5.10/qtbase  win32-msvc win32-msvc
                This is the Qt Application Development Edition.
                
                You are licensed to use this software under the terms of following license(s):
                Qt for Application Development License Agreement
                
                Type '?' to view the license offer.
                Type 'y' to accept this license offer.
                Type 'n' to decline this license offer.
                
                Do you accept the terms of the license(s)?
                y
                > Licensee=Khatri Prateek
                > Edition=Evaluation
                > ReleaseDate=2017-12-02
                
                
                Running configuration tests...
                Done running configuration tests.
                
                Configure summary:
                
                Build type: win32-msvc (i386, CPU features: sse sse2)
                Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 compile_examples f16c largefile precompile_header rdrnd shani shared debug_and_release release debug build_all c++11 concurrent dbus no-pkg-config rel
                ease_tools stl
                Build options:
                  Mode ................................... debug and release; default link: debug; optimized tools
                  Optimize release build for size ........ no
                  Building shared libraries .............. yes
                  Using C++ standard ..................... C++11
                  Using gold linker ...................... no
                  Using precompiled headers .............. yes
                  Using LTCG ............................. no
                  Target compiler supports:
                    SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
                    AVX .................................. AVX AVX2
                    AVX512 ............................... <none>
                    Other x86 ............................ AES F16C RDRAND SHA
                  Build parts ............................ libs tools
                  App store compliance ................... no
                Qt modules and options:
                  Qt Concurrent .......................... yes
                  Qt D-Bus ............................... yes
                  Qt D-Bus directly linked to libdbus .... no
                  Qt Gui ................................. yes
                  Qt Network ............................. yes
                  Qt Sql ................................. yes
                  Qt Testlib ............................. yes
                  Qt Widgets ............................. yes
                  Qt Xml ................................. yes
                Support enabled for:
                  Using pkg-config ....................... no
                  QML debugging .......................... yes
                  udev ................................... no
                  Using system zlib ...................... no
                Qt Core:
                  DoubleConversion ....................... yes
                    Using system DoubleConversion ........ no
                  GLib ................................... no
                  iconv .................................. no
                  ICU .................................... no
                  Logging backends:
                    journald ............................. no
                    syslog ............................... no
                    slog2 ................................ no
                  Using system PCRE2 ..................... no
                Qt Network:
                  getifaddrs() ........................... no
                  IPv6 ifname ............................ no
                  libproxy ............................... no
                  OpenSSL ................................ no
                    Qt directly linked to OpenSSL ........ no
                  SCTP ................................... no
                  Use system proxies ..................... yes
                Qt Gui:
                  Accessibility .......................... yes
                  FreeType ............................... yes
                    Using system FreeType ................ no
                  HarfBuzz ............................... yes
                    Using system HarfBuzz ................ no
                  Fontconfig ............................. no
                  Image formats:
                    GIF .................................. yes
                    ICO .................................. yes
                    JPEG ................................. yes
                      Using system libjpeg ............... no
                    PNG .................................. yes
                      Using system libpng ................ no
                  EGL .................................... yes
                  OpenVG ................................. no
                  OpenGL:
                    ANGLE ................................ yes
                    Combined ANGLE Library ............... no
                    Desktop OpenGL ....................... no
                    Dynamic OpenGL ....................... no
                    OpenGL ES 2.0 ........................ yes
                    OpenGL ES 3.0 ........................ no
                    OpenGL ES 3.1 ........................ no
                    OpenGL ES 3.2 ........................ no
                  Vulkan ................................. no
                  Session Management ..................... yes
                Features used by QPA backends:
                  evdev .................................. no
                  libinput ............................... no
                  INTEGRITY HID .......................... no
                  mtdev .................................. no
                  tslib .................................. no
                  xkbcommon-evdev ........................ no
                QPA backends:
                  DirectFB ............................... no
                  EGLFS .................................. no
                  LinuxFB ................................ no
                  VNC .................................... no
                  Mir client ............................. no
                  Windows:
                    Direct 2D ............................ yes
                    DirectWrite .......................... yes
                    DirectWrite 2 ........................ yes
                Qt Widgets:
                  GTK+ ................................... no
                  Styles ................................. Fusion Windows WindowsVista
                Qt PrintSupport:
                  CUPS ................................... no
                Qt Sql:
                  DB2 (IBM) .............................. no
                  InterBase .............................. no
                  MySql .................................. no
                  OCI (Oracle) ........................... no
                  ODBC ................................... yes
                  PostgreSQL ............................. no
                  SQLite2 ................................ no
                  SQLite ................................. yes
                    Using system provided SQLite ......... no
                  TDS (Sybase) ........................... no
                Qt SerialBus:
                  Socket CAN ............................. no
                  Socket CAN FD .......................... no
                QtXmlPatterns:
                  XML schema support ..................... yes
                Qt QML:
                  QML interpreter ........................ yes
                  QML network support .................... yes
                Qt Quick:
                  Direct3D 12 ............................ yes
                  AnimatedImage item ..................... yes
                  Canvas item ............................ yes
                  Support for Qt Quick Designer .......... yes
                  Flipable item .......................... yes
                  GridView item .......................... yes
                  ListView item .......................... yes
                  Path support ........................... yes
                  PathView item .......................... yes
                  Positioner items ....................... yes
                  ShaderEffect item ...................... yes
                  Sprite item ............................ yes
                Qt Gamepad:
                  SDL2 ................................... no
                Qt 3D:
                  Assimp ................................. yes
                  System Assimp .......................... no
                  Output Qt3D Job traces ................. no
                  Output Qt3D GL traces .................. no
                  Use SSE2 instructions .................. yes
                  Use AVX2 instructions .................. no
                  Aspects:
                    Render aspect ........................ yes
                    Input aspect ......................... yes
                    Logic aspect ......................... yes
                    Animation aspect ..................... yes
                    Extras aspect ........................ yes
                Qt 3D GeometryLoaders:
                  Autodesk FBX ........................... no
                Qt Wayland Client ........................ no
                Qt Wayland Compositor .................... no
                Qt Bluetooth:
                  BlueZ .................................. no
                  BlueZ Low Energy ....................... no
                  Linux Crypto API ....................... no
                  WinRT Bluetooth API (desktop & UWP) .... yes
                Qt Sensors:
                  sensorfw ............................... no
                Qt Quick Controls 2:
                  Styles ................................. Default Fusion Imagine Material Universal
                Qt Quick Templates 2:
                  Hover support .......................... yes
                  Multi-touch support .................... yes
                Qt Positioning:
                  Gypsy GPS Daemon ....................... no
                  WinRT Geolocation API .................. yes
                Qt Location:
                  Geoservice plugins:
                    OpenStreetMap ........................ yes
                    HERE ................................. yes
                    Esri ................................. yes
                    Mapbox ............................... yes
                    MapboxGL ............................. no
                    Itemsoverlay ......................... yes
                Qt Multimedia:
                  ALSA ................................... no
                  GStreamer 1.0 .......................... no
                  GStreamer 0.10 ......................... no
                  Video for Linux ........................ no
                  OpenAL ................................. no
                  PulseAudio ............................. no
                  Resource Policy (libresourceqt5) ....... no
                  Windows Audio Services ................. yes
                  DirectShow ............................. yes
                  Windows Media Foundation ............... yes
                  Media player backend ................... DirectShow
                
                Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
                
                Qt is now configured for building. Just run 'nmake'.
                Once everything is built, you must run 'nmake install'.
                Qt will be installed into '\usr\local\Qt-5.10.0'.
                
                Prior to reconfiguration, make sure you remove any leftovers from
                the previous build.
                

                I am not sure what is wrong here.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  PrateekKhatri
                  wrote on last edited by PrateekKhatri
                  #8

                  Hi,

                  I conifgured as required and then ran qmake under qtbase/bin/ and ran "jom" again.

                  I was able to finish the build with the following output:

                  Updating 'qtxmlpatterns_it.qm'...
                  Updating 'qtxmlpatterns_hu.qm'...
                      Generated 37 translation(s) (37 finished and 0 unfinished)
                      Ignored 443 untranslated source text(s)
                      Generated 457 translation(s) (0 finished and 457 unfinished)
                      Ignored 2 untranslated source text(s)
                          call C:\Qt\Qt5.10\qttranslations\translations\lrelease_wrapper.bat qtxmlpatterns_ko.ts -qm qtxmlpatterns_ko.qm
                          call C:\Qt\Qt5.10\qttranslations\translations\lrelease_wrapper.bat qtxmlpatterns_pl.ts -qm qtxmlpatterns_pl.qm
                  Updating 'qtxmlpatterns_ja.qm'...
                  Updating 'qtxmlpatterns_ko.qm'...
                      Generated 480 translation(s) (480 finished and 0 unfinished)
                      Generated 480 translation(s) (480 finished and 0 unfinished)
                          call C:\Qt\Qt5.10\qttranslations\translations\lrelease_wrapper.bat qtxmlpatterns_ru.ts -qm qtxmlpatterns_ru.qm
                          call C:\Qt\Qt5.10\qttranslations\translations\lrelease_wrapper.bat qtxmlpatterns_sk.ts -qm qtxmlpatterns_sk.qm
                  Updating 'qtxmlpatterns_ru.qm'...
                  Updating 'qtxmlpatterns_pl.qm'...
                      Generated 465 translation(s) (465 finished and 0 unfinished)
                      Ignored 15 untranslated source text(s)
                      Generated 480 translation(s) (480 finished and 0 unfinished)
                          call C:\Qt\Qt5.10\qttranslations\translations\lrelease_wrapper.bat qtxmlpatterns_uk.ts -qm qtxmlpatterns_uk.qm
                  Updating 'qtxmlpatterns_sk.qm'...
                      Generated 151 translation(s) (151 finished and 0 unfinished)
                      Ignored 308 untranslated source text(s)
                  Updating 'qtxmlpatterns_uk.qm'...
                      Generated 49 translation(s) (49 finished and 0 unfinished)
                      Ignored 431 untranslated source text(s)
                  

                  After this It came back to the prompt. I assume that the build is finished as there were no messages related to it being finished or throwing errors.
                  EDIT: I did call jom install after this and waited for it to finish.
                  Next I installed Qt Creator Enterprise Edition and configured the Kit to point to the qmake under the newly built folder.
                  0_1517862153341_1a34c782-4213-495d-8451-a58bd51503b2-image.png

                  However I am getting the following error:

                  11:35:28: Running steps for project TestCanBus...
                  11:35:28: Starting: "C:\Qt\Qt5.10\qtbase\bin\qmake.exe" C:\Users\prateekkhatri\Documents\TestCanBus\TestCanBus.pro -spec win32-msvc "CONFIG+=qml_debug"
                  Project ERROR: Unknown module(s) in QT: serialbus
                  11:35:28: The process "C:\Qt\Qt5.10\qtbase\bin\qmake.exe" exited with code 3.
                  Error while building/deploying project TestCanBus (kit: Desktop)
                  When executing step "qmake"
                  11:35:28: Elapsed time: 00:00.
                  

                  It is not able to identify QCanBus under the qtserialbus folder.
                  My .pro file has the following entries:

                  QT       += core gui
                  QT       += serialbus
                  

                  It'll be really awesome if I can get this working. I would really appreciate any help.

                  Also, I tried adding QSerialPort by adding it in project and including it in one of my source files - it gave the same error. For some reason The Qt Modules are not being found.

                  Thanks!

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Did you call jom install after building ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    P 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Did you call jom install after building ?

                      P Offline
                      P Offline
                      PrateekKhatri
                      wrote on last edited by
                      #10

                      @SGaist

                      Yes I did.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by SGaist
                        #11

                        Good, did you do that in qtbase or the Qt sources top level folder ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        P 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Good, did you do that in qtbase or the Qt sources top level folder ?

                          P Offline
                          P Offline
                          PrateekKhatri
                          wrote on last edited by
                          #12

                          @SGaist
                          I did it in the top-level folder or one level above qtbase.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Check the content of the lib folder, if nothing QtSerialBus can be found, the quickest would be to build/install the module by hand. You can go in the module sources and call qmake/jom/jom install.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            P 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Check the content of the lib folder, if nothing QtSerialBus can be found, the quickest would be to build/install the module by hand. You can go in the module sources and call qmake/jom/jom install.

                              P Offline
                              P Offline
                              PrateekKhatri
                              wrote on last edited by
                              #14

                              @SGaist

                              
                              C:\Qt\Qt5.10\qtserialbus\lib>ls
                              Qt5SerialBus.dll  Qt5SerialBus.exp  Qt5SerialBus.lib  Qt5SerialBus.prl  Qt5SerialBusd.dll  Qt5SerialBusd.exp  Qt5SerialBusd.ilk  Qt5SerialBusd.lib  Qt5SerialBusd.pdb  Qt5SerialBusd.prl  cmake
                              
                              

                              These are the contents that I find in qtserialbus directory and

                              C:\Qt\Qt5.10\qtserialbus\lib>cd cmake
                              
                              C:\Qt\Qt5.10\qtserialbus\lib\cmake>ls
                              Qt5SerialBus
                              
                              C:\Qt\Qt5.10\qtserialbus\lib\cmake>cd Qt5SerialBus
                              
                              C:\Qt\Qt5.10\qtserialbus\lib\cmake\Qt5SerialBus>ls
                              Qt5SerialBusConfig.cmake  Qt5SerialBusConfigVersion.cmake  Qt5SerialBus_PeakCanBusPlugin.cmake  Qt5SerialBus_SystecCanBusPlugin.cmake  Qt5SerialBus_TinyCanBusPlugin.cmake  Qt5SerialBus_VectorCanBusPlugin.cmake
                              
                              C:\Qt\Qt5.10\qtserialbus\lib\cmake\Qt5SerialBus>
                              
                              

                              I did run jom install inside this folder, but Qt Creator still can't see this module for some reason.

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                AFAIK, you should have all the libraries needed in qtbase/lib once the installation is done

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                P 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  AFAIK, you should have all the libraries needed in qtbase/lib once the installation is done

                                  P Offline
                                  P Offline
                                  PrateekKhatri
                                  wrote on last edited by PrateekKhatri
                                  #16

                                  @SGaist
                                  I could't see anything Qt5SerialBus inside the lib folder under qtbase. Any suggestions on how to get this working?

                                  I manually copied the contents of qtserialbus/lib into qtbase/lib and the contents of qtserialbus/lib/cmake into qtbase/lib/cmake, but Qt Creator doesn't seem to find the library still.

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    @PrateekKhatri said in Compiling Qt from Source on Windows - Error:

                                    \usr\local\Qt-5.10.0

                                    Do you have a folder like that somewhere on your machine ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    P 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      @PrateekKhatri said in Compiling Qt from Source on Windows - Error:

                                      \usr\local\Qt-5.10.0

                                      Do you have a folder like that somewhere on your machine ?

                                      P Offline
                                      P Offline
                                      PrateekKhatri
                                      wrote on last edited by PrateekKhatri
                                      #18

                                      @SGaist
                                      Yes it is there in my C:\ . And I do see Qt5SerialBus related files in the lib folder. Is there a reason why it would automatically move everything to a folder \usr\local\Qt5.10.0\ ?

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        The path is a bit surprising but you should use the -prefix option when you want your build to be located somewhere precisely, otherwise, Qt has it's defaults. But again, that's rather a *nix path than Windows.

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        P 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          The path is a bit surprising but you should use the -prefix option when you want your build to be located somewhere precisely, otherwise, Qt has it's defaults. But again, that's rather a *nix path than Windows.

                                          P Offline
                                          P Offline
                                          PrateekKhatri
                                          wrote on last edited by
                                          #20

                                          @SGaist
                                          I was wondering the same thing. Oh well, I pointed the qmake under usr/local/Qt5.10.0/bin and everything magically works now :)

                                          Thank you so much @SGaist !

                                          You saved my life!

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved