alexa / alexa-smart-screen-sdk

⛔️ DEPRECATED Active at https://github.com/alexa/avs-device-sdk
Apache License 2.0
76 stars 25 forks source link

Error No package 'AlexaClientSDK' found #135

Closed Qianqian-Bella closed 2 years ago

Qianqian-Bella commented 2 years ago

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?

  <1.26.0>

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:

-- 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)

The CMakeError Log showed

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The CMakeOutput Log showed

The system is: Darwin - 21.4.0 - arm64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ 
Build flags: 
Id flags: -c 

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"

The CXX compiler identification is AppleClang, found in "/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/3.23.2/CompilerIdCXX/CMakeCXXCompilerId.o"

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_595a3/fast && /opt/homebrew/bin/gmake  -f CMakeFiles/cmTC_595a3.dir/build.make CMakeFiles/cmTC_595a3.dir/build
gmake[1]: Entering directory '/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++   -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk   -v -Wl,-v -MD -MT CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -c /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
 "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.0.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -fno-strict-return -fno-rounding-math -munwind-tables -target-sdk-version=12.3 -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +dotprod -target-feature +fp16fml -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -debugger-tuning=lldb -target-linker-version 763 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6 -dependency-file CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o.d -skip-unused-modulemap-deps -MT CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -stdlib=libc++ -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1 -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -Wno-objc-load-method -fdeprecated-macro -fdebug-compilation-dir=/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp -ferror-limit 19 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fno-cxx-modules -fcxx-exceptions -fexceptions -fmax-type-align=16 -fcommon -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -x c++ /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp
clang -cc1 version 13.1.6 (clang-1316.0.21.2.5) default target arm64-apple-darwin21.4.0
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/local/include"
ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1
 /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include
 /Library/Developer/CommandLineTools/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)
