question

Shyamal Chandra avatar image
Shyamal Chandra asked

macOS Quick Start Guide SDK v2.9.x for Alexa Smart Screen SDK not tested for MacOS Monterey 12.3.1

I followed the directions tested for earlier versions of MacOS but when I tried to make -j8 after a long cmake, the MD5 function couldn't be found. I looked up online that the library openssl was no longer used for MD5 and instead that Common Crypto's version of MD5 was being used or I would have to disable openssl encryption in the cmake command as a command line argument with -DENABLE_OPENSSL_ENCRYPTION=0

Here are the errors for make -j8:

/Users/shyamalchandra/sdk_folder/avs-device-sdk/capabilities/AudioPlayer/acsdkAudioPlayer/src/Util.cpp:53:10: error: 'MD5' is deprecated [-Werror,-Wdeprecated-declarations]
    if (!MD5((uint8_t*)key.data(), key.size(), hashOutput)) {
         ^
/usr/local/Cellar/openssl@3/3.0.3/include/openssl/md5.h:52:1: note: 'MD5' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
^

In addition, at the end of the cmake before the make -j8, this happened:

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_OPENSSL_ENCRYPTION



Here are the steps I did on an installation of MacOS Monterey 12.3.1:

1.

cd ~
mkdir sdk_folder
cd sdk_folder
mkdir sdk-build third-party sdk-install db
brew install curl (This is different than the instruction for earlier MacOS)
echo export PATH="/usr/local/opt/curl/bin:$PATH" >> ~/.zshrc
brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav sqlite3 repo cmake clang-format doxygen wget git openssl@1.1
cd third-party

wget -c http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
tar xf pa_stable_v190600_20161030.tgz

# If you use MacOS Big Sur, install the following version instead
# wget -c http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz
# tar xf pa_stable_v190700_20210406.tgz

cd portaudio
./configure --disable-mac-universal && make
brew info openssl@1.1
echo export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:/_path-to-openssl_/lib/pkgconfig:$PKG_CONFIG_PATH" >> ~/.bash_profile
cd ~/sdk_folder
git clone --single-branch --branch v1.26.0 https://github.com/alexa/avs-device-sdk.git
cd ~/sdk_folder   
git clone --single-branch --branch v1.8.1 https://github.com/alexa/apl-core-library.git
cd ~/sdk_folder
git clone --single-branch --branch v1.8.3 https://github.com/alexa/apl-client-library.git
cd ~/sdk_folder   
git clone https://github.com/alexa/alexa-smart-screen-sdk.git

2.

cd ~/sdk_folder/sdk-build
cmake -S ../avs-device-sdk -B . \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DCURL_LIBRARY=/usr/local/opt/curl/lib/libcurl.dylib \
-DCURL_INCLUDE_DIR=/usr/local/opt/curl/include \
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH=$HOME/sdk_folder/third-party/portaudio/lib/.libs/libportaudio.a \
-DPORTAUDIO_INCLUDE_DIR=$HOME/sdk_folder/third-party/portaudio/include \
-DCMAKE_BUILD_TYPE=DEBUG \
-DCMAKE_INSTALL_PREFIX=$HOME/sdk_folder/sdk-install \
-DRAPIDJSON_MEM_OPTIMIZATION=OFF \
-DPKCS11=OFF \
-DENABLE_OPENSSL_ENCRYPTION

3.

make -j8 (I have 8 cores on my iMac i9)

4. I never got this step

make install


So, that is what happened. If you need any additional information, please let me know to compare and contrast your results with my Intel iMac. Thanks!

alexa
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Kendall@Amazon avatar image
Kendall@Amazon answered

Hi,

Thank you for contacting us. I understand that you have a question regarding integrating the Alexa Smart Screen SDK for your device. I'd be happy to help point you in the right direction.

The Alexa Smart Screen SDK team has documented some of the most common issues that developers encounter here:
https://developer.amazon.com/en-US/docs/alexa/alexa-smart-screen-sdk/troubleshooting.html

If that doesn't address your question though, the Alexa Smart Screen SDK team can also be reached via the "Issues" tab of the "alexa-smart-screen-sdk" GitHub repository. There you'll be able to use the search bar to look for past resolved issues. If no solution is found though, you may click the "New issue" button to ask your question:
https://github.com/alexa/alexa-smart-screen-sdk/issues


Thank you!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.