Difference between revisions of "Get Qt"

From MNE-CPP Wiki
Jump to: navigation, search
Line 3: Line 3:
 
# Download the current Qt version:
 
# Download the current Qt version:
 
## Go to the Qt download section [http://download.qt.io/official_releases/qt/ here]. Qt5.7 or higher is needed in order to have full Qt3D support.
 
## Go to the Qt download section [http://download.qt.io/official_releases/qt/ here]. Qt5.7 or higher is needed in order to have full Qt3D support.
## Select the appropriate version based on your compiler and development platform (if you do not have a compiler set up, we recommend downloading the newest Microsoft Visual Studio community version [https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx here]).
+
## Select the appropriate version based on your compiler and development platform.
 
##:* For example if you are using the Microsoft Visual Studio 2013 Compiler on a Windows 32bit system, select the "''Qt 5.7.0 for Windows 32-bit (VS 2013, 840 MB)''" version.
 
##:* For example if you are using the Microsoft Visual Studio 2013 Compiler on a Windows 32bit system, select the "''Qt 5.7.0 for Windows 32-bit (VS 2013, 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):  
Line 19: Line 19:
 
#:*:#: <source lang="cpp">export PATH=$PATH:~/Qt/Qt5.7/bin </source>
 
#:*:#: <source lang="cpp">export PATH=$PATH:~/Qt/Qt5.7/bin </source>
 
#:*:#: <source lang="cpp">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/Qt/Qt5.7/lib </source>
 
#:*:#: <source lang="cpp">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/Qt/Qt5.7/lib </source>
 +
# In case you work on a windows machine and do not have a compiler set up:
 +
#:* Download the newest Microsoft Visual Studio community version [https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx here]
 +
#:* During installation make sure to select ''ProgrammingLanguages/Visual C++/Common Tools for Visual C++ 2015''
 
# In case you do not have the Windows 8.1 SDK installed:
 
# In case you do not have the Windows 8.1 SDK installed:
## Go to the [https://dev.windows.com/de-de/downloads/windows-8-1-sdk Windows SDK download website]
+
#:* Go to the [https://dev.windows.com/de-de/downloads/windows-8-1-sdk 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).
+
#:* 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''.
+
#:* Open the QtCreator and select the debugger under ''Tools/Options/Build & Run/Kits/[your Kit name goes here]/Debugger''.

Revision as of 10:53, 10 August 2016

This page will show how to dowload and install the latest Qt version.

  1. Download the current Qt version:
    1. Go to the Qt download section here. Qt5.7 or higher is needed in order to have full Qt3D support.
    2. Select the appropriate version based on your compiler and development platform.
      • For example if you are using the Microsoft Visual Studio 2013 Compiler on a Windows 32bit system, select the "Qt 5.7.0 for Windows 32-bit (VS 2013, 840 MB)" version.
  2. Install the Qt version with the minimum of the following features (uncheck all other boxes):
    • Qt/Qt 5.7/Pre-compiled Qt (i.e. Qt 5.7/msvc2013 32-bit)
    • Qt/Qt 5.7/QtCharts
    • Qt/Tools/QtCreator
  3. 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:
      1. Right-click Computer and click Properties.
      2. Click Advanced System Settings link in the left column.
      3. In the System Properties window and click the Environment Variables button.
      4. Add to the PATH variable C:\Qt\Qt5.7.0\5.7\msvc2013\bin (the qt bin path may differ depending on your Qt installation).
    • Linux:
      1. 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.7/bin
        export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/Qt/Qt5.7/lib
  4. In case you work on a windows machine and do not have a compiler set up:
    • Download the newest Microsoft Visual Studio community version here
    • During installation make sure to select ProgrammingLanguages/Visual C++/Common Tools for Visual C++ 2015
  5. 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.