After resolving all necessary dependencies and running a successful configure, 
I initiated a 'make' command from the main OpenSceneGraph-3.0.1/ directory and 
I eventually came across a conflicting typedef error (output below.)  I'm not 
really sure where to go with this next or if I should be still using some form 
of cmake command instead of just 'make'.

I'm trying to build a native android binary from a Fedora 32-bit installation. 
My android NDK is set up properly, the error suggests the compiler has had no 
problem finding my opengl es headers, so now I'm kind of stuck on what to do 
next.

Any help would be greatly appreciated, I feel like I'm missing something very 
simple here... I'd rather not have to start messing around with the typedef 
code crossing my fingrs for no runtime or compiler errors, especially 
considering android support is probably iffy at best.


for the sake of more complete information i'm using gcc-c++ 4.6.2 and mesa 
gl/gles/egl packages that are in fedora's yum repositories. 


In file included from /home/homer/OpenSceneGraph-3.0.1/include/osg/Array:34:0,
                 from /home/homer/OpenSceneGraph-3.0.1/include/osg/Uniform:22,
                 from /home/homer/OpenSceneGraph-3.0.1/include/osg/StateSet:20,
                 from /home/homer/OpenSceneGraph-3.0.1/include/osg/Node:19,
                 from /home/homer/OpenSceneGraph-3.0.1/include/osg/Group:17,
                 from /home/homer/OpenSceneGraph-3.0.1/include/osg/Transform:17,
                 from 
/home/homer/OpenSceneGraph-3.0.1/include/osg/MatrixTransform:17,
                 from 
/home/homer/OpenSceneGraph-3.0.1/src/osg/AnimationPath.cpp:14:
/home/homer/OpenSceneGraph-3.0.1/include/osg/BufferObject:84:21: error: 
conflicting declaration ‘typedef int GLintptr’
/usr/include/GLES2/gl2.h:38:26: error: ‘GLintptr’ has a previous declaration as 
‘typedef khronos_intptr_t GLintptr’
/home/homer/OpenSceneGraph-3.0.1/include/osg/BufferObject:85:21: error: 
conflicting declaration ‘typedef int GLsizeiptr’
/usr/include/GLES2/gl2.h:39:26: error: ‘GLsizeiptr’ has a previous declaration 
as ‘typedef khronos_ssize_t GLsizeiptr’
make[2]: *** [src/osg/CMakeFiles/osg.dir/AnimationPath.o] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2




CMakeLists.txt [values changed]
SET(OPENGL_INCLUDE_DIR "/usr/include/")
SET(OPENGL_LIBRARY "/usr/lib/libGLESv2.so.2")
SET(OPENGL_egl_LIBRARY "/usr/lib/libEGL.so.1")

#SET(OPENGL_egl_LIBRARY CACHE STRING "Set the OpenGL egl library.")

SET(OSG_GL_DISPLAYLISTS_AVAILABLE OFF)
SET(OSG_GL_MATRICES_AVAILABLE OFF)
SET(OSG_GL_VERTEX_FUNCS_AVAILABLE OFF)
SET(OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE OFF)
SET(OSG_GL_FIXED_FUNCTION_AVAILABLE OFF)

OPTION(OSG_CPP_EXCEPTIONS_AVAILABLE "Set to OFF to disable compile of OSG 
components that use C++ exceptions." OFF)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=45179#45179





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to