Hello.

I'm trying to configure osg 2.9.10 for GLES 2.0 using CMake 2.8.3 for Windows 
(NOT osg 2.8.3!). I have downloaded osg 2.9.10 and the emulation libraries from 
PVRVFRAME. Certain settings shown in the wiki entry for building for OpenGL-ES 
don't show up in CMake.

(I haven't used CMake before. I got my fingers dirty modifying 
Find3rdPartyDependencies.cmake to work with osg 2.8.3 and the Windows 3rd party 
libraries distro.)

Specifically, the following settings are missing, even when the "Advanced" 
option is checked.


Code:
OSG_GLU_AVAILABLE
OPENGL_INCLUDE
OPENGL_LIBRARY



OPEN_egl_LIBRARY showed up as did the others. I set it to


Code:

OPEN_egl_LIBRARY = G:/opengl/PVRVFrame/OGLES-2.0/Windows/libEGL.lib



Very little would compile because GLES2/gl2.h couldn't be found. I had 
downloaded the necessary headers from Khronos. So instead of using 
OPENGL_INCLUDE to tell the build system were these headers were, I moved the 
GLES2 and KHR include directories to the osg source tree include directory. The 
compiler make more progress but spits out type definition conflict errors 
between GLES2.h and <BufferObject> for GLintptr and GLsizeiptr. That could be 
because I'm building on a 64 bit windows platform, even though the VS2008 
projects are configured for the x86 compiler. Instead of tracking this down 
further, it seems like a good point to stop hacking and find the source of the 
trouble. 

I searched the CMake files (CMakeList.txt and in CMakeModules) and didn't find 
OPENGL_INCLUDE anywhere. I see that OPENGL_INCLUDE_DIR is referenced in 
CMakeLists.txt but is not set anywhere.

Any help would be appreciated.

- Eric

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





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

Reply via email to