Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt installation broken after upgrade to Ubuntu 21.04: Unknown modules in Qt: core gui ...
Forum Updated to NodeBB v4.3 + New Features

Qt installation broken after upgrade to Ubuntu 21.04: Unknown modules in Qt: core gui ...

Scheduled Pinned Locked Moved Solved General and Desktop
ubuntu 21.04
2 Posts 1 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gldhnchn
    wrote on last edited by
    #1

    Hi, today I did an upgrade to Ubuntu 21.04. After that my project won't compile anymore with the error:

    Project ERROR: Unknown module(s) in QT: core gui widgets charts
    

    My guess was that something has gone wrong with the paths of the libraries. So I checked:

    $qmake -query
    QT_SYSROOT:
    QT_INSTALL_PREFIX:/usr
    QT_INSTALL_ARCHDATA:/usr/lib/x86_64-linux-gnu/qt5
    QT_INSTALL_DATA:/usr/share/qt5
    QT_INSTALL_DOCS:/usr/share/qt5/doc
    QT_INSTALL_HEADERS:/usr/include/x86_64-linux-gnu/qt5
    QT_INSTALL_LIBS:/usr/lib/x86_64-linux-gnu
    QT_INSTALL_LIBEXECS:/usr/lib/x86_64-linux-gnu/qt5/libexec
    QT_INSTALL_BINS:/usr/lib/qt5/bin
    QT_INSTALL_TESTS:/usr/tests
    QT_INSTALL_PLUGINS:/usr/lib/x86_64-linux-gnu/qt5/plugins
    QT_INSTALL_IMPORTS:/usr/lib/x86_64-linux-gnu/qt5/imports
    QT_INSTALL_QML:/usr/lib/x86_64-linux-gnu/qt5/qml
    QT_INSTALL_TRANSLATIONS:/usr/share/qt5/translations
    QT_INSTALL_CONFIGURATION:/etc/xdg
    QT_INSTALL_EXAMPLES:/usr/lib/x86_64-linux-gnu/qt5/examples
    QT_INSTALL_DEMOS:/usr/lib/x86_64-linux-gnu/qt5/examples
    QT_HOST_PREFIX:/usr
    QT_HOST_DATA:/usr/lib/x86_64-linux-gnu/qt5
    QT_HOST_BINS:/usr/lib/qt5/bin
    QT_HOST_LIBS:/usr/lib/x86_64-linux-gnu
    QMAKE_SPEC:linux-g++
    QMAKE_XSPEC:linux-g++
    QMAKE_VERSION:3.1
    QT_VERSION:5.15.2
    

    My guess is that the modules has to be in QT_INSTALL_LIBS, but they are all there:

    $ls /usr/lib/x86_64-linux-gnu | grep Qt
    libQt5Charts.so.5
    libQt5Charts.so.5.15
    libQt5Charts.so.5.15.2
    libQt5Concurrent.so.5
    libQt5Concurrent.so.5.15
    libQt5Concurrent.so.5.15.2
    libQt5Core.so.5
    libQt5Core.so.5.15
    libQt5Core.so.5.15.2
    libQt5DBus.so.5
    libQt5DBus.so.5.15
    libQt5DBus.so.5.15.2
    libQt5Designer.so.5
    libQt5Designer.so.5.15
    libQt5Designer.so.5.15.2
    libQt5DesignerComponents.so.5
    libQt5DesignerComponents.so.5.15
    libQt5DesignerComponents.so.5.15.2
    libQt5EglFSDeviceIntegration.so.5
    libQt5EglFSDeviceIntegration.so.5.15
    libQt5EglFSDeviceIntegration.so.5.15.2
    libQt5EglFsKmsSupport.so.5
    libQt5EglFsKmsSupport.so.5.15
    libQt5EglFsKmsSupport.so.5.15.2
    libQt5Gui.so.5
    libQt5Gui.so.5.15
    libQt5Gui.so.5.15.2
    libQt5Help.so.5
    libQt5Help.so.5.15
    libQt5Help.so.5.15.2
    libQt5Network.so.5
    libQt5Network.so.5.15
    libQt5Network.so.5.15.2
    libQt5OpenGL.so.5
    libQt5OpenGL.so.5.15
    libQt5OpenGL.so.5.15.2
    libQt5Positioning.so.5
    libQt5Positioning.so.5.15
    libQt5Positioning.so.5.15.2
    libQt5PrintSupport.so.5
    libQt5PrintSupport.so.5.15
    libQt5PrintSupport.so.5.15.2
    libQt5Qml.so.5
    libQt5Qml.so.5.15
    libQt5Qml.so.5.15.2
    libQt5QmlModels.so.5
    libQt5QmlModels.so.5.15
    libQt5QmlModels.so.5.15.2
    libQt5QmlWorkerScript.so.5
    libQt5QmlWorkerScript.so.5.15
    libQt5QmlWorkerScript.so.5.15.2
    libQt5Quick.so.5
    libQt5Quick.so.5.15
    libQt5Quick.so.5.15.2
    libQt5QuickControls2.prl
    libQt5QuickControls2.so
    libQt5QuickControls2.so.5
    libQt5QuickControls2.so.5.15
    libQt5QuickControls2.so.5.15.2
    libQt5QuickTemplates2.prl
    libQt5QuickTemplates2.so
    libQt5QuickTemplates2.so.5
    libQt5QuickTemplates2.so.5.15
    libQt5QuickTemplates2.so.5.15.2
    libQt5QuickTest.so.5
    libQt5QuickTest.so.5.15
    libQt5QuickTest.so.5.15.2
    libQt5QuickWidgets.so.5
    libQt5QuickWidgets.so.5.15
    libQt5QuickWidgets.so.5.15.2
    libQt5Sensors.so.5
    libQt5Sensors.so.5.15
    libQt5Sensors.so.5.15.2
    libQt5SerialPort.so.5
    libQt5SerialPort.so.5.15
    libQt5SerialPort.so.5.15.2
    libQt5Sql.so.5
    libQt5Sql.so.5.15
    libQt5Sql.so.5.15.2
    libQt5Svg.prl
    libQt5Svg.so
    libQt5Svg.so.5
    libQt5Svg.so.5.15
    libQt5Svg.so.5.15.2
    libQt5Test.so.5
    libQt5Test.so.5.15
    libQt5Test.so.5.15.2
    libQt5WebChannel.so.5
    libQt5WebChannel.so.5.15
    libQt5WebChannel.so.5.15.2
    libQt5WebKit.so.5
    libQt5WebKit.so.5.212.0
    libQt5WebKitWidgets.so.5
    libQt5WebKitWidgets.so.5.212.0
    libQt5WebSockets.so.5
    libQt5WebSockets.so.5.15
    libQt5WebSockets.so.5.15.2
    libQt5Widgets.so.5
    libQt5Widgets.so.5.15
    libQt5Widgets.so.5.15.2
    libQt5X11Extras.so.5
    libQt5X11Extras.so.5.15
    libQt5X11Extras.so.5.15.2
    libQt5XcbQpa.so.5
    libQt5XcbQpa.so.5.15
    libQt5XcbQpa.so.5.15.2
    libQt5Xml.so.5
    libQt5Xml.so.5.15
    libQt5Xml.so.5.15.2
    libQt5XmlPatterns.so.5
    libQt5XmlPatterns.so.5.15
    libQt5XmlPatterns.so.5.15.2
    

    Has somebody got an idea what could be wrong on my system? I would be very glad for your help, thank you! :)

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gldhnchn
      wrote on last edited by
      #2

      Hurray, I already solved my problem, there was some -dev packages missing:

      apt install libqt5charts5-dev
      

      installed everything I needed.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved