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

windeployqt fails to link when crosscompiling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.3.0
    • 5.3.0 RC1
    • None
    • Linux
    • 82d7e1d3b4b860911ff9c784cb22e9e47d0efb2e (stable, 9.5.2014, 5.3.1)

    Description

      When crosscompiling Qt5 (host: Linux, target: Windows), windeployqt fails to link:

      .obj/main.o: In function `findDependentQtLibraries(QString const&, QString const&, Platform, QString*, QStringList*, unsigned int*, bool*, int*, int)':
      main.cpp:(.text+0x337): undefined reference to `readPeExecutable(QString const&, QString*, QStringList*, unsigned int*, bool*, bool)'
      .obj/main.o: In function `readExecutable(QString const&, Platform, QString*, QStringList*, unsigned int*, bool*)':
      main.cpp:(.text._Z14readExecutableRK7QString8PlatformPS_P11QStringListPjPb[readExecutable(QString const&, Platform, QString*, QStringList*, unsigned int*, bool*)]+0x25): undefined reference to `readPeExecutable(QString const&, QString*, QStringList*, unsigned int*, bool*, bool)'
      .obj/utils.o: In function `findSharedLibraries(QDir const&, Platform, bool, QString const&)':
      utils.cpp:(.text+0x2159): undefined reference to `readPeExecutable(QString const&, QString*, QStringList*, unsigned int*, bool*, bool)'
      collect2: ld gab 1 als Ende-Status zurück
      

      The signature of readPeExecutable was changed but not the implementation for !Q_OS_WIN.

      (There was a similar issue before, QTBUG-38203. !Q_OS_WIN doesn't get much attention?)

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              dg0yt Kai Pastor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes