-
Notifications
You must be signed in to change notification settings - Fork 605
issues while performing cmake #43
Comments
Can you provide us with the cmake command you used so we can dig into the issue a bit more? |
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 |
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: |
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 |
Sorry, I may be misunderstanding but why do you have the extra |
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 |
I'm still confused why you have the |
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. |
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? |
I tried without the output directory too and still getting the error. As a work around i have commented the following line |
Hmm odd. One more question, if you do |
cmake version 3.9.0-rc5 |
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 |
Sure i can try that. but before doing that changes, can you help me with one more issue? I am getting the following error : Are both the issues inter-related? |
hi i downgraded the cmake version to 3.8 and i am able to build successfully now. Guess it was the version with cmake |
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 Any leads regarding this? |
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, |
how to skip the building of the wake word? which make file do i need to change for it? |
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 |
Hi @sanjayrd , ERROR: Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.52.1") -- Configuring incomplete, errors occurred! |
HI i was trying to perform cmake in the new build directory and following the steps to make a generic Linux Build and i am trying with KItt.ai model. While performing the cmake i am getting following error inspite of providing correct parameters for Kitt.ai Following is the error i am getting
Creating the build directory for the AlexaClientSDK with build type: DEBUG
Creating AlexaClientSDK with keyword detector type: KittAi
CMake Error at /usr/local/share/cmake-3.9/Modules/GoogleTest.cmake:127 (if):
if given arguments:
Unknown arguments specified
Call Stack (most recent call first):
tools/Testing.cmake:22 (GTEST_ADD_TESTS)
AVSCommon/AVS/test/CMakeLists.txt:2 (discover_unit_tests)
-- Configuring incomplete, errors occurred!
The text was updated successfully, but these errors were encountered: