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

qmake generated makefile contains invalid LFLAGS variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.5.1
    • Packaging & Installer
    • None
    • Kubuntu 14.04 32bit
      Qt 5.5.1 GCC 32bit

    Description

      The following Qt 5.5.1 project fails to link to ICU:

      #include <QCoreApplication>
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
          return a.exec();
      }
      

      See the attached error.txt for the error.

      Also attached are the 2 Makefiles generated by qmake from Qt 5.4.2 and Qt 5.5.1. Note the LFLAGS line in the 5.5.1 version:

      LFLAGS        = -m32 -Wl,-O1 -Wl,-rpath,/work/build/______________________________PADDING______________________________ -Wl,-rpath,/work/build/______________________________PADDING______________________________/lib
      

      libQt5Core seems to be properly linked to ICU libraries:

      /opt/Qt/5.5/gcc/lib$ ldd ./libQt5Core.so.5.5.1   
              linux-gate.so.1 =>  (0xb77a9000)
              libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7226000)
              libicui18n.so.54 => /opt/Qt/5.5/gcc/lib/./libicui18n.so.54 (0xb6fad000)
              libicuuc.so.54 => /opt/Qt/5.5/gcc/lib/./libicuuc.so.54 (0xb6e04000)
              libicudata.so.54 => /opt/Qt/5.5/gcc/lib/./libicudata.so.54 (0xb55d9000)
              libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb55d4000)
              libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xb55d1000)
              librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb55c8000)
              libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xb54bb000)
              libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb53d3000)
              libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb538d000)
              libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb5370000)
              libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb51c2000)
              /lib64/ld-linux-x86-64.so.2 => /lib/ld-linux.so.2 (0xb77aa000)
              libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb5183000)
      

      Attachments

        1. Makefile.qmake-5.4.2
          25 kB
          Kayra Akman
        2. Makefile.qmake-5.5.1
          24 kB
          Kayra Akman
        3. error.txt
          3 kB
          Kayra Akman
        4. InstallationLog.txt.tar.gz
          47 kB
          Kayra Akman
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mapaaso Matti Paaso
            ckakman Kayra Akman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes