android-ndk-r7

OpenGLES 1.1 with FrameBuffer / ColorBuffer / DepthBuffer for Android with NDK r7b

不打扰是莪最后的温柔 提交于 2019-12-23 04:32:44
问题 After reading over the NDK docs and all my books on OpenGLES ive hit a wall. I am trying to copy my iOS OpenGLES set up to Android NDK R7 and above, mainly to get the depth buffer i overlooked earlier on when coding. The problem is i loose the textures on some objects when i enable the color buffer as seen below and the depth buffer isn't working when i send objects into the background. I am using OGLES 1.1 FFP and NDK R7 or above Here is my initialization code :- int32_t ES1Renderer:

android ndk undefined reference to a method

情到浓时终转凉″ 提交于 2019-12-12 12:49:57
问题 Hi Sorry for the long post I am trying to compile some static classes namely jsmn.c,json.c and buf.c which are part of the jsmn json library I downloaded from https://github.com/alisdair/jsmn-example/downloads. I am compiling two STATIC_LIBRARIES lib1 and json_librrary.lib1 has native code which is dependent on json_library.Then I am making two libraries into a shared library containing gnustl_static AND lib1 My folder structure is as follows jni/lib1/ANdroid.mk include $(CLEAR_VARS) LOCAL

how to use the JNI to change the fields of a java class

旧巷老猫 提交于 2019-12-12 01:08:43
问题 I am using a c native function to change the integer fields of a java class. Basically i want to see how the call by reference can be implemented using JNI. But i am getting the error "No Implementaion found for native". Can anybody help me to solve this problem. I am new to android and java. Below are the codes that i have written. If anybody can change this to satisfy what i want i will definitely appreciate him for help. java code : class myclass { int a = 1; int b = 2; public native void

Tutorials on OpenCV on Android phones [closed]

倖福魔咒の 提交于 2019-12-10 23:42:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would appreciate if anyone could show me where I can get good tutorials or documentations for developing OpenCV 2.4.3 for Android. I already gone through the one on the OpenCv site and its more of configuration and getting started but not the real code explained. I want the opencv for android codes, functions

android_app->activity->internalDataPath still NULL in 2.3.8 NDK r8

二次信任 提交于 2019-12-03 14:37:53
问题 To give spec on where i tested this, HTC Desire S, Android 2.3.5 and ndk-r8. I am having issues in ndk-r7b and in ndk-r8 accessing the local read write directories using android_app->activity->internalDataPath or externalDataPath as they are both NULL. I see that this has been posted in previous versions and an update was going to fix this according to this post:- How do I write to the internal storage file system with NativeActivity? Now perhaps this gets fixed in Ice Cream Sandwich but that

android_app->activity->internalDataPath still NULL in 2.3.8 NDK r8

▼魔方 西西 提交于 2019-12-03 03:30:58
To give spec on where i tested this, HTC Desire S, Android 2.3.5 and ndk-r8. I am having issues in ndk-r7b and in ndk-r8 accessing the local read write directories using android_app->activity->internalDataPath or externalDataPath as they are both NULL. I see that this has been posted in previous versions and an update was going to fix this according to this post:- How do I write to the internal storage file system with NativeActivity? Now perhaps this gets fixed in Ice Cream Sandwich but that's far from ideal as my tool chain supports backwards compatibility perfectly to catch those who don't

openSSL using Android's NDK problems

≯℡__Kan透↙ 提交于 2019-11-28 09:31:56
I have the following situation, I am porting a piece of an app using OpenSSL for AES encryption, I have everything compile, but the linker fails. The situation is the following: 1. I wrote a JNI wrapper that simply does : private native String cipherString(String plainData, int datasize, String password, int passSize); private native String decipherString(String cipheredData, int datasize, String password, int passSize); next I have a c++ file which I call that has the proper JNI sintax which translates jstring to char * and all other needed transformations, and makes a call to another cpp

openSSL using Android's NDK problems

大憨熊 提交于 2019-11-27 02:58:46
问题 I have the following situation, I am porting a piece of an app using OpenSSL for AES encryption, I have everything compile, but the linker fails. The situation is the following: 1. I wrote a JNI wrapper that simply does : private native String cipherString(String plainData, int datasize, String password, int passSize); private native String decipherString(String cipheredData, int datasize, String password, int passSize); next I have a c++ file which I call that has the proper JNI sintax which

JNI and Gradle in Android Studio

隐身守侯 提交于 2019-11-26 17:01:56
I'm trying to add native code to my app. I have everything in ../main/jni as it was in my Eclipse project. I have added ndk.dir=... to my local.properties . I haven't done anything else yet (I'm not sure what else is actually required, so if I've missed something let me know). When I try and build I get this error: Execution failed for task ':app:compileDebugNdk'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Users/me/android-ndk-r8e/ndk-build NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/me/Project/app/build/ndk/debug/Android.mk APP_PLATFORM=android-19 NDK

Android ICS 4.0 NDK NewStringUTF is crashing down the App

こ雲淡風輕ζ 提交于 2019-11-26 15:38:57
问题 I have a method in JNI C/C++ which takes jstring and returns back jstring some thing like as below, NATIVE_CALL(jstring, method)(JNIEnv * env, jobject obj, jstring filename) { // Get jstring into C string format. const char* cs = env->GetStringUTFChars (filename, NULL); char *file_path = new char [strlen (cs) + 1]; // +1 for null terminator sprintf (file_path, "%s", cs); env->ReleaseStringUTFChars (filename, cs); reason_code = INTERNAL_FAILURE; char* info = start_module(file_path); jstring