Simple NDK example
-
- Gnoblar
- Posts: 17
- Joined: Tue Nov 28, 2017 12:19 am
Simple NDK example
The current NDK example, SampleBrowserNDK, is huge and used many other .a libraries. Does anyone have a simple, hello-world kind, NDK example for beginners to study?
-
- OGRE Team Member
- Posts: 2106
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1132
Re: Simple NDK example
the preferred way is to use the the Java bindings:
https://github.com/OGRECave/ogre/blob/v ... ivity.java
but if you want to use the lower-level NDK API you can look at the older example here:
https://github.com/OGRECave/ogre/blob/v ... ityJNI.cpp
https://github.com/OGRECave/ogre/blob/v ... ivity.java
but if you want to use the lower-level NDK API you can look at the older example here:
https://github.com/OGRECave/ogre/blob/v ... ityJNI.cpp
-
- Gnoblar
- Posts: 17
- Joined: Tue Nov 28, 2017 12:19 am
Re: Simple NDK example
My application already have JNI with native code, and I will use Ogre from the native code (instead of from Java code). So the second way looks better for my case.
Is there any instructions for the second way? Particularly, can I build an libOgre.so file (similar to libOgreJNI.so)? So I do not need to include all Ogre source files (.cpp files). The instruction here only talks about first way (i.e. calling from Java).
Is there any instructions for the second way? Particularly, can I build an libOgre.so file (similar to libOgreJNI.so)? So I do not need to include all Ogre source files (.cpp files). The instruction here only talks about first way (i.e. calling from Java).