MATRIX VOICE / wakeWordAgent issue

Hi everyone ~ nice to meet you all,

I’m not good at English, Please understand :slight_smile:

I’m following the guide at link below

but when I execute ‘./automated_install.sh’ command, I get error message like below

---------------------------------------------------------------------------------------------

Scanning dependencies of target wakeWordAgent
[ 13%] Building CXX object CMakeFiles/wakeWordAgent.dir/main.cpp.o
[ 13%] Building CXX object CMakeFiles/wakeWordAgent.dir/WakeWordAgent.cpp.o
[ 20%] Building CXX object CMakeFiles/wakeWordAgent.dir/WakeWordEngineFactory.cpp.o
[ 26%] Building CXX object CMakeFiles/wakeWordAgent.dir/WakeWordEngine.cpp.o
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/WakeWordAgent.cpp:20:37: fatal error: matrix_hal/wishbone_bus.h: No such file or directory
 #include <matrix_hal/wishbone_bus.h>
                                     ^
compilation terminated.
CMakeFiles/wakeWordAgent.dir/build.make:86: recipe for target 'CMakeFiles/wakeWordAgent.dir/WakeWordAgent.cpp.o' failed
make[2]: *** [CMakeFiles/wakeWordAgent.dir/WakeWordAgent.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/wakeWordAgent.dir/all' failed
make[1]: *** [CMakeFiles/wakeWordAgent.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HAL found => /usr/lib/libmatrix_creator_hal.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/tst
Scanning dependencies of target wakeWordAgentTest
[  5%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/main.cpp.o
[ 20%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/testLogger.cpp.o
[ 20%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/testKittAi.cpp.o
[ 20%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/testIPCFactory.cpp.o
[ 25%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/testSensory.cpp.o
[ 30%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/testGPIO.cpp.o
[ 35%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/IPCInterface.cpp.o
[ 40%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/KittAiSnowboyWakeWordEngine.cpp.o
[ 45%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/Logger.cpp.o
[ 50%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/PortAudioWrapper.cpp.o
[ 55%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/SensoryWakeWordEngine.cpp.o
[ 60%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/GPIOWakeWordEngine.cpp.o
[ 65%] Building CXX object CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/WakeWordAgent.cpp.o
/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/WakeWordAgent.cpp:20:37: fatal error: matrix_hal/wishbone_bus.h: No such file or directory
 #include <matrix_hal/wishbone_bus.h>
                                     ^
compilation terminated.
CMakeFiles/wakeWordAgentTest.dir/build.make:350: recipe for target 'CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/WakeWordAgent.cpp.o' failed
make[2]: *** [CMakeFiles/wakeWordAgentTest.dir/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/src/WakeWordAgent.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/wakeWordAgentTest.dir/all' failed
make[1]: *** [CMakeFiles/wakeWordAgentTest.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
chown: changing ownership of '/home/pi/Desktop/alexa-avs-sample-app/samples/wakeWordAgent/ext/lib/libblas.so.3': Operation not permitted
chown: cannot access '/home/pi/.asoundrc': No such file or directory

-------------------------------------------------------------------------------------------

if click ‘Tab to speak to Alexa’ Button at the program that apear when ‘mvn exec:exec’ command is executed, alexa works well

but LEDs of Matrix voice is not working and

pi@raspberrypi:~/Desktop/alexa-avs-sample-app/samples $ cd wakeWordAgent/src && ./wakeWordAgent -e sensory

bash: ./wakeWordAgent: No such file or directory

Thank you for reading my long question

Hello @Jang

We just update https://github.com/matrix-io/alexa-avs-sample-app repository. The bug has been fixed.

However, Alexa java engine is under maintenance, I recommend you to use the Alexa SDK, here are the steps to run it: https://github.com/matrix-io/matrixio-alexa-sdk-guide

Best Regards,

Kevin Patino

Thank you for your reply :slight_smile:

I’ll try this

have a nice day!