[osg-users] [build] Building OSG for Android -- Windowing system issue
michael kapelko
kornerr at gmail.com
Thu Apr 27 20:54:23 PDT 2017
Hi.
I tried to use android.toolchain.cmake, too, but that requires
configuration and building outside AndroidStudio. I ended up simply
including OSG as 'add_subdirectory' into native-lib's CMakeLists.txt that
AndroidStudio creates. That way, OSG is built as a dependency whenever
native-lib is built. Such approach removes the need for doing anything
outside AndroidStudio, referencing external toolchain file, and you get OSG
built for those ABIs that you specified in 'abiFilters'.
I plan to publish Android tutorial with the mentioned approach next week.
2017-04-27 4:43 GMT+07:00 Brett Haines <bhaines418 at gmail.com>:
> Thank you for the links Kornerr -- I'll definitely be keeping an eye on
> that.
>
> I did figure out that my issue was not using the toolchain file in the
> OpenSceneGraph repo. Adding the following option to CMake got it going:
>
>
> Code:
>
> -D CMAKE_TOOLCHAIN_FILE=$BASEDIR/openscenegraph/
> PlatformSpecifics/Android/android.toolchain.cmake
>
>
>
>
> I also had to remove the lines that specified my C and C++ compilers. For
> whatever reason, setting those manually caused CMake to not find them.
>
> Cheers,
> Brett
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70844#70844
>
>
>
>
>
> _______________________________________________
> 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/20170428/3184f509/attachment-0002.htm>
More information about the osg-users
mailing list