diff --git a/README.md b/README.md index 827cd8642bd3ac88fcad601f7ed69b7d258f16c8..54e5b2154fa00d42a09a412d8b208fcbd59fb4fb 100644 --- a/README.md +++ b/README.md @@ -51,28 +51,25 @@ Supported builds are 64 bit, built using the clang compiler. #### Install QT - - - -1. Download Qt 5.3 from: +1. Download Qt 5.4 from: 2. Double click the package installer and follow instructions. #### Build QGroundControl 1. From the terminal change directory to your `groundcontrol` directory -2. Run `~/Qt5.3.1/5.3/clang_64/bin/qmake qgroundcontrol.pro -r -spec macx-clang`. If you installed a different version of Qt, or installed to a different location you may need to change the first portion of the path. +2. Run `~/Qt/5.4/clang_64/bin/qmake qgroundcontrol.pro -r -spec macx-clang`. If you installed a different version of Qt, or installed to a different location you may need to change the first portion of the path. 3. Run `make` ### Build on Linux Supported builds for Linux are 32 or 64-bit, built using gcc. -#### Install Qt5.3+ and SDL1.2 prerequistites -* For Ubuntu (requires 14.10 for Qt5.3): `sudo apt-get install qtcreator qttools5-dev qtbase5-dev qt5-default qtdeclarative5-dev libqt5serialport5-dev libqt5svg5-dev libqt5webkit5-dev libsdl1.2-dev build-essential libudev-dev qml-module-qtgraphicaleffects` +#### Install Qt5.4 and SDL1.2 prerequistites * For Fedora: `sudo yum install qt-creator qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtserialport-devel qt5-qtsvg-devel qt5-qtwebkit-devel SDL-devel SDL-static systemd-devel` * For Arch Linux: `pacman -Sy qtcreator qt5-base qt5-declarative qt5-serialport qt5-svg qt5-webkit` - -##### Install Qt5.3+ from PPA -Note: Please be aware that the time of writing, Qt5.3 is unavailable in the official repositories Ubuntu 14.04/Mint 17.*. If it has become available since, please follow the instructions for installing Qt5.3 on Ubuntu. -* Add this PPA to your sources.list: `ppa:beineri/opt-qt532-trusty` -* Run the following in your terminal: `sudo apt-get update && sudo apt-get install qt53tools qt53base qt53declarative qt53serialport qt53svg qt53webkit qt53quickcontrols qt53graphicaleffects` -* Next, set the environment variables by executing in the terminal: `source /opt/qt53/bin/qt53-env.sh` or copy and paste the contents to your `~/.profile` file to set them on login. -* Verify that the variables have been set: `echo $PATH && echo $QTDIR`. The output should read `/opt/qt53/bin:...` and `/opt/qt53`. +* For Ubuntu: Please be aware that the time of writing, Qt5.4 is unavailable in the official repositories Ubuntu 14.04/Mint 17.*. + * Add this PPA to your sources.list: `ppa:beineri/opt-qt54-trusty` + * Run the following in your terminal: `sudo apt-get update && sudo apt-get install qt54tools qt54base qt54declarative qt54serialport qt54svg qt54webkit qt54quickcontrols qt54xmlpatterns qt54x11extras qt54websockets qt54sensors qt54script qt54quick1 qt54qbs qt54multimedia qt54location qt54imageformats qt54graphicaleffects qt54creator qt54connectivity` + * Next, set the environment variables by executing in the terminal: `source /opt/qt53/bin/qt53-env.sh` or copy and paste the contents to your `~/.profile` file to set them on login. + * Verify that the variables have been set: `echo $PATH && echo $QTDIR`. The output should read `/opt/qt53/bin:...` and `/opt/qt53`. #### [Optional] Install additional libraries * For text-to-speech (espeak) @@ -95,8 +92,8 @@ Supported builds for Windows are 32 bit only built using Visual Studio 2013 or h #### Install Visual Studio Express 2013 Only compilation using Visual Studio 2013 is supported. Download and install Visual Studio Express Edition (free) from here: . Make sure you install the Windows Desktop version. -#### Install QT -Download Qt 5.3 from here: +#### Install Qt5.4 +Download Qt 5.4 from here: * The Qt variant should be for VS 2013, 32 bit (not 64) and include opengl. #### Build QGroundControl diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index c586014d20375cc74a39920007e3fda7eb158f97..8d4e80c4c139a1a2f3fa4b0bb3d7618bd039f5f4 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -29,8 +29,8 @@ exists(user_config.pri):infile(user_config.pri, CONFIG) { # to allow us to easily modify suported build types in one place instead of duplicated throughout # the project file. -!equals(QT_MAJOR_VERSION, 5) | !greaterThan(QT_MINOR_VERSION, 1) { - error("Unsupported Qt version, 5.2+ is required") +!equals(QT_MAJOR_VERSION, 5) | !greaterThan(QT_MINOR_VERSION, 3) { + error("Unsupported Qt version, 5.4+ is required") } linux { @@ -117,8 +117,8 @@ QT += network \ serialport \ sql \ printsupport \ - quick \ - quickwidgets + qml \ + quick contains(DEFINES, QGC_NOTIFY_TUNES_ENABLED) { QT += multimedia