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

QMake generates improper pkg-config files when cross-compiling from Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.0.2
    • 5.0.1
    • Build tools: qmake
    • None
    • fcef9b42520c55f6482e4a6c86bd55246a85e88b

      I'm trying to cross-compile Qt from Windows to run on a QNX target, and have run into a problem with pkg-config file generation. The Libs: line gets a -l flag added to it which is supposed to be the library name only. However, when building on Windows, it mistakenly gets the path to the .pc file embedded in it.

      Expected: Libs: -L${libdir} -lQt5Core
      Actual: Libs: -L${libdir} -lD:\Qt\build\lib\pkgconfig\Qt5Core

      I believe I have determined the cause of the issue, and will upload a patch to Gerrit for review.

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

            buddenha Oswald Buddenhagen
            fischerm Matt Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes