Construction of Qt development environment based on Ubuntu

Note: This is a concise installation tutorial for personal use, for reference only.

1. Download the official images of VMware and Ubuntu systems

1. Download VMware

        You can download it from the official website and find the key yourself.

2. Download the Ubuntu system

Find the mirror file of the desktop version         from the mirror site of Tsinghua University .

2. Install VMware and Ubuntu virtual machines

1. Install VMware

        The default is fine.

2. Install the Ubuntu image

        There are many tutorials on the Internet that will not be described in detail, but the following items need to be paid attention to.

        1) The network connection selection is as follows to avoid the different IP addresses assigned each time.

         2) The display is incomplete during the installation process, which is a resolution problem. The solution is as follows

                Shortcut to open terminal: ctrl + alt + t  

                Terminal input command: xrandr -s 1920x1080

        Or use the "TAB" key to change the focus to the next button, and then press the "ENTER key".   

        You can also enter "Settings" to change the resolution.

 3. MobaXterm connects to the virtual machine Ubuntu

        1) Ifconfig checks the IP address of the virtual machine, if there is no one, install apt-get install net-tools first

        2) Check if the SSH service is installed service sshd status             
        3) Install the SSH service sudo apt install openssh-server 

       4) Open MobaXterm, select SSH as the new mode, port as 22, Remote host as the IP address of the virtual machine, and you can also set the user name and password.

3. Install Qt

1. Keep the system up to date

sudo apt-get update && sudo apt-get upgrade

2. Install Qt dependencies

sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5

3. Download the Qt online installation package

Download Qt6 from Tsinghua University Open Source Software Station , such as qt-unified-linux-x64-online.run

4. Increase permissions

chmod +x qt*.run

5. Run the install

sudo ./qt-unified-linux-x64-online.run

  The installation requires a Qt official account, and the specific installation process is relatively simple, and the default option is sufficient.

   

Guess you like

Origin blog.csdn.net/tsliuch/article/details/130519232