Menu

Problems building an archive of pocketsphinx for Android

Help
2017-06-01
2017-06-01
  • Julius Morandell

    Hey,
    I tried to build an archive (aar) in Android Studio. I followed the steps descibed here: https://cmusphinx.github.io/wiki/tutorialandroid/ and installed SWIG, but when i run gradle.build i get this error:

    External Native Build Issues Build command failed. Error while executing process C:\Users\Julius\AppData\Local\Android\Sdk\cmake\3.6.3155560\bin\cmake.exe with arguments {-HD:\Julius\Ausbildung\Universitaet\Bachelorarbeit\Arbeit\App\cmu\pocketsphinx-android -BD:\Julius\Ausbildung\Universitaet\Bachelorarbeit\Arbeit\App\cmu\pocketsphinx-android\.externalNativeBuild\cmake\release\armeabi-v7a -GAndroid Gradle - Ninja -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=C:\Users\Julius\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\Julius\Ausbildung\Universitaet\Bachelorarbeit\Arbeit\App\cmu\pocketsphinx-android\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=C:\Users\Julius\AppData\Local\Android\Sdk\cmake\3.6.3155560\bin\ninja.exe -DCMAKE_TOOLCHAIN_FILE=C:\Users\Julius\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DANDROID_PLATFORM=android-14} -- Check for working C compiler: C:/Users/Julius/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- Check for working C compiler: C:/Users/Julius/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Users/Julius/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- Check for working CXX compiler: C:/Users/Julius/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done CMake Error at CMakeLists.txt:106 (add_library): Cannot find source file: build/generated-src/cpp/pocketsphinx_wrap.c Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx CMake Error: CMake can not determine linker language for target: pocketsphinx_jni -- Generating done -- Build files have been written to: D:/Julius/Ausbildung/Universitaet/Bachelorarbeit/Arbeit/App/cmu/pocketsphinx-android/.externalNativeBuild/cmake/release/armeabi-v7a.

    Does anyone have an idea, what I´m doing wrong?
    I´m quite new to programming, so please be patient ;)
    
    Thank you,
    Julius
    
     
    • Nickolay V. Shmyrev

      Swig failed to run and generate required sources. The reason for that is above the lines you posted, you should check whole output for details.

       
  • Julius Morandell

    Sorry, what exactly do you mean?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.