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. ubuntu 22.04 qt6
Forum Updated to NodeBB v4.3 + New Features

ubuntu 22.04 qt6

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 3.2k 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.
  • J Offline
    J Offline
    jamat13
    wrote on last edited by
    #1

    In all my years of Qt I've never had to use qtchooser so strange behaviour is expected
    lubuntu 22.04

    (Multiple install tries) install qt6-base-dev qt6-l10n-tools
    qtchooser shows garbage
    jam@mars:~$ qtchooser -l
    4
    5
    default
    qt4-x86_64-linux-gnu
    qt4
    qt5-x86_64-linux-gnu
    qt5

    Run by hand
    cd asbuilt && qmake6 asbuilt.pro
    cd asbuilt && /usr/lib/qt6/bin/lupdate asbuilt.pro
    sh: 1: /lib/qt6/libexec/lprodump: not found

    How to install qt6 on lubuntu? The simple google answers do not work

    if I strip out the i18 stuff all works
    James

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jamat13
      wrote on last edited by
      #2

      The pro file might be of interest
      TARGET = asbuilt
      QT += widgets

      CONFIG += release
      RESOURCES = asbuilt.qrc

      FORMS = asbuilt.ui
      SOURCES = main.cpp
      asbuilt.cpp
      HEADERS = asbuilt.h
      RESOURCES = asbuilt.qrc

      TRANSLATIONS = asbuilt_ru_RU.ts asbuilt_zh_CN.ts
      CODECFORTR = UTF-8

      unix: {
      QT += dbus

      DBUS_ADAPTORS += org.rennisons.dvr.xml
      DBUS_INTERFACES += org.rennisons.dvr.xml
      }

      UI_DIR = build
      MOC_DIR = build
      OBJECTS_DIR = build

      PRE_TARGETDEPS += version.h
      QMAKE_EXTRA_TARGETS += vertarget

      vertarget.target = version.h
      vertarget.commands = ./version.sh
      vertarget.depends = FORCE

      1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        export QT_SELECT=qt5 or export QT_SELECT=qt6
        then check:
        which qmake

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jamat13
          wrote on last edited by
          #4

          Setting ENC did change lots but ...
          jam@mars:~$ export QT_SELECT=qt6
          jam@mars:~$ which qmake
          /usr/bin/qmake
          jam@mars:~$ qmake --version
          qmake: could not find a Qt installation of 'qt6'
          jam@mars:~$ qmake6 --version
          QMake version 3.1
          Using Qt version 6.2.4 in /usr/lib/x86_64-linux-gnu
          jam@mars:~$ lupdate
          Command 'lupdate' not found, but can be installed with:
          apt install qtchooser
          Please ask your administrator.
          jam@mars:~$ /usr/lib/qt6/bin/lupdate
          Usage:
          lupdate [options] [project-file]...
          lupdate [options] [source-file|path|@lst-file]... -ts ts-files|@lst-file

          My question remains: has anybody used lupdate on ubuntu 22.04
          I unistalled all then used Qt's install and was rewarded with 'missing modules' stuff like core and widgets

          ademmlerA 1 Reply Last reply
          0
          • JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            https://forum.qt.io/topic/141071/qt-designer-6-on-ubuntu-22-04-jammy/10

            1 Reply Last reply
            0
            • J jamat13

              Setting ENC did change lots but ...
              jam@mars:~$ export QT_SELECT=qt6
              jam@mars:~$ which qmake
              /usr/bin/qmake
              jam@mars:~$ qmake --version
              qmake: could not find a Qt installation of 'qt6'
              jam@mars:~$ qmake6 --version
              QMake version 3.1
              Using Qt version 6.2.4 in /usr/lib/x86_64-linux-gnu
              jam@mars:~$ lupdate
              Command 'lupdate' not found, but can be installed with:
              apt install qtchooser
              Please ask your administrator.
              jam@mars:~$ /usr/lib/qt6/bin/lupdate
              Usage:
              lupdate [options] [project-file]...
              lupdate [options] [source-file|path|@lst-file]... -ts ts-files|@lst-file

              My question remains: has anybody used lupdate on ubuntu 22.04
              I unistalled all then used Qt's install and was rewarded with 'missing modules' stuff like core and widgets

              ademmlerA Offline
              ademmlerA Offline
              ademmler
              wrote on last edited by
              #6

              @jamat13

              I experience exactly the same in 2023 ...
              Pls Qt make things more robust and easy to use ...

              kkoehneK JoeCFDJ 2 Replies Last reply
              0
              • ademmlerA ademmler

                @jamat13

                I experience exactly the same in 2023 ...
                Pls Qt make things more robust and easy to use ...

                kkoehneK Offline
                kkoehneK Offline
                kkoehne
                Moderators
                wrote on last edited by
                #7

                @ademmler said in ubuntu 22.04 qt6:

                Pls Qt make things more robust and easy to use ..

                Depending on whom you mean by 'Qt': This seems to be a debian packaging problem, not sure how the Qt project can help.

                Director R&D, The Qt Company

                1 Reply Last reply
                0
                • ademmlerA ademmler

                  @jamat13

                  I experience exactly the same in 2023 ...
                  Pls Qt make things more robust and easy to use ...

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #8

                  @ademmler qtchooser seems to be a deprecated tool, since qmake itself can find Qt version with QT_SELECT=5 or 6 environmental variable

                  ademmlerA 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @ademmler qtchooser seems to be a deprecated tool, since qmake itself can find Qt version with QT_SELECT=5 or 6 environmental variable

                    ademmlerA Offline
                    ademmlerA Offline
                    ademmler
                    wrote on last edited by
                    #9

                    @JoeCFD but his command die not worked also

                    JoeCFDJ 1 Reply Last reply
                    0
                    • ademmlerA ademmler

                      @JoeCFD but his command die not worked also

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #10

                      @ademmler Qt version 6.2.4 is old. Maybe first try to install the latest Qt 6.6.1 under /opt/.

                      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