Comments (20)
Can you provide us with the cmake command you used so we can dig into the issue a bit more?
from avs-device-sdk.
cmake /alexa-client-sdk-master build/ -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=/alexa/samples/wakeWordAgent/kitt_ai/snowboy/lib/ubuntu64/libsnowboy-detect.a -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=/alexa/samples/wakeWordAgent/kitt_ai/snowboy/include
from avs-device-sdk.
You'll need to create an out of source build directory.
So, your build folder that you create should be outside of the project you download from Github. You should run the cmake command from the build folder.
So, modify your cmake command and run from your build directory: cmake <path-to-sdk-project> -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=/alexa/samples/wakeWordAgent/kitt_ai/snowboy/lib/ubuntu64/libsnowboy-detect.a -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=/alexa/samples/wakeWordAgent/kitt_ai/snowboy/include
from avs-device-sdk.
HI i have created a new folder separately called as build outside all source directories in the desktop. I am running cmake from that directory
from avs-device-sdk.
Sorry, I may be misunderstanding but why do you have the extra build/
in your cmake command?
from avs-device-sdk.
cmake /alexa-client-sdk-master . -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=
/alexa/samples/wakeWordAgent/kitt_ai/snowboy/lib/ubuntu64/libsnowboy-detect.a -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=/alexa/samples/wakeWordAgent/kitt_ai/snowboy/includeSorry i might have edited the command wrongly when i was pasting here. Now the command is fine? I was running the cmake from the build folder which i created on desktop
from avs-device-sdk.
I'm still confused why you have the .
parameter in there? I believe that's not required if you're running the command from the build directory you created.
from avs-device-sdk.
oh i thought we had to specify the output directory of the build in the cmake command. But i suspect it shouldnt be a problem if we specify the output directory of the build. correct me if i am wrong.
from avs-device-sdk.
No, I don't think that is necessary. The output directory of the cmake command will be the folder from which you run it (your build directory). Could you try that and see if it works?
from avs-device-sdk.
I tried without the output directory too and still getting the error. As a work around i have commented the following line
#GTEST_ADD_TESTS(${testname} "${inputs}" ${testsourcefile})
in Testing.cmake under tools folder.
from avs-device-sdk.
Hmm odd. One more question, if you do cmake --version
, what do you get?
from avs-device-sdk.
cmake version 3.9.0-rc5
from avs-device-sdk.
Looks like you have some sort of release candidate version of cmake that isn't a full production version. I've seen this issue before when someone was using a cmake version with an "rc" in it and Google Test would error out. Could you change the cmake you have if possible? By commenting out that #GTEST_ADD_TESTS(${testname} "${inputs}" ${testsourcefile})
, you've essentially removed building of all tests.
from avs-device-sdk.
Sure i can try that. but before doing that changes, can you help me with one more issue? I am getting the following error :
make[2]: *** No rule to make target '/usr/lib/arm-linux-gnueabihf/libcurl.so', needed by 'AVSCommon/libAVSCommon.so'. Stop.
CMakeFiles/Makefile2:1315: recipe for target 'AVSCommon/CMakeFiles/AVSCommon.dir/all' failed
make[1]: *** [AVSCommon/CMakeFiles/AVSCommon.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Are both the issues inter-related?
from avs-device-sdk.
hi i downgraded the cmake version to 3.8 and i am able to build successfully now. Guess it was the version with cmake
from avs-device-sdk.
HI while making i am getting an exception now at following place after 82% make.
/alexa/samples/wakeWordAgent/kitt_ai/snowboy/lib/ubuntu64/libsnowboy-detect.a: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
KWD/KittAi/src/CMakeFiles/KITTAI.dir/build.make:98: recipe for target 'KWD/KittAi/src/libKITTAI.so' failed
make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
CMakeFiles/Makefile2:3639: recipe for target 'KWD/KittAi/src/CMakeFiles/KITTAI.dir/all' failed
make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Any leads regarding this?
from avs-device-sdk.
Hi @surajhes ,
This appears to be an incompatibility between the compiler/flags that were used to compile libsnowboy-detect.a and the compiler/flags that you are trying to use to build the SDK.
Your toolchain is arm-linux-gnueabihf (I'm assuming this from your previous message where this was briefly mentioned). That's a hard-float toolchain.
The libsnowboy-detect.a you are using appears to have been compiled with a different toolchain. Since Kitt.ai only provides pre-compiled binaries for their libraries, you're limited to the platforms they provide. For now, you can skip the build of wake word and contact Kitt.ai to see if they can provide a different binary compatible with your platform or try Sensory instead.
Hope that helps,
Sanjay
from avs-device-sdk.
how to skip the building of the wake word? which make file do i need to change for it?
from avs-device-sdk.
Hey @surajhes,
So sorry for the delay! To skip building wake word you can just modify the CMake command you originally used to remove the -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=... -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=...
part
from avs-device-sdk.
Hi @sanjayrd ,
While performing Build the SDK task and after entering below mentioned command I am getting errors.Please help me regarding this,
cd /home/pi/sdk-folder/sdk-build
cmake /home/pi/sdk-folder/sdk-source/avs-device-sdk
-DSENSORY_KEY_WORD_DETECTOR=ON
-DSENSORY_KEY_WORD_DETECTOR_LIB_PATH=/home/pi/sdk-folder/third-party/alexa-rpi/lib/libsnsr.a
-DSENSORY_KEY_WORD_DETECTOR_INCLUDE_DIR=/home/pi/sdk-folder/third-party/alexa-rpi/include
-DGSTREAMER_MEDIA_PLAYER=ON
-DPORTAUDIO=ON
-DPORTAUDIO_LIB_PATH=/home/pi/sdk-folder/third-party/portaudio/lib/.libs/libportaudio.a
-DPORTAUDIO_INCLUDE_DIR=/home/pi/sdk-folder/third-party/portaudio/include
ERROR:
Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.52.1")
CMake Error at AVSCommon/AVS/test/CMakeLists.txt:6 (discover_unit_tests):
Unknown CMake command "discover_unit_tests".
-- Configuring incomplete, errors occurred!
See also "/home/pi/sdk-folder/sdk-build/CMakeFiles/CMakeOutput.log".
from avs-device-sdk.
Related Issues (20)
- gtest error during sampleapp build HOT 1
- Another "Failed to create SampleApplication" HOT 1
- Skill cant run on uncertified device HOT 1
- Saved configuration file after that it not loading configuration built complete i tried the ls command and there is no sampleapp.sh file
- Is there is any support for avs sdk integration for free RTOS ?
- Issue with Installation - Stuck at Building DefaultClient and DefaultClientBuilder HOT 2
- Failed to create SampleApplication - Alexa install Raspberry HOT 1
- Music Fails to Play - `dialogRequestId` mismatch when using voice command from phone to SampleApp
- The process of getting wakeword library PryonLite v2.18.0
- Alexa App latest update for FireHD 10 Tablets - BUGS HOT 8
- How to install alexa in raspberry pi zero w. I am unable to install pls help me on this
- Torie2
- MAZONLITE_KEY_WORD_DETECTOR or AMAZON_KEY_WORD_DETECTOR.
- Auth state does not update in expired state
- SampleApp compilation errors HOT 1
- I didnt get it, Internet is not reachable
- Error When Building SDK. "[21%] Linking CXX executable AlertSchedulerTest" HOT 1
- Raspberry Pi3 B+ avs Build Fail 93%
- Raspberry Pi3 B+ avs Build Fail 93%
- 14%] Linking CXX executable InMemoryCommunicationInvokeHandlerTest HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avs-device-sdk.