Our Linux installation instructions are short because we assume the Linux users to be relatively adept at installing and setting up software on their own machine. We do not provide detailed Linux install/setup help. If you are unable to get Qt Creator working on your Linux machine, please consider using another machine or working on a campus cluster computer.
If you're running Ubuntu, Debian, Mint, or any other Debian derivative: Open a terminal and type the following command, then press Enter:
sudo apt-get -y install openjdk-8-jre build-essential
If you're running some other variant of Linux, figure out a way to make sure you have the following tools installed on your system.
(For example, on Fedora / Red Hat systems, you may be able to use the yum
package manager to install the above tools.)
Please note that you do need to have Java JDK installed on your machine before proceeding. The above Ubuntu command installs Java JDK, but if you are not using that command, you can go to Oracle's Java JDK download page and download the Linux version of JDK. Then you can download and install JDK on your system.
Go to the Qt Creator official download site to download this software.
Now scroll down to "Linux Host", and choose Qt 5.11.1 for Linux 64-bit (1.2 GB).
(The exact version may change over time, but make sure to choose the Linux 64-bit option.)
Your download will begin.
The file is very large, so it may take some time.
It downloads a .run
file to your machine.
Execute this file to install Qt Creator on your system.
Important:
For most screens, you should choose default options during the installation.
But at the screen labeled "Select Components", you must expand the "Qt 5.11.1" tree by clicking the >
triangle next to it, and then you must click the
checkbox labeled, "(none)".
This is absolutely crucial; if you forget to do this, your computer will not be able to compile and run C++ programs.
Let's make sure that all the parts are working together properly by building and running a sample Qt Creator project that uses the Stanford C++ libraries. The Stanford C++ libraries also interact with Java, so if this project runs properly for you, then you will be sure that your Qt Creator and Java JDK are both set up properly. Here's what to do:
If you encounter any problems during your attempt to compile and run the sample project, check out our Qt Creator troubleshooting page. Otherwise, congratulations; you're done!