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

Qt5UiToolsConfig.cmake contains wrong multilib path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.13.1
    • Build System
    • None

    Description

      When compiling kwin, you get:

      c++: error: /usr/lib/libQt5Widgets.so: No such file or directory
      c++: error: /usr/lib/libQt5Gui.so: No such file or directory
      c++: error: /usr/lib/libQt5Core.so: No such file or directory
      c++: error: /usr/lib/libQt5Widgets.so: No such file or directory
      c++: error: /usr/lib/libQt5Gui.so: No such file or directory
      c++: error: /usr/lib/libQt5Core.so: No such file or directory
      c++: error: /usr/lib/libGL.so: No such file or directory
      

      This is caused by the Qt5UiToolsConfig.cmake containing the following line:

          get_filename_component(_qt5_install_libs "${_qt5UiTools_install_prefix}/lib" ABSOLUTE)
      

      That "lib" is wrong.

      Qt was configured with

      --prefix=/usr
      --bindir=/usr/bin
      --sysconfdir=/etc
      --datadir=/usr/share
      --libdir=/usr/lib64
      -archdatadir /usr/lib64/qt5
      -datadir /usr/share/qt5
      -docdir /usr/share/doc/qt5
      -headerdir /usr/include/qt5
      

      [The full configure line was:

      ./configure --build=x86_64-generic-linux-gnu --host=x86_64-generic-linux-gnu --target=x86_64-clr-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info -v -opensource -confirm-license -release -optimized-tools -archdatadir /usr/lib64/qt5 -datadir /usr/share/qt5 -docdir /usr/share/doc/qt5 -headerdir /usr/include/qt5 -sysconfdir /etc/xdg -no-separate-debug-info -no-use-gold-linker -no-strip -no-rpath -no-pch -nomake examples -accessibility -cups -dbus-linked -fontconfig -glib -libproxy -no-mimetype-database -no-qml-debug -plugin-sql-mysql -plugin-sql-psql -plugin-sql-sqlite -reduce-relocations -sm -system-doubleconversion -system-freetype -system-harfbuzz -system-pcre -system-libjpeg -system-libpng -system-sqlite -system-xcb -system-zlib -xinput2 -xkb 
      

      ]

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes