Archive for the ‘JNI/NDK’ Category

found solution here: http://stackoverflow.com/questions/10480858/how-to-define-same-macro-function-based-on-different-parameters

Google Android development team – you’re a bunch of whores!

Why std is so fu**ing old??????

need to write your own to_string function

string to_string (int num)
{
ostringstream convert; // stream used for the conversion

convert << num; // insert the textual representation of ‘Number’ in the characters    in the stream

return convert.str();
}

i’m looking for a UI menu for my ndk app.

found this nice project http://gameplay3d.org/

from this q&a http://stackoverflow.com/questions/15859521/ui-using-opengl-es-in-bb10

also, this looks nice: http://blogs.gnome.org/clutter/

and this http://www.cegui.org.uk/wiki/index.php/Main_Page

 

many shit here http://gamedev.stackexchange.com/questions/3617/good-gui-for-opengl

just change in your Application.mk to android-9 in the APP_PLATFORM

APP_STL = gnustl_shared
APP_CPPFLAGS = -fexceptions
APP_PLATFORM := android-9
APP_ABI := armeabi

Building Boost with NDK

Posted: May 9, 2013 in android, c++, JNI/NDK, mobile

found this nice post, I hope it works

http://www.codexperiments.com/android/2011/05/tips-tricks-building-boost-with-ndk-r5/

http://stackoverflow.com/questions/14036311/official-boost-library-support-for-android-and-ios

https://github.com/markshiz/cross-platform-tutorial

It didn’t. this is shit.


Another try:

found this nice code

https://github.com/mcxiaoke/boost-ndk

download + extract + put the “boost” dir in the same level of your android project (not inside, but in the same level).

Edit boost\tools\build\v2\user-config.jam –> change “ANDROID_NDK = E:/android/ndk ;” to ANDROID_NDK = <YOUR NDK LOCATION> ;

Final thoughts

I didn’t manage to build boost with android. Just use plain POSIX threading. Works great.

found the awsume post, going to try it

http://www.anddev.org/ndk_opengl_-_loading_resources_and_assets_from_native_code-t11978.html

Android NDK

Posted: March 19, 2013 in JNI/NDK, mobile

http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/

http://marakana.com/forums/android/examples/49.html

( i implemented the code from this tutorial. it went on pretty smooth…  its in https://bitbucket.org/mzsrtgzr/ndkdemo)

http://marakana.com/forums/android/examples/96.html

nice how to pass object from java to c and vise versa:

http://www.steveolyo.com/JNI/JNI.html

access java classes from ndk

http://bertleung.wordpress.com/2010/06/11/access-java-class-variables-from-ndk/

http://timecubepuzzle.blogspot.co.il/2012/05/development-on-android-ndk-gluing-c.html

 

nice beginner tutorial:

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/