android-ndk-r5

Android NDK r5b external build and supc++ link problem

▼魔方 西西 提交于 2019-12-09 05:43:29
问题 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

JNI_OnLoad not found

左心房为你撑大大i 提交于 2019-12-07 11:41:53
问题 I started android application development and followed this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ but the application didn't work. I debug it and the log cat show this message: JNI_Onload not found..how can I solve this problem? Thanks 回答1: The main purpose of the JNI_OnLoad function is to register all of your native methods. This is the recommended, but not the only, approach. Thus providing a JNI_OnLoad function is optional . Because it is used

Bambuser ffmpeg - “arm-linux-androideabi-gcc is unable to create an executable file.”

我们两清 提交于 2019-12-07 01:27:32
问题 I know this may be possible duplicate of some questions. but answers for those threads are not helping me. I am trying to compile ffmpeg library for android using Bambuser's ffmpeg. I downloaded Archive for client versions 1.3.7 to 1.6.0. from bambuser. I followed instruction given in REAME. While running ./build.sh i came across following error arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are

Replacement for `__system_property_get` in Android L NDK

狂风中的少年 提交于 2019-12-06 02:40:33
问题 As of the Android L NDK, __system_property_get is removed (https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/keQP6L9aVyU). Is there another API in the Android L NDK to access the same property values? 回答1: I went with popen as detailed in the answer at https://stackoverflow.com/a/478960/2833126 to run getprop . Something like std::string command = "getprop ro.product.model"; FILE* file = popen(command.c_str(), "r"); if (!file) { // error } // read the property value from

Android.mk vs Application.mk

淺唱寂寞╮ 提交于 2019-12-05 09:47:07
问题 I'm a little fuzzy about the use of Android.mk & Application.mk I've tried reading APPLICATION-MK.HTML & ANDROID-MK.HTML in the documentation that comes with NDK, but still confused about the purpose of two makefiles. I'll be really grateful to anyone who could help me understand this. 回答1: Each module requires one and only one Android.mk. If all you ever have is one module in your native application, the Application.mk is redundant (however there are a few things that can only be controlled

Bambuser ffmpeg - “arm-linux-androideabi-gcc is unable to create an executable file.”

江枫思渺然 提交于 2019-12-05 05:07:28
I know this may be possible duplicate of some questions. but answers for those threads are not helping me. I am trying to compile ffmpeg library for android using Bambuser's ffmpeg. I downloaded Archive for client versions 1.3.7 to 1.6.0. from bambuser. I followed instruction given in REAME. While running ./build.sh i came across following error arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user

How link with static boost libraries for android?

百般思念 提交于 2019-12-04 16:14:31
问题 I have problem porting and linking the boost libraries to android using Android-ndk-r5b. I build boost libraries first (without mpi, python) using these steps: 1.commented line 53 in boost_1_46_0\libs\thread\build: # if [ os.name ] = "NT" { api = win32 ; } 2. create the file user-config.jam in boost root directory androidNDKRoot = ../android-ndk-r5b ; using gcc : android4.4.3 : $(androidNDKRoot)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++.exe : -

android external/stlport include in Android.mk build not successfull

笑着哭i 提交于 2019-12-04 16:04:57
I m trying to build an app with android-froyo source in which I am using skia and stl templates, I have included MY_INCLUDES=external/zlib external/jpeg external/freetype/include \ frameworks/base/core/jni/android/graphics external/skia/include/core \ external/libpng external/expat/lib <b>external/stlport/stlport</b> libstlport_cflags := -D_GNU_SOURCE libstlport_cppflags := -fuse-cxa-atexit LOCAL_CPPFLAGS := $(libstlport_cppflags) include $(BUILD_STATIC_LIBRARY) I get the following error when i try to build the android source with this app, which i kept at packages/apps: external/stlport

Android.mk vs Application.mk

你离开我真会死。 提交于 2019-12-03 22:23:21
I'm a little fuzzy about the use of Android.mk & Application.mk I've tried reading APPLICATION-MK.HTML & ANDROID-MK.HTML in the documentation that comes with NDK , but still confused about the purpose of two makefiles. I'll be really grateful to anyone who could help me understand this. Each module requires one and only one Android.mk. If all you ever have is one module in your native application, the Application.mk is redundant (however there are a few things that can only be controlled by the Application.mk if you veer from default behavior). However, if you have many modules, ergo many

configure does not recognize androideabi

我的未来我决定 提交于 2019-12-03 18:28:41
问题 I am trying to compile a library using android-ndk-r5 standalone toolchain and autotools. When doing a ./configure, it fails with: $ ./configure --host=arm-linux-androideabi ...snip... checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized configure: error: /bin/sh ./config.sub arm-linux-androideabi failed Explicitly setting CC and CXX does not work either (configure says to use --host). The NDK docs and various materials online seems