avs-device-sdk/tools/Install/mingw.sh

67 lines
2.0 KiB
Bash
Raw Normal View History

Verison 1.6 of the avs-device-sdk Changes in this update: **Enhancements** * `rapidJson` is now included with "make install". * Updated the `TemplateRuntimeObserverInterface` to support clearing of `displayCards`. * Added Windows SDK support, along with an installation script (MinGW-w64). * Updated `ContextManager` to ignore context reported by a state provider. * The `SharedDataStream` object is now associated by playlist, rather than by URL. * Added the `RegistrationManager` component. Now, when a user logs out all persistent user-specific data is cleared from the SDK. The log out functionality can be exercised in the sample app with the new command: `k`. **Bug Fixes** * [Issue 400](https://github.com/alexa/avs-device-sdk/issues/400) Fixed a bug where the alert reminder did not iterate as intended after loss of network connection. * [Issue 477](https://github.com/alexa/avs-device-sdk/issues/477) Fixed a bug in which Alexa's weather response was being truncated. * Fixed an issue in which there were reports of instability related to the Sensory engine. To correct this, the `portAudio` [`suggestedLatency`](https://github.com/alexa/avs-device-sdk/blob/master/Integration/AlexaClientSDKConfig.json#L62) value can now be configured. **Known Issues** * The `ACL` may encounter issues if audio attachments are received but not consumed. * `SpeechSynthesizerState` currently uses `GAINING_FOCUS` and `LOSING_FOCUS` as a workaround for handling intermediate state. These states may be removed in a future release. * Music playback doesn't immediately stop when a user barges-in on iHeartRadio. * The Windows sample app sometimes hangs on exit. * GDP receives a `SIGPIPE` when troubleshooting the Windows sample app.
2018-03-09 00:55:39 +00:00
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accompanying this file. This file is distributed
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.
#
if [ -z "$PLATFORM" ]; then
echo "You should run the main script."
exit 1
fi
LIB_SUFFIX="dll.a"
START_SCRIPT="$INSTALL_BASE/startsample.bat"
CMAKE_PLATFORM_SPECIFIC=(-G 'MSYS Makefiles' -Dgtest_disable_pthreads=ON)
CONFIG_DB_PATH=`cygpath.exe -m $DB_PATH`
install_dependencies() {
PACMAN_ARGS="--noconfirm --needed"
# Build tools and make (mingw32-make fails building portAudio)
pacman -S ${PACMAN_ARGS} git mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake msys/tar msys/make
# pip required for installing flask and commentjson
pacman -S ${PACMAN_ARGS} mingw64/mingw-w64-x86_64-python2-pip
# Requirements for AuthServer
pip install flask requests commentjson
# required by the SDK
pacman -S ${PACMAN_ARGS} mingw-w64-x86_64-sqlite3
# MediaPlayer reference Implementation
pacman -S ${PACMAN_ARGS} mingw64/mingw-w64-x86_64-gstreamer
# MediaPlayer reference Implementation
pacman -S ${PACMAN_ARGS} mingw64/mingw-w64-x86_64-gst-plugins-good mingw64/mingw-w64-x86_64-gst-plugins-base mingw64/mingw-w64-x86_64-gst-plugins-ugly
# Music providers requirements
pacman -S ${PACMAN_ARGS} mingw64/mingw-w64-x86_64-gst-plugins-bad mingw64/mingw-w64-x86_64-faad2
# Install Portaudio
pacman -S ${PACMAN_ARGS} mingw64/mingw-w64-x86_64-portaudio
}
run_os_specifics() {
:
}
generate_start_script() {
cat << EOF > "$START_SCRIPT"
set path=`cygpath.exe -m $MSYSTEM_PREFIX/bin`;%path%;
cd `cygpath.exe -m $BUILD_PATH/bin`
SampleApp.exe `cygpath.exe -m $CONFIG_FILE` DEBUG9
pause
EOF
}