Hello, I'm encountering a problem during the build of the stable OpenSceneGraph 3.0.1 release for Android under Arch Linux 64. I'm using the NDK r8d Arch community package (https://aur.archlinux.org/packages.php?ID=27656) if it's of relevance.
I'm building the project as recommended in Jorge's guide thereafter: http://www.openscenegraph.com/index.php/documentation/platform-specifics/android/44-building-openscenegraph-for-android-3-0-3-0-1. I use ccmake to set the options (was getting weird build errors with cmake-gui). Also it may not be related but in order to bypass an early build error I added the following line to the AndroidManifest.xml generated by cmake : <uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17"/> . The compilation of OSG runs fine for a while but eventually fails. Here is the final output of make: ... Compile++ thumb : osgViewer <= ScreenCaptureHandler.cpp In file included from /home/mat/dev/tools/OpenSceneGraph-3.0.1/include/osgViewer/api/X11/PixelBufferX11:23:0, from /home/mat/dev/tools/OpenSceneGraph-3.0.1/src/osgViewer/PixelBufferX11.cpp:19: /home/mat/dev/tools/OpenSceneGraph-3.0.1/include/osgViewer/api/X11/GraphicsHandleX11:22:23: fatal error: X11/X.h: No such file or directory compilation terminated. make[3]: *** [obj/local/armeabi/objs/osgViewer/PixelBufferX11.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from /home/mat/dev/tools/OpenSceneGraph-3.0.1/include/osgViewer/api/X11/GraphicsWindowX11:23:0, from /home/mat/dev/tools/OpenSceneGraph-3.0.1/src/osgViewer/GraphicsWindowX11.cpp:22: /home/mat/dev/tools/OpenSceneGraph-3.0.1/include/osgViewer/api/X11/GraphicsHandleX11:22:23: fatal error: X11/X.h: No such file or directory compilation terminated. make[3]: *** [obj/local/armeabi/objs/osgViewer/GraphicsWindowX11.o] Error 1 make[2]: *** [Android-OpenSceneGraph] Erreur 2 make[1]: *** [CMakeFiles/ndk.dir/all] Erreur 2 make: *** [all] Erreur 2 I don't really know where to look to fix this because of course /usr/include/X11 is populated with all the required headers. Those two entries from osg-users relate to my error but did not help so far: https://groups.google.com/forum/#!searchin/osg-users/X11$2FX.h$20android/osg-users/zQr2IW_aGwA/7HSC43mqaDoJ https://groups.google.com/forum/#!searchin/osg-users/X11$2FX.h$20android/osg-users/TW_ldEqCx4g/DLaaZKEyZPsJ Has anyone any idea about how to solve this issue? Thanks in advance. Mathias
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

