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

Jorge Izquierdo Ciges jorizci at gmail.com
Wed Apr 27 01:59:37 PDT 2011


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.

2011/4/23 Kebo Wang <mep_ at 163.com>

> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20110427/05432784/attachment-0004.htm>


More information about the osg-users mailing list