Hi Rafa,

I have just starting looking at your Android submission.  My first
observation is that you've created an OpenSceneGraph/android
directory.  I have no objection to having a new directory, but would
it be possible to place this in
OpenSceneGraph/PlatformSpecifics/android?

Robert.

On Mon, Mar 7, 2011 at 11:53 AM, Rafa Gaitan <[email protected]> wrote:
> Hi,
>
> Finally Jorge and me have finished a first approach to build OSG under
> Android using the android NDK.
>
> Attached you will find all required code and cmake modifications (They
> are based on a previous submissions I sent last week).
>
> Some considerations:
> - Android implements a pthread version, we made some modifications in
> OpenThreads, but the most relevant are the renaming of .c++ extension
> to .cpp, Android NDK doesn't support build files with different
> extension (all .c++ or all .cpp but not mixing them), so we changed it
> to .cpp (svn move if you accept the submission).
>
> - In order to build against GLES1 we execute:
> $ mkdir build_android_gles1
> $ cd build_android_gles1
> $ cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF
> -DDYNAMIC_OPENSCENEGRAPH=OFF -DANDROID_NDK=<path_to_android_ndk>/
> -DOSG_GLES1_AVAILABLE=ON -DOSG_GL1_AVAILABLE=OFF
> -DOSG_GL2_AVAILABLE=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DJ=2
> -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF
> $ make
>  If all is correct you will have and static OSG inside:
> build_android_gles1/bin/ndk/local/armeabi.
>
> - GLES2 is not tested/proved, but I think it could be possible build
> it with the correct cmake flags.
> - The flag -DJ=2 is used to pass to the ndk-build the number of
> processors to speed up the building.
> - make install is not yet supported.
>
> I think Jorge has a more advanced example that I hope he submits this week.
>
> The submission credits goes for Jorge Izquierdo and Rafa Gaitán (me).
>
> Happy Android Testing. :)
> Rafa.
>
>
> 2011/3/2 Thomas Hogarth <[email protected]>:
>> Hi Jorge
>> Downloaded the example apk 'OSG Viewer GLES1 example'. The triangle example
>> runs fine and my single touch input is working to rotate the view. I also
>> get a file saved.osgt on my sdcard containing the following
>> #Ascii Scene
>> #Version 71
>> #Generator OpenSceneGraph 2.9.11
>> I can't however get the cessna.osgt file to load. I converted the standard
>> cessna.osg using osgconv to .osgt and placed on my sdcard (same location the
>> saved.osgt file was written to), but doesn't seem to load it. Maybe I need
>> to zoom out but can't?
>> I'm running
>> Archos 43
>> Android 2.2.1
>> Latest firmware (2.1.8 I think)
>> All in all worked great, congrats on getting the demo out, lets hope the
>> code release goes as smoothly :)
>> Cheers
>> Tom
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-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-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to