Menu

Building Pocketsphinx-android error Really need Help !!!!

Help
Ted
2014-12-27
2014-12-29
  • Ted

    Ted - 2014-12-27

    Dear all

    I need to rebuild pocketsphinx-android because of some application.

    I follow the step of http://cmusphinx.sourceforge.net/wiki/tutorialandroid

    My computer enviroment: Windows 8.1 64-bit / jdk 1.8

    There are Steps which I did.

    1. Download the swigwin 3.0.2(for Windows) version and unzip it.

    2. Download the latest version of Apache ant and also unzip it. Also I set the system enviroment variables in windwos.

    3. Download the latest version of Android SDK/NDK for windows 64bits and unzip these.

    4. Download Pocketsphinx-android / pocketsphinx / sphinxbase and place them on the same root.
      Here is the problem, Should I use MS Visual Studio to compile them(pocketsphinx/sphinxbase) ?
      I had compiled it.

    5. I create a file named build.properties in pocketsphinx-android,
      and set the following parameters in this file

      ( "C:/tool" <- the path where I place the Android SDK/NDK )
      sdk.dir=C:/tool/Android-SDK
      ndk.dir=C:/tool/Android-NDK
      sdk.version=19

    6. The final step, I use windows cmd and cd to the directory of pocketsphinx-android
      Then, run "ant jar"

      There are some error.

      Execute failed: java.io.IOException: Cannot run program "C:\tool\android-ndk-r10d\ndk-build": Create Process error=193, %1 not a valid win32 application.

      Should I use Cygwin to build it ?

      Those Step can finish in windows not Linux, right?

      Can someone tell me what the problem is, plz

      I really need to solve this problem, and I can do some task after solve it.

      Thanks a lot !!!!!!!!!!!!

     

    Last edit: Ted 2014-12-27
    • Nickolay V. Shmyrev

      Here is the problem, Should I use MS Visual Studio to compile them(pocketsphinx/sphinxbase) ?

      No, you do not need to build neither pocketsphinx nor sphinxbase

      Execute failed: java.io.IOException: Cannot run program "C:\tool\android-ndk-r10d\ndk-build": Create Process error=193, %1 not a valid win32 application.

      You might want to edit build.xml to call ndk-build.cmd with cmd extension instead of ndk-build. Then it should work.

      Should I use Cygwin to build it ?

      No

       

      Last edit: Nickolay V. Shmyrev 2014-12-27
    • Alexander Solovets

      Because ndk-build is sh script, not a native Windows binary. You need
      to figure out how to build Android libraries in Windows, or, as you
      said it right, use one of the wrappers like cygwin or mingw.

      On Sat, Dec 27, 2014 at 6:54 PM, Ted max2003xp@users.sf.net wrote:

      Dear all

      I need to rebuild pocketsphinx-android because of some application.

      I follow the step of http://cmusphinx.sourceforge.net/wiki/tutorialandroid

      My computer enviroment: Windows 8.1 64-bit / jdk 1.8

      There are Steps which I did.

      1. Download the swigwin 3.0.2(for Windows) version and unzip it.

      2. Download the latest version of Apache ant and also unzip it. Also I set the system enviroment variables in windwos.

      3. Download the latest version of Android SDK/NDK for windows 64bits and unzip these.

      4. Download Pocketsphinx-android / pocketsphinx / sphinxbase and place them on the same root.
        Here is the problem, Should I use MS Visual Studio to compile them(pocketsphinx/sphinxbase) ?
        I had compiled it.

      5. I create a file named build.properties in pocketsphinx-android,
        and set the following parameters in this file

        ( "C:/tool" <- the path where I place the Android SDK/NDK )
        sdk.dir=C:/tool/Android-SDK
        ndk.dir=C:/tool/Android-NDK
        sdk.version=19

      6. The final step, I use windows cmd and cd to the directory of pocketsphinx-android
        Then, run "ant jar"

        There are some error.

        Execute failed: java.io.IOException: Cannot run program "C:\tool\android-ndk-r10d\ndk-build": Create Process error=193, %1 not a valid win32 application.

        Should I use Cygwin to build it ?

        Can someone tell me what the problem is, plz

        I really need to solve this problem, and I can do some task after solve it.

        Thanks a lot !!!!!!!!!!!!


      Building Pocketsphinx-android error Really need Help !!!!


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/cmusphinx/discussion/help/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

      --
      Sincerely, Alexander

       
  • Ted

    Ted - 2014-12-27

    It finally can run.

    Thanks u very much!

     

Log in to post a comment.

MongoDB Logo MongoDB