How to Install Qt 6 on Ubuntu 22.04 LTS Linux | Build C++ GUI Apps using QT

Поделиться
HTML-код
  • Опубликовано: 13 окт 2024
  • To install Qt 6 on Ubuntu 22.04 LTS Linux and start building C++ GUI apps using Qt, follow these steps:
    1. Update Package Manager:
    Open the terminal and run the following command to update the package manager:
    ```
    sudo apt update
    ```
    2. Install Qt 6 Dependencies:
    Install the necessary dependencies for Qt 6 by running the following command:
    ```
    sudo apt install build-essential libgl1-mesa-dev
    ```
    3. Download Qt Installer:
    Visit the Qt website (www.qt.io/down...) and download the Qt Online Installer for Linux.
    4. Run the Installer:
    Open the terminal, navigate to the directory where you downloaded the Qt installer, and make it executable:
    ```
    chmod +x qt-installer-file.run
    ```
    Run the installer using the following command:
    ```
    ./qt-installer-file.run
    ```
    5. Select Installation Components:
    In the Qt installer, select the desired components for installation. Make sure to include the Qt version and modules required for C++ GUI development.
    6. Choose Installation Directory:
    Select the installation directory where Qt 6 will be installed. It is recommended to choose the default directory.
    7. Proceed with Installation:
    Follow the on-screen instructions to proceed with the installation. Accept the license agreements and wait for the installation to complete.
    8. Configure Qt:
    After the installation is complete, open a terminal and run the following command to configure Qt:
    ```
    qtchooser -install qt6 /path/to/qt6/Installation/Dir
    ```
    9. Verify Installation:
    To verify the installation, open a terminal and run the following command:
    ```
    qmake --version
    ```
    If the installation was successful, it will display the version information for Qt.
    Now you have successfully installed Qt 6 on Ubuntu 22.04 LTS Linux. You can start building C++ GUI applications using Qt and unleash the power of Qt's framework and tools.
    #Qt6 #Ubuntu #Linux #C++ #GUI #QtInstaller #QtFramework #Programming

Комментарии • 24

  • @ricardovaltierra8858
    @ricardovaltierra8858 Год назад +4

    Extremely helpful, thank you!

  • @nutstheblackswordsman5931
    @nutstheblackswordsman5931 Год назад

    Thank you so much for this easy and concise video!

  • @LaeeqKhan01
    @LaeeqKhan01 7 месяцев назад

    Very helpful and time saving.

  • @haloxz2
    @haloxz2 Год назад +1

    I have a question, it let you programming with python3 or only c++?

  • @jose250ism
    @jose250ism 7 месяцев назад

    Thanks! Your video helped me a lot!

  • @arczib2b
    @arczib2b 6 месяцев назад

    Lot of work. Still the best option is to have another partition with windows and make it without problems

  • @jeremiahthompson82
    @jeremiahthompson82 Месяц назад

    Thanks so much. Very good video

  • @deadcode1548
    @deadcode1548 7 месяцев назад

    sooo helpful. Thanks !!

  • @Ravitejats-b1o
    @Ravitejats-b1o 6 месяцев назад +1

    I am facing this issue:-
    CMake project configuration failed. No CMake configuration for build type "Debug" found.
    help me resolve this.

    • @Uzma_B
      @Uzma_B Месяц назад

      he used qmake

  • @MO-fg2cm
    @MO-fg2cm Месяц назад +1

    Hey, there no download for linus

  • @zarakikenp
    @zarakikenp Год назад

    Thanks it worked me on parrot

  • @stephen285
    @stephen285 Год назад

    Thanks!

  • @madarauchiha6009
    @madarauchiha6009 Месяц назад

    thank you so much !!

  • @terevelazquez5885
    @terevelazquez5885 Месяц назад

    Gracias!! 🙂

  • @kingoff5961
    @kingoff5961 9 месяцев назад

    Thank you

  • @ibrahimesam8541
    @ibrahimesam8541 6 месяцев назад

    Thank you bro

  • @양상완
    @양상완 Год назад

    good!

  • @DrMoussavie
    @DrMoussavie 9 месяцев назад

    thanks bro

  • @jrM5492
    @jrM5492 10 месяцев назад

    sadly, I get `qt.qpa.xcb: could not connect to display :1.0
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    Available platform plugins are: minimal, xcb.` afterwards. any idea how to fix this?

    • @Klox-my7yb
      @Klox-my7yb 9 месяцев назад

      Are you using WSL ?

    • @jrM5492
      @jrM5492 9 месяцев назад

      @@Klox-my7yb VMware Ubuntu22.04, tried all solutions and couldn’t install qt 6, and finally settled with qt5. Very strange.

    • @manuelanatoliyarciasalmero9095
      @manuelanatoliyarciasalmero9095 5 дней назад

      The same QT6 installer told me that you should install this: apt install libxcb-cursor0 libxcb-cursor-dev