android-ndk-r5

Android NDK r5b external build and supc++ link problem

前提是你 提交于 2019-12-03 07:05:41
I am attempting to cross-compile our C++ code base (using CMake) for the Android platform using the r5b NDK on Ubuntu 10.10. The compile phase succeeds, however during the final link phase for the .so there are many unresolved references to symbols that are in the libsupc++.a file (which I specify to link in). I have also tried -lsupc++ with no difference. I tried to follow the command-line as closely as possible as generated by the official ndk-build system when building the test-gnustl-1 NDK test app. Running the arm-linux-androideabi-nm tool on the arm-linux-androideabi/lib/libsupc++.a file

Problems trying to build PocketSphinxAndroidDemo using NDK

两盒软妹~` 提交于 2019-11-30 10:27:36
I am trying to compile PocketSphinxAndroidDemo, which provides an example implementation of the CMU pocketsphinx speech recognizer on Android. I first received an error similar to the discussion here . After executing ndk-build, I got this error: Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile thumb : pocketsphinx_jni <= pocketsphinx_wrap.c /home/nick/workspace/android/PocketSphinxDemo/jni/pocketsphinx_wrap.c:761:28: error: sphinxbase/err.h: No such file or directory /home/nick/workspace/android/PocketSphinxDemo/jni/pocketsphinx_wrap.c

how to rewrite the Makefile into android.mk?

梦想与她 提交于 2019-11-30 04:00:20
In my new project, I need to base on a c written project. And I know that I can use the NDK to do it, but here is a question: how to rewrite the standard Makefile into the Android.mk ? And further more, in Android, can I, neglecting the ndk, build the project directly using the jni to adapt the c project into the android project? And anymore idea to adapt the c project into the android project? thx. At last, here is the Makefile: # Makefile.in generated by automake 1.10.1 from Makefile.am. # Makefile. Generated from Makefile.in by configure. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999,

Problems trying to build PocketSphinxAndroidDemo using NDK

只愿长相守 提交于 2019-11-29 15:18:10
问题 I am trying to compile PocketSphinxAndroidDemo, which provides an example implementation of the CMU pocketsphinx speech recognizer on Android. I first received an error similar to the discussion here. After executing ndk-build, I got this error: Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile thumb : pocketsphinx_jni <= pocketsphinx_wrap.c /home/nick/workspace/android/PocketSphinxDemo/jni/pocketsphinx_wrap.c:761:28: error: sphinxbase

Problems trying to build PocketSphinx for Android using NDK

血红的双手。 提交于 2019-11-29 14:19:39
问题 I'm trying to build PocketSphinx for Android using the PocketSphinxAndroidDemo project. I've given up om my quest to build it using Cygwin and Windows and installed an Ubuntu VM. I'm making progress but I seem to be stuck and I can't seem to figure it out. It has to be something simple that I'm missing. The ndk-build gives the following output (clipped): Compile thumb : pocketsphinx_jni <= pocketsphinx_wrap.c /home/user/development/PocketSphinxAndroidDemo/jni/pocketsphinx_wrap.c:760:26: error

NDK build error

五迷三道 提交于 2019-11-29 10:36:46
Hi I am new to Android NDK Development. MacBook-Pro:JNIexample sk$ ndk-build usage: dirname path gmake: /Users/sk/build/core/build-local.mk: No such file or directory gmake: *** No rule to make target `/Users/sk/build/core/build-local.mk'. Stop. Why do I get his error? So I was having the same trouble, and it looks like if I have any directory which is a part of full dir-path which has dir-name with space (' ') in between then 'ndk-build' wont be able to resolve paths. So my directory name "development tools" wasnt good enough so I changed it to "developmenttools" and it worked. If I hard-code

Unable to build GStreamer tutorials using Android Studio

纵然是瞬间 提交于 2019-11-29 07:35:42
I am trying to build the tutorials that are bundled with gstreamer-sdk-android-arm-debug-2013.6 . The Android.mk file in the src/jni directory (tutorial 1 project) references environment variables such as GSTREAMER_SDK_ROOT . From what I have read, Android Studio does not use/pass environment variables to the build scripts. Is there a best practice for modifying makefiles and for defining/retrieving the key/value pairs required by the build scripts? Ok, I have a working solution. You CAN pass environment variables to ndk-build (or any other process spawned by gradle Exec). In my case, I wanted

NDK build error

谁说我不能喝 提交于 2019-11-28 04:15:09
问题 Hi I am new to Android NDK Development. MacBook-Pro:JNIexample sk$ ndk-build usage: dirname path gmake: /Users/sk/build/core/build-local.mk: No such file or directory gmake: *** No rule to make target `/Users/sk/build/core/build-local.mk'. Stop. Why do I get his error? 回答1: So I was having the same trouble, and it looks like if I have any directory which is a part of full dir-path which has dir-name with space (' ') in between then 'ndk-build' wont be able to resolve paths. So my directory

Unable to build GStreamer tutorials using Android Studio

非 Y 不嫁゛ 提交于 2019-11-28 01:13:55
问题 I am trying to build the tutorials that are bundled with gstreamer-sdk-android-arm-debug-2013.6 . The Android.mk file in the src/jni directory (tutorial 1 project) references environment variables such as GSTREAMER_SDK_ROOT . From what I have read, Android Studio does not use/pass environment variables to the build scripts. Is there a best practice for modifying makefiles and for defining/retrieving the key/value pairs required by the build scripts? 回答1: Ok, I have a working solution. You CAN

Running ndk-gdb with package not found error on motorola phone

允我心安 提交于 2019-11-27 05:43:16
问题 I have a C++ Android application that I'm trying to debug with ndk-gdb. The application does use multiple threads, but supposedly r5 of the ndk supports multiple threads. Also, I'm not even getting to the point where gdb starts up. I run the command: ndk-gdb --start --force --verbose It then finds the proper path for the ndk and sdk (or at least adb), and the needed ABIs and whatnot. $ ndk-gdb --start --force --verbose Android NDK installation path: /home/leif/eclipse/android-ndk-r5b Using