alpine_works

wifi
https://wiki.alpinelinux.org/wiki/Connecting_to_a_wireless_access_point

Portaudio:

  1. download

    http://www.portaudio.com/download.html
    http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz

  2. config portaudio and make

    $ ./configure --prefix=$HOME/.programs/portaudio/ --enable-cxx --with-oss --enable-debug-output
    $ make
    $ make install

lib在lib/.libs/libportaudio.a

AVS sdk

  1. Download
    git clone https://github.com/alexa/avs-device-sdk.git --depth=10 -b v1.12

Build guide can be found at https://github.com/alexa/avs-device-sdk/wiki/Linux-Reference-Guide

  1. patch code to eliminate compiler warning “Missing sentinel in function call”, change the last param of var_args from NULL to nullptr fixes this.

    g_object_set(m_pipeline.audioSink, "sync", FALSE, NULL);
    ->
    g_object_set(m_pipeline.audioSink, "sync", FALSE, nullptr);
  2. config and make

export a=12345678
echo $a
echo ${a:2}
/my_volume/build # cat 1.sh
PA_INCLUDE=`pkgconf --cflags-only-I portaudiocpp`
PA_LIBS=`pkgconf --libs-only-L portaudiocpp`
PA_INC_PATH=${PA_INCLUDE:2}
PA_LIB_PATH=`echo ${PA_LIBS:2}/libportaudio.a | sed "s/ //g"`
cmake ../avs-device-sdk \
-DSENSORY_KEY_WORD_DETECTOR=OFF \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH=${PA_LIB_PATH} \
-DPORTAUDIO_INCLUDE_DIR=${PA_INC_PATH}

Sensory/alexa-rpi

git clone https://github.com/Sensory/alexa-rpi.git

OpenBLAS

git clone https://github.com/xianyi/OpenBLAS.git -b v0.3.5 --depth=10

Snowboy

git clone https://github.com/Kitt-AI/snowboy.git

程序的静态库
gcc -c snprintf_chk.c
ar -rcs libmissing.a snprintf_chk.o