Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51071

dependencies in module & plugin .pri files incomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.0 Beta
    • Fix Version/s: 5.6.1
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Commits:
      a28364bc1c7144b9c5c383cc5d18d62a68076a38,etc.

      Description

      I have a very simple cpp code which is attached with this bug report page.
      I have created static libraries using the QT source code; then using Windows Visual Studio 2015 (using nmake) I am trying to compile the code after giving the static library and bin paths properly in the environment variables.
      For the given cpp file, I am doing following steps:
      1. qmake -project /* To make test.pro file */
      2. qmake -config release /* To make Makefiles */
      3. nmake

      After the third step I am getting following linking error:

      Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -
      f Makefile.Release
      
      Microsoft (R) Program Maintenance Utility Version 14.00.23506.0
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE " /MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
      ='*'" /MANIFEST:embed /OUT:release\test4.exe @C:\Users\SJain.QLI\AppData\Local\Temp\nmD28A.tmp
         Creating library release\test4.lib and object release\test4.exp
      qwindows.lib(qwindowsintegration.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall QBasicFontDatabase::populateFontDatabase(void
      )" (?populateFontDatabase@QBasicFontDatabase@@UAEXXZ)
      qwindows.lib(qwindowsintegration.obj) : error LNK2001: unresolved external symbo
      l "public: virtual class QFontEngine * __thiscall QBasicFontDatabase::fontEngine
      (struct QFontDef const &,void *)" (?fontEngine@QBasicFontDatabase@@UAEPAVQFontEn
      gine@@ABUQFontDef@@PAX@Z)
      qwindows.lib(qwindowsfontdatabase_ft.obj) : error LNK2001: unresolved external symbol "public: virtual class QFontEngine * __thiscall QBasicFontDatabase::fontEngine(struct QFontDef const &,void *)" (?fontEngine@QBasicFontDatabase@@UAEPAVQFo
      ntEngine@@ABUQFontDef@@PAX@Z)
      qwindows.lib(qwindowsintegration.obj) : error LNK2001: unresolved external symbol "public: virtual class QFontEngine * __thiscall QBasicFontDatabase::fontEngine
      (class QByteArray const &,double,enum QFont::HintingPreference)" (?fontEngine@QBasicFontDatabase@@UAEPAVQFontEngine@@ABVQByteArray@@NW4HintingPreference@QFont@@@Z)
      qwindows.lib(qwindowsfontdatabase_ft.obj) : error LNK2001: unresolved external symbol "public: virtual class QFontEngine * __thiscall QBasicFontDatabase::fontEngine(class QByteArray const &,double,enum QFont::HintingPreference)" (?fontEngine@QBasicFontDatabase@@UAEPAVQFontEngine@@ABVQByteArray@@NW4HintingPreference@QFont@@@Z)
      qwindows.lib(qwindowsintegration.obj) : error LNK2001: unresolved external symbol "public: virtual class QStringList __thiscall QBasicFontDatabase::addApplicationFont(class QByteArray const &,class QString const &)" (?addApplicationFont@QBasicFontDatabase@@UAE?AVQStringList@@ABVQByteArray@@ABVQString@@@Z)
      qwindows.lib(qwindowsintegration.obj) : error LNK2001: unresolved external symbol "public: virtual void __thiscall QBasicFontDatabase::releaseHandle(void *)" (?releaseHandle@QBasicFontDatabase@@UAEXPAX@Z)
      qwindows.lib(qwindowsintegration.obj) : error LNK2019: unresolved external symbol "public: __thiscall QWindowsGuiEventDispatcher::QWindowsGuiEventDispatcher(cla
      ss QObject *)" (??0QWindowsGuiEventDispatcher@@QAE@PAVQObject@@@Z) referenced in function "public: virtual class QAbstractEventDispatcher * __thiscall QWindowsIntegration::createEventDispatcher(void)const " (?createEventDispatcher@QWindowsIntegration@@UBEPAVQAbstractEventDispatcher@@XZ)
      qwindows.lib(qwindowscontext.obj) : error LNK2019: unresolved external symbol "public: static char const * __cdecl QWindowsGuiEventDispatcher::windowsMessageNam
      e(unsigned int)" (?windowsMessageName@QWindowsGuiEventDispatcher@@SAPBDI@Z) referenced in function "public: bool __thiscall QWindowsContext::windowsProc(struct
      HWND__ *,unsigned int,enum QtWindows::WindowsEventType,unsigned int,long,long *)
      " (?windowsProc@QWindowsContext@@QAE_NPAUHWND__@@IW4WindowsEventType@QtWindows@@IJPAJ@Z)
      qwindows.lib(qwindowsclipboard.obj) : error LNK2001: unresolved external symbol "public: static char const * __cdecl QWindowsGuiEventDispatcher::windowsMessageN
      ame(unsigned int)" (?windowsMessageName@QWindowsGuiEventDispatcher@@SAPBDI@Z)
      qwindows.lib(iaccessible2.obj) : error LNK2019: unresolved external symbol "class QStringList __cdecl QAccessibleBridgeUtils::effectiveActionNames(class QAccess
      ibleInterface *)" (?effectiveActionNames@QAccessibleBridgeUtils@@YA?AVQStringList@@PAVQAccessibleInterface@@@Z) referenced in function "public: virtual long __s
      tdcall QWindowsIA2Accessible::doAction(long)" (?doAction@QWindowsIA2Accessible@@
      UAGJJ@Z)
      qwindows.lib(iaccessible2.obj) : error LNK2019: unresolved external symbol "bool
       __cdecl QAccessibleBridgeUtils::performEffectiveAction(class QAccessibleInterfa
      ce *,class QString const &)" (?performEffectiveAction@QAccessibleBridgeUtils@@YA
      _NPAVQAccessibleInterface@@ABVQString@@@Z) referenced in function "public: virtual long __stdcall QWindowsIA2Accessible::doAction(long)" (?doAction@QWindowsIA2A
      ccessible@@UAGJJ@Z)
      release\test4.exe : fatal error LNK1120: 9 unresolved externals
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.EXE"' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'
      Stop.
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            buddenha Oswald Buddenhagen
            Reporter:
            sjain Sushil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes