[osg-users] Trying to understand GraphicsWindow system

michael kapelko kornerr at gmail.com
Wed Dec 20 07:21:09 PST 2017


Hi.
Depends on how you build for Android.
Here's how to build OpenSceneGraph application with Android Studio:
https://github.com/OGStudio/openscenegraph-cross-platform-guide/tree/master/1.8.SampleUnderAndroid


On 19 December 2017 at 22:31, Brett Haines <bwhaines at outlook.com> wrote:
> Hi all,
>
> I'm in the middle of building OSG for Android, but I'm having an issue when actually linking the library to another appilication.  If fails to link due to an "undefined reference to 'graphicswindow_X11'".  I tracked down why X11 is being used to the GraphicsWindow header file:
>
>
> Code:
>
> #define USE_GRAPICSWINDOW_IMPLEMENTATION(ext) \
>  extern "C" void +t(void); \
>  static osgViewer::GraphicsWindowFunctionProxy graphicswindowproxy_##ext(graphicswindow_##ext);
>
> #if defined(_WIN32)
>  #define USE_GRAPHICSWINDOW() USE_GRAPICSWINDOW_IMPLEMENTATION(Win32)
> #elif defined(__APPLE__)
>  #define USE_GRAPHICSWINDOW() USE_GRAPICSWINDOW_IMPLEMENTATION(Carbon)
> #else
>  #define USE_GRAPHICSWINDOW() USE_GRAPICSWINDOW_IMPLEMENTATION(X11)
> #endif
>
>
>
>
> Since X11 doesn't exist on Android, it seems like there isn't an option there that Android can use.  Is there something here that I am missing?
>
> Thank you,
> Brett
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72610#72610
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list