[osg-users] [build] osgviewer build failed for Android

Kebo Wang mep_ at 163.com
Sat Apr 23 07:46:30 PDT 2011


Hi,

    I try to build osg for android on ubuntu 11.04. After getting svn trunk and cmake using opengl-es 2 following wiki page for platform specific for android and setting for opengl-es 2.
  the building processing worked great for a some time, then it complain the following while compiling osgviewer:


Code:

Compile++ thumb  : osgViewer <= ViewerEventHandlers.cpp
Compile++ thumb  : osgViewer <= GraphicsWindowX11.cpp
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:23,
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:22:23: error: X11/X.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:23:26: error: X11/Xlib.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:24:27: error: X11/Xutil.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:25:25: error: EGL/egl.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:31:21: error: X11/Xmd.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:32:24: error: X11/keysym.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:33:28: error: X11/cursorfont.h: No such file or directory
Compile++ thumb  : osgViewer <= PixelBufferX11.cpp
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:23,
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/PixelBufferX11.cpp:19:
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:22:23: error: X11/X.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:23:26: error: X11/Xlib.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:24:27: error: X11/Xutil.h: No such file or directory
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:25:25: error: EGL/egl.h: No such file or directory
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:23,
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:53: error: 'Display' has not been declared
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:56: error: ISO C++ forbids declaration of 'Display' with no type
......




I'm using android ndk r5b. what's wrong? am i setting wrong in cmake?

Thank you!

Cheers,
KeboWang[/code][/quote]

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








More information about the osg-users mailing list