Post the Cmake command chain that you used and the OSG version. That error it's not normal and i compiled well two days ago with trunk version.<br><br><div class="gmail_quote">2011/4/23 Kebo Wang <span dir="ltr"><<a href="mailto:mep_@163.com">mep_@163.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
    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.<br>
  the building processing worked great for a some time, then it complain the following while compiling osgviewer:<br>
<br>
<br>
Code:<br>
<br>
Compile++ thumb  : osgViewer <= ViewerEventHandlers.cpp<br>
Compile++ thumb  : osgViewer <= GraphicsWindowX11.cpp<br>
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:23,<br>
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:22:23: error: X11/X.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:23:26: error: X11/Xlib.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:24:27: error: X11/Xutil.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:25:25: error: EGL/egl.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:31:21: error: X11/Xmd.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:32:24: error: X11/keysym.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:33:28: error: X11/cursorfont.h: No such file or directory<br>
Compile++ thumb  : osgViewer <= PixelBufferX11.cpp<br>
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/PixelBufferX11:23,<br>
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/PixelBufferX11.cpp:19:<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:22:23: error: X11/X.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:23:26: error: X11/Xlib.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:24:27: error: X11/Xutil.h: No such file or directory<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:25:25: error: EGL/egl.h: No such file or directory<br>
In file included from /home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsWindowX11:23,<br>
                 from /home/mep/dev/osg/OpenSceneGraph/src/osgViewer/GraphicsWindowX11.cpp:23:<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:53: error: 'Display' has not been declared<br>
/home/mep/dev/osg/OpenSceneGraph/include/osgViewer/api/X11/GraphicsHandleX11:56: error: ISO C++ forbids declaration of 'Display' with no type<br>
......<br>
<br>
<br>
<br>
<br>
I'm using android ndk r5b. what's wrong? am i setting wrong in cmake?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
KeboWang[/code][/quote]<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=38752#38752" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=38752#38752</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br>