Closed Qianqian-Bella closed 2 years ago
Hello,
I had the following questions:
Could you please confirm that you are running the ./configure --without-boost && make && make install
from within the asio-1.22.2
directory?
Also it is unclear to me why the cmake for the Smart Screen SDK is being executed with this command. Have you previously run the cmake, and are retrying the installation of ASIO?
If the answer to 2 is yes, Do you have a separate build directory e.g. ss-build
in point 4 from where the cmake for the Smart-Screen sdk was previously executed?
Usually the No package 'AlexaClientSDK' found
error indicates that either the Alexa Client SDK was not built and installed correctly, or was not pointed to correctly in the cmake command.
Could you please confirm that you are following all the steps listed here?
In any case, I would recommend a fresh start (in a new directory) from step1 to ensure correctness.
Sorry I was actually doing step 8 part 5 Configue cmake
with the command:
cmake -DCMAKE_PREFIX_PATH=$HOME/Desktop/wechaty/sdk_folder/sdk-install \
-DWEBSOCKETPP_INCLUDE_DIR=$HOME/Desktop/wechaty/sdk_folder/third-party/websocketpp-0.8.2 \
-DDISABLE_WEBSOCKET_SSL=ON \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DCMAKE_BUILD_TYPE=DEBUG \
-DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=$HOME/Desktop/wechaty/sdk_folder/third-party/portaudio/lib/.libs/libportaudio.a \
-DPORTAUDIO_INCLUDE_DIR=$HOME/Desktop/wechaty/sdk_folder/third-party/portaudio/include/ \
-DAPL_CLIENT_INSTALL_PATH=$HOME/Desktop/wechaty/sdk_folder/apl-client-library/preinstall \
-DAPL_CLIENT_JS_PATH=$HOME/Desktop/wechaty/sdk_folder/apl-client-library/apl-client-js \
-DPKCS11=OFF \
../alexa-smart-screen-sdk
and the above error appeared:
-- Checking for module 'AlexaClientSDK=1.26.0'
-- No package 'AlexaClientSDK' found
CMake Error at /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/FindPkgConfig.cmake:605 (message):
A required package was not found
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/FindPkgConfig.cmake:827 (_pkg_check_modules_internal)
modules/Alexa/CMakeLists.txt:7 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeOutput.log".
See also "/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeError.log".
I have started from the scratch but it showed the same error
Could you please confirm the following:
make install
in step 4, point 4 was performed.$HOME/Desktop/wechaty/sdk_folder/sdk-install
exists, is not empty and contains the installed AVS Device SDK?Thank you! I think there is a typo in my path.
But I then stuck at Step 9 and failed to run the sample app.
The full log of command
./modules/Alexa/SampleApp/src/SampleApp -C $HOME/Desktop/wechaty/sdk_folder/sdk-build/Integration/AlexaClientSDKConfig.json -C $HOME/Desktop/wechaty/sdk_folder/alexa-smart-screen-sdk/modules/GUI/config/SmartScreenSDKConfig.json -L INFO
is shown as below:
SmartScreenSDKVersion 2.9.2
configFile /Users/bellahahaha/Desktop/wechaty/sdk_folder/sdk-build/Integration/AlexaClientSDKConfig.json
configFile /Users/bellahahaha/Desktop/wechaty/sdk_folder/alexa-smart-screen-sdk/modules/GUI/config/SmartScreenSDKConfig.json
Running app with log level: INFO
2022-08-02 07:10:50.618 [ 1] I AlexaClientSdkInit:initialize:sdkversion=1.26.0
2022-08-02 07:10:50.618 [ 1] I AlexaClientSdkInit:initialize:curlVersion=7.84.0
2022-08-02 07:10:50.625 [ 1] E MediaPlayer:setupPipelineFailed:name=SpeakMediaPlayer,reason=createConverterElementFailed
2022-08-02 07:10:50.625 [ 1] E MediaPlayer:initPlayerFailed:name=SpeakMediaPlayer,reason=setupPipelineFailed
(<unknown>:59553): GStreamer-CRITICAL **: 15:10:50.625: gst_object_unref: assertion 'object != NULL' failed
(<unknown>:59553): GLib-CRITICAL **: 15:10:50.625: g_main_context_find_source_by_id: assertion 'source_id > 0' failed
2022-08-02 07:10:50.625 [ 1] C RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=SpeakMediaPlayer
2022-08-02 07:10:50.625 [ 1] C SampleApplication:Failed to create application media interfaces for speech!
2022-08-02 07:10:50.625 [ 1] C SampleApplication:Failed to initialize SampleApplication
Failed to create to SampleApplication!
It's near success, and thank you so much for you help!
Could you please try with adding a GST_PLUGIN_PATH=<path to gstreamer-1.0>
when you run the SampleApp?
See here for an example
The path to gstreamer-1.0
should be set to /usr/local/lib/gstreamer-1.0
, where /usr/local
is your Homebrew prefix path.
Your command should look like the following:
GST_PLUGIN_PATH=<path to gstreamer-1.0> ./modules/Alexa/SampleApp/src/SampleApp -C $HOME/Desktop/wechaty/sdk_folder/sdk-build/Integration/AlexaClientSDKConfig.json -C $HOME/Desktop/wechaty/sdk_folder/alexa-smart-screen-sdk/modules/GUI/config/SmartScreenSDKConfig.json -L INFO
The sample app worked now! But I am not sure if it is reasonable that the following log still has some errors
SmartScreenSDKVersion 2.9.2
configFile /Users/bellahahaha/Desktop/wechaty/sdk_folder/sdk-build/Integration/AlexaClientSDKConfig.json
configFile /Users/bellahahaha/Desktop/wechaty/sdk_folder/alexa-smart-screen-sdk/modules/GUI/config/SmartScreenSDKConfig.json
Running app with log level: INFO
2022-08-03 09:46:56.057 [ 1] I AlexaClientSdkInit:initialize:sdkversion=1.26.0
2022-08-03 09:46:56.057 [ 1] I AlexaClientSdkInit:initialize:curlVersion=7.84.0
2022-08-03 09:46:56.072 [ 1] I LocaleAssetsManager:initialize:supportedWakeWords=NONE
2022-08-03 09:46:56.073 [ 1] I DeviceInfo:create:result=skipDeviceType,key=deviceType
2022-08-03 09:46:56.073 [ 1] I DeviceInfo:create:result=skipFriendlyName,key=friendlyName
2022-08-03 09:46:56.073 [ 1] I DeviceInfo:create:result=skipRegistrationKey,key=registrationKey
2022-08-03 09:46:56.073 [ 1] I DeviceInfo:create:result=skipProductIdKey,key=productIdKey
2022-08-03 09:46:56.073 [ 1] W LWAAuthorizationStorage:createLWAAuthorizationStorageInterface::encryptionAtRestDisabled:reason=cryptoFactoryNull
2022-08-03 09:46:56.073 [ 1] W LWAAuthorizationStorage:createLWAAuthorizationStorageInterface::encryptionAtRestDisabled:reason=keyStoreNull
2022-08-03 09:46:56.073 [ 1] E ConfigurationNode:getArrayFailed:reason=notAnArray
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.136 [ 1] I Setting:handleSetValue:value=false11160318154034397263
2022-08-03 09:46:56.137 [ 1] I Setting:handleSetValue:value="NONE"11160318154034397263
2022-08-03 09:46:56.137 [ 1] I Setting:handleSetValue:value="NONE"11160318154034397263
2022-08-03 09:46:56.137 [ 1] I Setting:handleSetValue:value="NONE"11160318154034397263
2022-08-03 09:46:56.137 [ 1] I Setting:handleSetValue:value="America/Vancouver"11160318154034397263
2022-08-03 09:46:56.137 [ 1] I Setting:handleSetValue:value={}11160318154034397263
2022-08-03 09:46:56.137 [ 5] I LocaleAssetsManager:changeAssets:Locale=["en-US"],WakeWords=[]
2022-08-03 09:46:56.137 [ 1] I AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2022-08-03 09:46:56.137 [ 7] I ContextManager:updateCapabilityState
2022-08-03 09:46:56.138 [ 1] I ExternalMediaPlayer:startup
2022-08-03 09:46:56.138 [ 7] I ContextManager:updateCapabilityState
2022-08-03 09:46:56.138 [ 7] I ContextManager:updateCapabilityState
2022-08-03 09:46:56.138 [ 1] E PowerResource:create:error=nullPowerManager
2022-08-03 09:46:56.139 [ 1] W Timer:Timer:reason=nullTimerDelegateFactory:Falling back to default TimerDelegateFactory
2022-08-03 09:46:56.139 [ 7] I ContextManager:updateCapabilityState
#################################################
# NOTIFICATION INDICATOR STATE: OFF #
#################################################
2022-08-03 09:46:56.140 [ 12] I WebSocketServer:Listening for websocket connections:interface=127.0.0.1,port=8933
2022-08-03 09:46:56.140 [ 1] I MessageRouter:setAVSGateway:avsGateway=https\://alexa.na.gateway.devices.a2z.com
2022-08-03 09:46:56.140 [ 1] I MessageRouter:enable
2022-08-03 09:46:56.140 [ 1] I MessageRouter:setConnectionStatusLocked:status=PENDING,reason=ACL_CLIENT_REQUEST
2022-08-03 09:46:56.140 [ 1] I MessageRouter:createActiveTransportLocked:transport=0x1568710d0,sizeOf m_transports=0
2022-08-03 09:46:56.140 [ 1] I HTTP2Transport:connect:this=0x1568710d0
2022-08-03 09:46:56.140 [ 1] I HTTP2Transport:setStateLocked:this=0x1568710d0,currentState=INIT,newState=AUTHORIZING,changedReason=ACL_CLIENT_REQUEST
2022-08-03 09:46:56.140 [ 1] I MessageRouter:setAsActiveTransport:transport=0x1568710d0,sizeOf m_transports=1
2022-08-03 09:46:56.140 [ 15] I HTTP2Transport:handleAuthorizing:this=0x1568710d0
2022-08-03 09:46:56.140 [ 15] I HTTP2Transport:onAuthStateChange:this=0x1568710d0,newState=UNINITIALIZED,error=SUCCESS
#######################################
# ALEXA STATE: CONNECTING #
#######################################
2022-08-03 09:46:56.141 [ 3] E WebSocketServer:server::send:errorCode=15,errorCategory=websocketpp
2022-08-03 09:46:56.620 [ 16] I MessageRouter:onWakeConnectionRetry
2022-08-03 09:46:56.620 [ 16] I MessageRouter:onWakeConnectionRetry:m_activeTransport=0x1568710d0
2022-08-03 09:46:56.620 [ 16] I HTTP2Transport:onWakeConnectionRetry:this=0x1568710d0
2022-08-03 09:46:57.355 [ 17] I HTTP2Transport:onAuthStateChange:this=0x1568710d0,newState=REFRESHED,error=SUCCESS
2022-08-03 09:46:57.355 [ 17] I HTTP2Transport:setStateLocked:this=0x1568710d0,currentState=AUTHORIZING,newState=CONNECTING,changedReason=SUCCESS
2022-08-03 09:46:57.355 [ 15] I HTTP2Transport:handleConnecting:this=0x1568710d0
###########################
# Authorized! #
###########################
2022-08-03 09:46:57.355 [ 7] E WebSocketServer:server::send:errorCode=15,errorCategory=websocketpp
2022-08-03 09:46:58.536 [ 18] I HTTP2Transport:onDownchannelConnected:this=0x1568710d0
2022-08-03 09:46:58.536 [ 18] I HTTP2Transport:setStateLocked:this=0x1568710d0,currentState=CONNECTING,newState=POST_CONNECTING,changedReason=SUCCESS
2022-08-03 09:46:58.536 [ 15] I HTTP2Transport:handlePostConnecting:this=0x1568710d0
######################################################
# Successfully registered 1 endpoint(s)! #
######################################################
2022-08-03 09:46:58.539 [ a] E AudioPlayer:attachPlaybackAttributesIfAvailableFailed::playerMissing
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.539 [ 14] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:46:58.539 [ 14] E ContextManager:getContextFailureCallbackLocked:token=1,error=BUILD_CONTEXT_ERROR
2022-08-03 09:46:58.539 [ 14] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ActivityState,pendingStateProviderNamespace=AudioActivityTracker
2022-08-03 09:46:58.539 [ 14] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:46:58.540 [ 14] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:46:58.540 [ 14] I ContextManager:updateCapabilityState
2022-08-03 09:46:58.540 [ 14] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=1
2022-08-03 09:47:01.206 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.206 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.206 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.206 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.206 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.207 [ 9] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:47:01.207 [ 9] E ContextManager:getContextFailureCallbackLocked:token=2,error=BUILD_CONTEXT_ERROR
2022-08-03 09:47:01.207 [ 9] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter
2022-08-03 09:47:01.207 [ 9] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:47:01.207 [ 9] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:47:01.207 [ 9] I ContextManager:updateCapabilityState
2022-08-03 09:47:01.207 [ 9] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=2
2022-08-03 09:47:04.302 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:47:04.303 [ 3] E ContextManager:getContextFailureCallbackLocked:token=3,error=BUILD_CONTEXT_ERROR
2022-08-03 09:47:04.303 [ 3] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter
2022-08-03 09:47:04.303 [ 3] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:47:04.303 [ 3] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:47:04.303 [ 3] I ContextManager:updateCapabilityState
2022-08-03 09:47:04.303 [ 3] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=3
2022-08-03 09:47:07.806 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.806 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.806 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.806 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.806 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.806 [ 13] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:47:07.806 [ 13] E ContextManager:getContextFailureCallbackLocked:token=4,error=BUILD_CONTEXT_ERROR
2022-08-03 09:47:07.806 [ 13] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter
2022-08-03 09:47:07.806 [ 13] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:47:07.806 [ 13] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:47:07.807 [ 13] I ContextManager:updateCapabilityState
2022-08-03 09:47:07.807 [ 13] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=4
2022-08-03 09:47:13.018 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.018 [ 10] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:token=5,error=BUILD_CONTEXT_ERROR
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=RenderedDocumentState,pendingStateProviderNamespace=Alexa.Presentation.APL
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ActivityState,pendingStateProviderNamespace=VisualActivityTracker
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ActivityState,pendingStateProviderNamespace=AudioActivityTracker
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=ExternalMediaPlayerState,pendingStateProviderNamespace=ExternalMediaPlayer
2022-08-03 09:47:13.018 [ 10] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:47:13.019 [ 10] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:47:13.019 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.019 [ 10] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=5
2022-08-03 09:47:13.019 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.019 [ 10] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=5
2022-08-03 09:47:13.019 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.019 [ 10] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=5
2022-08-03 09:47:13.019 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.019 [ 10] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=5
2022-08-03 09:47:13.019 [ 10] I ContextManager:updateCapabilityState
2022-08-03 09:47:13.019 [ 10] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=5
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.713 [ 2] E ContextManager:setStateFailed:missingState=Alexa.Display.Window\:\:WindowState
2022-08-03 09:47:21.713 [ 2] E ContextManager:getContextFailureCallbackLocked:token=6,error=BUILD_CONTEXT_ERROR
2022-08-03 09:47:21.713 [ 2] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=playbackState,pendingStateProviderNamespace=Alexa.PlaybackStateReporter
2022-08-03 09:47:21.713 [ 2] E ContextManager:getContextFailureCallbackLocked:pendingStateProviderName=WindowState,pendingStateProviderNamespace=Alexa.Display.Window
2022-08-03 09:47:21.713 [ 2] E PostConnectSynchronizeStateSender:onContextFailure:reason=BUILD_CONTEXT_ERROR
2022-08-03 09:47:21.713 [ 2] I ContextManager:updateCapabilityState
2022-08-03 09:47:21.714 [ 2] E ContextManager:getContextAvailableCallbackIfReadyLockedFailed:reason=nullRequester,token=6
Have you opened index.html
in the browser as described in Step 3 here?
Yes, and the sample app successfully worked and functioned. But I am wondering if the log above is errorless since the content is not the same as the document specified.
Yes the errors are a result of the browser not being connected. You can ignore them. Closing this issue. You can reopen or create a new issue if you have any other questions. Thanks.
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
I encounter the error
No package 'AlexaClientSDK' found
when following macOS Quick Start Guide Step 8 Part 2 concerning ASIO. My system is MacOS Monetary 12.3.Tell us about your environment:
What version of the AVS Device SDK are you using?
Tell us what hardware you're using:
Tell us about your OS (Type & version):
Have you tried the same use case with AVS Device SDK SampleApp?
The command
./configure --without-boost && make && make install
showed the error:The CMakeError Log showed
The CMakeOutput Log showed