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

Broken linking of non-Qt libs in Qmake-generated vcxproj files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 Beta
    • 5.6.0 Beta
    • Build tools: qmake, Qt3D
    • None
    • Win32 app build with Visual Studio 2012 (update 5) on Windows 7 x64 (fully patched).
      Qt build from GIT 5.6 branch @ 2015-10-22 (a0309a7a43a404ebb1bf1a193732860bd3edfe9b)
    • c66b492cedbd96831e02269aa65d38b8a4b55df0

    Description

      PROBLEM:

      • Linker error to 'libEGLd.lib' when building a Qt3d project. (details in attached file).
      • Linking to custom libraries specified with "LIBS +=" in .pro files is also broken in vcxproj-files generated by qmake.
      • This is a regression compared to Qt 5.6 alpha.

      CAUSE:

      • $$(QTDIR)\lib is not properly added to "Additional linker directories" any more.
      • Suspect that this is related to the recent rewrite of windows library handling in qtbase https://codereview.qt-project.org/#/c/126371/ merging of MingwMakefileGenerator::findLibraries() into Win32MakefileGenerator https://codereview.qt-project.org/#/c/126373/.
      • The reason for my suspicion is that parameters that should have been additional linker directories instead show up with a "-L" prefix in the list of libraries to link to. Visual Studio does not understand this prefix.

      Attachments

        For Gerrit Dashboard: QTBUG-48936
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            forderud Fredrik Orderud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes