My computer enviroment: Windows 8.1 64-bit / jdk 1.8
There are Steps which I did.
Download the swigwin 3.0.2(for Windows) version and unzip it.
Download the latest version of Apache ant and also unzip it. Also I set the system enviroment variables in windwos.
Download the latest version of Android SDK/NDK for windows 64bits and unzip these.
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.
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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
My computer enviroment: Windows 8.1 64-bit / jdk 1.8
There are Steps which I did.
Download the swigwin 3.0.2(for Windows) version and unzip it.
Download the latest version of Apache ant and also unzip it. Also I set the system enviroment variables in windwos.
Download the latest version of Android SDK/NDK for windows 64bits and unzip these.
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.
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
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.
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.
Download the swigwin 3.0.2(for Windows) version and unzip it.
Download the latest version of Apache ant and also unzip it. Also I set the system enviroment variables in windwos.
Download the latest version of Android SDK/NDK for windows 64bits and unzip these.
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.
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
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
No, you do not need to build neither pocketsphinx nor sphinxbase
You might want to edit build.xml to call ndk-build.cmd with cmd extension instead of ndk-build. Then it should work.
No
Last edit: Nickolay V. Shmyrev 2014-12-27
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:
--
Sincerely, Alexander
It finally can run.
Thanks u very much!