End of search list.
Linking CXX executable cmTC_595a3
/opt/homebrew/Cellar/cmake/3.23.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_595a3.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  -v -Wl,-v CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_595a3 
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 12.0.0 12.3 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -o cmTC_595a3 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a
@(#)PROGRAM:ld  PROJECT:ld64-764
BUILD 11:22:55 Apr 28 2022
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib
Framework search paths:
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/
gmake[1]: Leaving directory '/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp'

Parsed CXX implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1]
    add: [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include]
    add: [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include]
    add: [/Library/Developer/CommandLineTools/usr/include]
  end of search list found
  collapse include dir [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1]
  collapse include dir [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include] ==> [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include]
  collapse include dir [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include]
  collapse include dir [/Library/Developer/CommandLineTools/usr/include] ==> [/Library/Developer/CommandLineTools/usr/include]
  implicit include dirs: [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1;/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include;/Library/Developer/CommandLineTools/usr/include]

Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/opt/homebrew/bin/gmake -f Makefile cmTC_595a3/fast && /opt/homebrew/bin/gmake  -f CMakeFiles/cmTC_595a3.dir/build.make CMakeFiles/cmTC_595a3.dir/build]
  ignore line: [gmake[1]: Entering directory '/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp']
  ignore line: [Building CXX object CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o]
  ignore line: [/Library/Developer/CommandLineTools/usr/bin/c++   -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk   -v -Wl -v -MD -MT CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -MF CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o.d -o CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -c /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [Apple clang version 13.1.6 (clang-1316.0.21.2.5)]
  ignore line: [Target: arm64-apple-darwin21.4.0]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /Library/Developer/CommandLineTools/usr/bin]
  ignore line: [clang: warning: -Wl -v: 'linker' input unused [-Wunused-command-line-argument]]
  ignore line: [ "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple arm64-apple-macosx12.0.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name CMakeCXXCompilerABI.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -fno-strict-return -fno-rounding-math -munwind-tables -target-sdk-version=12.3 -fvisibility-inlines-hidden-static-local-var -target-cpu apple-m1 -target-feature +v8.5a -target-feature +fp-armv8 -target-feature +neon -target-feature +crc -target-feature +crypto -target-feature +dotprod -target-feature +fp16fml -target-feature +ras -target-feature +lse -target-feature +rdm -target-feature +rcpc -target-feature +zcm -target-feature +zcz -target-feature +fullfp16 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-feature +aes -target-abi darwinpcs -fallow-half-arguments-and-returns -debugger-tuning=lldb -target-linker-version 763 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6 -dependency-file CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o.d -skip-unused-modulemap-deps -MT CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -sys-header-deps -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -stdlib=libc++ -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1 -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -Wno-objc-load-method -fdeprecated-macro -fdebug-compilation-dir=/Users/bellahahaha/Desktop/wechaty/sdk_folder/ss-build/CMakeFiles/CMakeTmp -ferror-limit 19 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fno-cxx-modules -fcxx-exceptions -fexceptions -fmax-type-align=16 -fcommon -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -x c++ /opt/homebrew/Cellar/cmake/3.23.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [clang -cc1 version 13.1.6 (clang-1316.0.21.2.5) default target arm64-apple-darwin21.4.0]
  ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/local/include"]
  ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/Library/Frameworks"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1]
  ignore line: [ /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include]
  ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include]
  ignore line: [ /Library/Developer/CommandLineTools/usr/include]
  ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks (framework directory)]
  ignore line: [End of search list.]
  ignore line: [Linking CXX executable cmTC_595a3]
  ignore line: [/opt/homebrew/Cellar/cmake/3.23.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_595a3.dir/link.txt --verbose=1]
  ignore line: [/Library/Developer/CommandLineTools/usr/bin/c++  -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl -search_paths_first -Wl -headerpad_max_install_names  -v -Wl -v CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_595a3 ]
  ignore line: [Apple clang version 13.1.6 (clang-1316.0.21.2.5)]
  ignore line: [Target: arm64-apple-darwin21.4.0]
  ignore line: [Thread model: posix]
  ignore line: [InstalledDir: /Library/Developer/CommandLineTools/usr/bin]
  link line: [ "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 12.0.0 12.3 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -o cmTC_595a3 -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o -lc++ -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a]
    arg [/Library/Developer/CommandLineTools/usr/bin/ld] ==> ignore
    arg [-demangle] ==> ignore
    arg [-lto_library] ==> ignore, skip following value
    arg [/Library/Developer/CommandLineTools/usr/lib/libLTO.dylib] ==> skip value of -lto_library
    arg [-dynamic] ==> ignore
    arg [-arch] ==> ignore
    arg [arm64] ==> ignore
    arg [-platform_version] ==> ignore
    arg [macos] ==> ignore
    arg [12.0.0] ==> ignore
    arg [12.3] ==> ignore
    arg [-syslibroot] ==> ignore
    arg [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_595a3] ==> ignore
    arg [-search_paths_first] ==> ignore
    arg [-headerpad_max_install_names] ==> ignore
    arg [-v] ==> ignore
    arg [CMakeFiles/cmTC_595a3.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
    arg [-lc++] ==> lib [c++]
    arg [-lSystem] ==> lib [System]
    arg [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a] ==> lib [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a]
  Library search paths: [;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib]
  Framework search paths: [;/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/]
  remove lib [System]
  remove lib [/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/lib/darwin/libclang_rt.osx.a]
  collapse library dir [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib]
  collapse framework dir [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks]
  implicit libs: [c++]
  implicit objs: []
  implicit dirs: [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib]
  implicit fwks: [/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks]
aravnata commented 2 years ago

Hello,

I had the following questions:

  1. Could you please confirm that you are running the ./configure --without-boost && make && make install from within the asio-1.22.2 directory?

  2. 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?

  3. 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.

Qianqian-Bella commented 2 years ago

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

aravnata commented 2 years ago

Could you please confirm the following:

  1. The version of the AVS Device SDK you are using is 1.26.0?
  2. The make install in step 4, point 4 was performed.
  3. $HOME/Desktop/wechaty/sdk_folder/sdk-install exists, is not empty and contains the installed AVS Device SDK?
Qianqian-Bella commented 2 years ago

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!

aravnata commented 2 years ago

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
Qianqian-Bella commented 2 years ago

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
aravnata commented 2 years ago

Have you opened index.html in the browser as described in Step 3 here?

Qianqian-Bella commented 2 years ago

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.

aravnata commented 2 years ago

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.