Hi J-S, 2011/3/7 Jean-Sébastien Guay <[email protected]>: > Hello Rafa, > > Great work, I look forward to trying it out! > > Just to make sure I have all information: > - You build with the stock NDK r5?
As my colleague said he worked with ndk-r5b and me with the ndk-r4 crystax. > - You tested this on Linux, did you try Windows (with the Android-supported > cygwin-based toolchain)? I work in Mac and Jorge on Linux, and it is working fine on both, I don't have any Windows at home (and I live very happy :)) and I didn't made any test on that platform, but I'm quite sure that it will give some problems.. there are some build paths that are not easy to see until you test it. > - The cmake command line you gave will find the android make / gcc etc. > automatically? Or do I have to set up my PATH and symlink arm-eabi-make, > arm-eabi-gcc etc to make, gcc etc. so that the CMake generated makefiles > find them first? The cmake command looks for the Android NDK. There is a FindAndroidNDK.cmake module to do the search, anyway, if it is not in the proposed paths, you can set it using -DANDROID_NDK=<path_to_android_ndk>. The way we made our approach to build against the ndk is use the google's ndk-build tool (so we are ndk independent). CMake configures a set of Android.mk.in files and finally it launchs ndk-build. > >> If all is correct you will have and static OSG inside: >> build_android_gles1/bin/ndk/local/armeabi. > > Did you try building shared libraries? In my (admittedly short) testing, the > application link time was very long (sometimes upwards of 45 seconds) when > linking to static OSG libs, building dynamic libs would improve the > iteration speed a lot (and from what I've read it should be possible). Not yet, We have left open the possibility to do it, but not many time to test or even prove it. Anyway, once you have the .apk built, I'm not sure how external dependencies of native libraries can be found, in Java/JNI and desktop OS' it's a pain setting always the PATH, LD_LIBRARY_PATH or DYLD_LIBRARY_PATH, maybe in android is more easy. Greets, Rafa. > > Thanks a lot for all your hard work! > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > -- Rafael Gaitán Linares Instituto de Automática e Informática Industrial http://www.ai2.upv.es http://gvsig3d.blogspot.com Ciudad Politécnica de la Innovación Universidad Politécnica de Valencia _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
