Giter Club home page Giter Club logo

Comments (4)

charleschen84 avatar charleschen84 commented on June 14, 2024

The file "/home/king/Project/DB20_Linux/AVS/snowboy-master/lib/ubuntu64/libsnowboy-detect.a" is for arch-x86.
If you are using arm paltform, i think you should use "/home/king/Project/DB20_Linux/AVS/snowboy-master/lib/rpi/libsnowboy-detect.a" instead of......

from avs-device-sdk.

sanjayrd avatar sanjayrd commented on June 14, 2024

Hi @boyce-xx,

  1. Yes, as of 0.4 (the current version), only Kitt.ai is supported. We plan on releasing Sensory support as well in 0.4.1 which should be coming out very soon, most likely early next week.

  2. I suspect you're using the wrong library compatible version of Kitt.ai. Kitt.ai only releases their library in binary form, so you're limited by the versions they offer. Perhaps contact their team if you want something more specific to your needs? They have the following versions available publicly: https://github.com/Kitt-AI/snowboy/tree/master/lib. What platform are you trying to compile for?

from avs-device-sdk.

boyce-xx avatar boyce-xx commented on June 14, 2024

@charleschen84 yes, I'm using arm platform, this is my info:

/ # uname -a
Linux apq8009 3.18.44 #1 SMP PREEMPT Fri Jun 2 09:11:05 CST 2017 armv7l GNU/Linux

and I have tried to cmake with rpi library, but got an another issue:

  1. lib/rpi/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

from avs-device-sdk.

boyce-xx avatar boyce-xx commented on June 14, 2024

Hi @sanjayrd , thanks for your quickly response, my platform is:

/ # uname -a
Linux apq8009 3.18.44 #1 SMP PREEMPT Fri Jun 2 09:11:05 CST 2017 armv7l GNU/Linux

my cross-compiler is:

king@wks:~/Project/DB20_Linux/AVS/Alexa_Make$ /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ --version
arm-linux-gnueabi-g++ (Linaro GCC 6.3-2017.02) 6.3.1 20170109
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and I have tried all of those libraries to make, none of those is works:

  1. lib/aarch64-ubuntu1604/libsnowboy-detect.a
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/aarch64-ubuntu1604/libsnowboy-detect.a: error adding symbols: File format not recognized
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  2. lib/android/armv7a/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  3. lib/android/armv8-aarch64/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/android/armv8-aarch64/libsnowboy-detect.a: error adding symbols: File format not recognized
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  4. lib/edison/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/edison/libsnowboy-detect.a(snowboy-detect.o): Relocations in generic ELF (EM: 3)
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/edison/libsnowboy-detect.a(snowboy-detect.o): Relocations in generic ELF (EM: 3)
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/edison/libsnowboy-detect.a(snowboy-detect.o): Relocations in generic ELF (EM: 3)
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/edison/libsnowboy-detect.a(snowboy-detect.o): Relocations in generic ELF (EM: 3)
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/edison/libsnowboy-detect.a: error adding symbols: File in wrong format
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  5. lib/fedora25-armv7/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  6. lib/ios/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/ios/libsnowboy-detect.a: file not recognized: File format not recognized
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  7. lib/osx/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  8. lib/pine64/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/pine64/libsnowboy-detect.a: error adding symbols: File format not recognized
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  9. lib/rpi/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/6.3.1/../../../../arm-linux-gnueabi/bin/ld: cannot find -lblas
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

  10. lib/ubuntu64/libsnowboy-detect.a
    [ 80%] Built target KWD
    [ 81%] Built target AbstractKeywordDetectorTest
    [ 82%] Linking CXX shared library libKITTAI.so
    /home/king/Project/DB20_Linux/AVS/snowboy-master/lib/ubuntu64/libsnowboy-detect.a: error adding symbols: File format not recognized
    collect2: error: ld returned 1 exit status
    make[2]: *** [KWD/KittAi/src/libKITTAI.so] Error 1
    make[1]: *** [KWD/KittAi/src/CMakeFiles/KITTAI.dir/all] Error 2
    make: *** [all] Error 2

so, you're right, I must contact KITT team regarding how to get a specific library.
thank you.

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.