Giter Club home page Giter Club logo

Comments (20)

sanjayrd avatar sanjayrd commented on June 3, 2024

Can you provide us with the cmake command you used so we can dig into the issue a bit more?

from avs-device-sdk.

surajhes avatar surajhes commented on June 3, 2024

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.

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

sanjayrd avatar sanjayrd commented on June 3, 2024

Sorry, I may be misunderstanding but why do you have the extra build/ in your cmake command?

from avs-device-sdk.

surajhes avatar surajhes commented on June 3, 2024

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/include

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

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

sanjayrd avatar sanjayrd commented on June 3, 2024

Hmm odd. One more question, if you do cmake --version, what do you get?

from avs-device-sdk.

surajhes avatar surajhes commented on June 3, 2024

cmake version 3.9.0-rc5

from avs-device-sdk.

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

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.

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

surajhes avatar surajhes commented on June 3, 2024

how to skip the building of the wake word? which make file do i need to change for it?

from avs-device-sdk.

sanjayrd avatar sanjayrd commented on June 3, 2024

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.

DEWANG916 avatar DEWANG916 commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.