Difference between revisions of "Get Qt"
From MNE-CPP Wiki
Line 4: | Line 4: | ||
## Go to the Qt download section [http://download.qt.io/official_releases/qt/ here]. Qt 5.9.1 or higher is needed in order to have full Qt3D support. Note for Windows users: Make sure NOT to download the WinRt version. | ## Go to the Qt download section [http://download.qt.io/official_releases/qt/ here]. Qt 5.9.1 or higher is needed in order to have full Qt3D support. Note for Windows users: Make sure NOT to download the WinRt version. | ||
## Select the appropriate version based on your compiler and development platform. | ## Select the appropriate version based on your compiler and development platform. | ||
− | ##:* For example if you are using the Microsoft Visual Studio | + | ##:* For example if you are using the Microsoft Visual Studio 2015 Compiler on a Windows 32bit system, select the "''Qt 5.9.1 for Windows 32-bit (VS 2015, 840 MB)''" version. |
# Install the Qt version with the minimum of the following features (uncheck all other boxes): | # Install the Qt version with the minimum of the following features (uncheck all other boxes): | ||
− | #:* Qt/5.9.1/Pre-compiled Qt (i.e. ''Qt 5.9.1/ | + | #:* Qt/5.9.1/Pre-compiled Qt (i.e. ''Qt 5.9.1/msvc2015 32-bit'') |
#:* Qt/5.9.1/QtCharts | #:* Qt/5.9.1/QtCharts | ||
#:* Qt/Tools/QtCreator | #:* Qt/Tools/QtCreator | ||
Line 14: | Line 14: | ||
#:*:# Click Advanced System Settings link in the left column. | #:*:# Click Advanced System Settings link in the left column. | ||
#:*:# In the System Properties window and click the ''Environment Variables'' button. | #:*:# In the System Properties window and click the ''Environment Variables'' button. | ||
− | #:*:# Add to the PATH variable ''C:\Qt\5.9.1\ | + | #:*:# Add to the PATH variable ''C:\Qt\5.9.1\msvc2015 \bin'' (the qt bin path may differ depending on your Qt installation). |
#:* Linux: | #:* Linux: | ||
#:*:# Add Qt bin and lib directory to the environment variables (the qt paths may differ depending on your Qt installation) | #:*:# Add Qt bin and lib directory to the environment variables (the qt paths may differ depending on your Qt installation) |
Revision as of 15:09, 1 October 2017
This page will show how to dowload and install the latest Qt version.
- Download the current Qt version:
- Go to the Qt download section here. Qt 5.9.1 or higher is needed in order to have full Qt3D support. Note for Windows users: Make sure NOT to download the WinRt version.
- Select the appropriate version based on your compiler and development platform.
- For example if you are using the Microsoft Visual Studio 2015 Compiler on a Windows 32bit system, select the "Qt 5.9.1 for Windows 32-bit (VS 2015, 840 MB)" version.
- Install the Qt version with the minimum of the following features (uncheck all other boxes):
- Qt/5.9.1/Pre-compiled Qt (i.e. Qt 5.9.1/msvc2015 32-bit)
- Qt/5.9.1/QtCharts
- Qt/Tools/QtCreator
- You now have the latest Qt version installed on your local machine. If you want to start Qt based applications drectly from your file navigator (i.e. Windwos Explorer or Linux Nautilus), you will need to add the Qt bin folder to the environment variable. If you plan only to start the applications directly from within the QtCreator you do not need to perform the following steps:
- Windows:
- Right-click Computer and click Properties.
- Click Advanced System Settings link in the left column.
- In the System Properties window and click the Environment Variables button.
- Add to the PATH variable C:\Qt\5.9.1\msvc2015 \bin (the qt bin path may differ depending on your Qt installation).
- Linux:
- Add Qt bin and lib directory to the environment variables (the qt paths may differ depending on your Qt installation)
-
export PATH=$PATH:~/Qt/Qt5.8/bin
-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/Qt/Qt5.8/lib
-
- Add Qt bin and lib directory to the environment variables (the qt paths may differ depending on your Qt installation)
- Windows:
- In case you work on a windows machine and do not have a compiler set up:
- Download Microsoft Visual C++ Build tools here
- In case you do not have the Windows 8.1 SDK installed:
- Go to the Windows SDK download website
- Download and install the Windows 8.1 SDK (during the installation, make sure to also select the Debugging Tools for Windows box).
- Open the QtCreator and select the debugger under Tools/Options/Build & Run/Kits/[your Kit name goes here]/Debugger.