Hi Mike,

You don't mention which OSG version you are using.  The latest OSG in
svn/trunk will be the best one to use, and provides some extra convenience
methods in the CMake build system to helping configure for different
targets.

Robert.


On 6 August 2014 22:15, Mike Strean <[email protected]> wrote:

> Hi! all
>
> I've previously ( several months ago ) had success compiling for Android
> ... with the latest source I get
>
>
> Code:
> /usr/local/src/build-android/include/osg/GL:107:32: fatal error:
> TargetConditionals.h: No such file or directory
>
>
>
> commenting out the #include for TargetConditionals.h gets me
>
>
> Code:
> /usr/local/src/build-android/include/osg/GL:108:29: fatal error:
> OpenGLES/ES2/gl.h: No such file or directory
>
>
>
> I'm on OS X 10.9.4 compiling for GLES2 with
>
>
> Code:
> cmake ../OpenSceneGraph -DOSG_BUILD_PLATFORM_ANDROID=ON
> -DANDROID_NDK=/Users/mike/Development/android-ndk -DDYNAMIC_OPENTHREADS=OFF
> -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL1_AVAILABLE=OFF
> -DOSG_GL2_AVAILABLE=OFF -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=OFF
> -DOSG_GLES2_AVAILABLE=ON -DOSG_GL_LIBRARY_STATIC=OFF
> -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=OFF
> -DOSG_GL_VERTEX_FUNCS_AVAILABLE=OFF
> -DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=OFF
> -DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF -DANDROID_ABI="armeabi armeabi-v7a"
> -DANDROID_PLATFORM=16 -DANDROID_STL="gnustl_static" -DANDROID_OPTIM=NEON
> -DANDROID_OPTIM=ARM32 -DJ=4 -DCMAKE_INSTALL_PREFIX=/usr/local/android
>
>
>
>
> Thanks!
>
> --
> Mike
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60572#60572
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to