Commit 0de42b88 authored by Bryant's avatar Bryant

Fixes to build procedure for speech output.

Manual override through DISABLE_SPEECH now works on all platforms.
parent 5e88241d
...@@ -517,16 +517,17 @@ MacBuild { ...@@ -517,16 +517,17 @@ MacBuild {
} }
## ##
# Speech synthesis library support. # [OPTIONAL] Speech synthesis library support.
# Can be forcibly disabled by adding a `DEFINES+=DISABLE_SPEECH` argument to qmake. # Can be forcibly disabled by adding a `DEFINES+=DISABLE_SPEECH` argument to qmake.
# Linux support requires the Festival Lite speech synthesis engine (flite).
# Mac support is provided in Snow Leopard and newer (10.6+)
# Windows is supported as of Windows 7
# #
contains (DEFINES, DISABLE_SPEECH) {
# Festival Lite speech synthesis engine message("Skipping support for speech output (manual override)")
LinuxBuild { } else:LinuxBuild {
contains (DEFINES, DISABLE_SPEECH) { exists(/usr/include/flite) | exists(/usr/local/include/flite) {
message("Skipping support for speech synthesis (manual override)") message("Including support for speech output")
} else:exists(/usr/include/flite) | exists(/usr/local/include/flite) {
message(Enabling support for speech output)
LIBS += \ LIBS += \
-lflite_cmu_us_kal \ -lflite_cmu_us_kal \
-lflite_usenglish \ -lflite_usenglish \
...@@ -534,20 +535,14 @@ LinuxBuild { ...@@ -534,20 +535,14 @@ LinuxBuild {
-lflite -lflite
} else { } else {
DEFINES += DISABLE_SPEECH DEFINES += DISABLE_SPEECH
warning("Skipping support for speech synthesis (missing flite libraries, see README)") warning("Skipping support for speech output (missing libraries, see README)")
} }
} }
# Mac support is built into OS 10.6+.
# Mac support for speech synthesis is currently broken. else:MacBuild {
# Library support is built into Mac OS X message("Including support for speech output")
MacBuild {
message("Including support for speech synthesis.")
} }
# Windows supports speech through native API.
# Windows support for speech synthesis is currently broken else:WindowsBuild {
# Library support is built into Windows message("Including support for speech output")
WindowsBuild {
DEFINES += DISABLE_SPEECH
message("Skipping support for speech synthesis (unsupported on Windows)")
} }
...@@ -48,7 +48,7 @@ Integration with Opal-RT's RT-LAB simulator can be enabled on Windows by install ...@@ -48,7 +48,7 @@ Integration with Opal-RT's RT-LAB simulator can be enabled on Windows by install
This support is enabled by default once the requisite RT-LAB software is installed. Disabling this can be done by defining DISABLE_RTLAB when running qmake. This support is enabled by default once the requisite RT-LAB software is installed. Disabling this can be done by defining DISABLE_RTLAB when running qmake.
### Speech syntehsis ### Speech syntehsis
QGroundcontrol can notify the controller of information via speech synthesis on the Mac and Linux platforms. This requires the `flite` library on Linux while on Mac text-to-speech support is built in starting with OS 10.6+ (Snow Leopard). This support is enabled by default on all platforms if the dependencies are met. Disabling this functionality can be done by adding the `DISABLE_SPEECH` define when running `qmake` like: `qmake DEFINES=DISABLE_SPEECH`. Note that multiple defines can be specified like this: `qmake DEFINES="DISABLE_QUPGRADE DISABLE_SPEECH"`. QGroundcontrol can notify the controller of information via speech synthesis. This requires the `flite` library on Linux. On Mac and Windows support is built in to the OS as of OS X 10.6 (Snow Leopard) and Windows Vista. This support is enabled by default on all platforms if the dependencies are met. Disabling this functionality can be done by adding the `DISABLE_SPEECH` define when running `qmake` like: `qmake DEFINES=DISABLE_SPEECH`. Note that multiple defines can be specified like this: `qmake DEFINES="DISABLE_QUPGRADE DISABLE_SPEECH"`.
### 3D view ### 3D view
The OpenSceneGraph libraries provide 3D rendering to the map overlays that QGC can provide. The OpenSceneGraph libraries provide 3D rendering to the map overlays that QGC can provide.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment