Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Blocked installing GT6.5 on ubuntu 22.04 due to old QT5
Qt 6.12 LTS is out! See what's new in the release blog

Blocked installing GT6.5 on ubuntu 22.04 due to old QT5

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 985 Views
  • 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.
  • B Offline
    B Offline
    BobT
    wrote on last edited by BobT
    #1

    I have attempted to install QT6.5 (both studio and creator) on ubuntu 22.04. Several name/file associations are in conflict or broken.

    I have followed various steps to remove QT5 and uninstalled and reinstalled several times.

    One result is that none of the examples build

    Invoking
    qmake
    from the command line results in
    qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory

    find_package(Qt6 6.5 REQUIRED COMPONENTS Gui Qml Quick)

    Fails

    There are numerous posts about modifying the CMakeFiles.txt file to fix this, but this requires modifying each example CMakeLists.txt file which seems wrong and looks like a hack.

    It appears that something is going very wrong with the QT6.5 install and I've been struggling with this for several days.

    I have attempted to change CMAKE_PREFIX_PATH in the projects section with no success. It is currently set to
    %{Qt:QT_INSTALL_PREFIX}

    Part of the problem is ambiguity between linux environment variables, QT environment variables, CMake command line variables and CMake CMakeLists.txt variables - all of which are referred to as "environment variables."

    Is there a way to fix the actual installation so all distribution CMakeLists.txt files work without modification?

    Please do not answer with case by case modifications to the CMakeLists.txt files for each project.

    jsulmJ 1 Reply Last reply
    0
    • B BobT

      I have attempted to install QT6.5 (both studio and creator) on ubuntu 22.04. Several name/file associations are in conflict or broken.

      I have followed various steps to remove QT5 and uninstalled and reinstalled several times.

      One result is that none of the examples build

      Invoking
      qmake
      from the command line results in
      qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory

      find_package(Qt6 6.5 REQUIRED COMPONENTS Gui Qml Quick)

      Fails

      There are numerous posts about modifying the CMakeFiles.txt file to fix this, but this requires modifying each example CMakeLists.txt file which seems wrong and looks like a hack.

      It appears that something is going very wrong with the QT6.5 install and I've been struggling with this for several days.

      I have attempted to change CMAKE_PREFIX_PATH in the projects section with no success. It is currently set to
      %{Qt:QT_INSTALL_PREFIX}

      Part of the problem is ambiguity between linux environment variables, QT environment variables, CMake command line variables and CMake CMakeLists.txt variables - all of which are referred to as "environment variables."

      Is there a way to fix the actual installation so all distribution CMakeLists.txt files work without modification?

      Please do not answer with case by case modifications to the CMakeLists.txt files for each project.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @BobT said in Blocked installing GT6.5 on ubuntu 22.04 due to old QT5:

      I have attempted to install QT6.5

      How? Using online installer?
      When calling qmake try to use absolute path to make sure you're calling the one from Qt6.5

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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
      • Unsolved