Alexa on MacOs - Stuck on "Build Sample App"

Hi Community,

I followed this guide to install Alexa: MacOS Quick Start Guide

All initial steps went well on my Catalina. But in the step “Build the sample app” i get from adding this:

cmake /Users/username/Alexa/source/avs-device-sdk </em>

> -DGSTREAMER_MEDIA_PLAYER=ON </em>

> -DCURL_LIBRARY=/usr/local/opt/curl-openssl/lib/libcurl.dylib </em>

> -DCURL_INCLUDE_DIR=/usr/local/opt/curl-openssl/include </em>

> -DPORTAUDIO=ON </em>

> -DPORTAUDIO_LIB_PATH=/Users/username/Alexa/third-party/portaudio/lib/.libs/libportaudio.a </em>

> -DPORTAUDIO_INCLUDE_DIR=/Users/username/Alexa/third-party/portaudio/include </em>

> -DCMAKE_BUILD_TYPE=DEBUG

This error:

CMake Error: The source directory “/Users/username/Alexa/source/avs-device-sdk” does not exist.

Specify --help for usage, or press the help button on the CMake GUI.

The source directory does exist…and the option entries were corrected to include my Alexa lib. Maybe I just don’t know how to add the options in Terminal.

I tried starting CMake but it does not make sense to me how to use it.

Please asssist! :slight_smile:

I could attach contents of the errors when pressing “Configure” in CMake…but need to learn how to attach a file here…

Is my question unclear…or just dumb? :slight_smile: …I am not experienced in this and just do the commands in the guide…

If you can point me to what I should read/understand first, that would also help.

Thanks!

Responses in the forum may take days or not at all.

cmake is looking for a folder containing the file “CMakeList.txt”. The error message is very misleading if your folder does exist, but doesn’t contain that file.

The syntax shown in the guide may not be correct, you might try:

cmake -DGSTREAMER_MEDIA_PLAYER=ON \
-DCURL_LIBRARY=/usr/local/opt/curl-openssl/lib/libcurl.dylib \
-DCURL_INCLUDE_DIR=/usr/local/opt/curl-openssl/include \
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH=/Users/username/my_project/third-party/portaudio/lib/.libs/libportaudio.a \
-DPORTAUDIO_INCLUDE_DIR=/Users/username/my_project/third-party/portaudio/include \
-DCMAKE_BUILD_TYPE=DEBUG \
/Users/username/my_project/source/avs-device-sdk

I.e. I’ve read some pages suggesting the directory should be last on the command line.

Hope that helps…

1 Like

This was already a good help. I found that the folder actually does have a cmakelists.txt file.

I used your command line but other than changing the “my_project” as I did before, I also changed “username” to my username. The last bit was probably what gave a breakthrough.

So I ran it and get this error. That is probable why neither “Make” og “Make Sampleapp” works. This missing GTEST is what I am to investigate now.

I did install it with first “Brew update” and then:

brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav sqlite3 repo cmake clang-format doxygen wget git

Then I ran the Cmake command again…

Creating the build directory for the AlexaClientSDK with build type: DEBUG
Creating AlexaClientSDK with keyword detector type: Amazon
CMake Error at build/cmake/KeywordDetector.cmake:38 (message):
  Must pass library path of Amazon KeywordDetector!
Call Stack (most recent call first):
  build/BuildDefaults.cmake:22 (include)
  CMakeLists.txt:10 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/carstenwolff/alexa/build/CMakeFiles/CMakeOutput.log".
1 Like