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 chooser issue on Ubuntu 22.04

Qt chooser issue on Ubuntu 22.04

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 441 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by JoeCFD
    #1

    I just made some changes in my app, but could not see the changes in a new build with cmake. Running the app in QtCreator + pro file is fine.
    I noticed the difference is that cmake finds Qt with Qt chooser while Qt creator uses /usr/lib/qt5/bin directly. After I set /usr/lib/qt5/bin in the PATH, the build made by cmake is ok as well. The weird thing is qchooser -print-env outputs
    QTTOOLDIR="/usr/lib/qt5/bin" since I have only default Qt 5.15.3 in the machine. It should be the same thing. However, the builds are different. I tried my builds by removing the build dir completely.

    g++ 11.2 is nice and even showed some bugs I did not see before.

    jsulmJ 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      I just made some changes in my app, but could not see the changes in a new build with cmake. Running the app in QtCreator + pro file is fine.
      I noticed the difference is that cmake finds Qt with Qt chooser while Qt creator uses /usr/lib/qt5/bin directly. After I set /usr/lib/qt5/bin in the PATH, the build made by cmake is ok as well. The weird thing is qchooser -print-env outputs
      QTTOOLDIR="/usr/lib/qt5/bin" since I have only default Qt 5.15.3 in the machine. It should be the same thing. However, the builds are different. I tried my builds by removing the build dir completely.

      g++ 11.2 is nice and even showed some bugs I did not see before.

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

      @JoeCFD said in Qt chooser issue on Ubuntu 22.04:

      but could not see the changes in a new build with cmake

      Do you mean changes in your code?

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