[osg-users] [build] Building OSG for Android -- Windowing system issue

michael kapelko kornerr at gmail.com
Thu May 4 10:23:17 PDT 2017


Hi.

I've just published Android tutorial:
https://github.com/OGStudio/openscenegraph-cross-platform-guide/tree/master/1.8.SampleUnderAndroid

If you have any questions or ideas, I'd be glad to hear from you.

2017-04-28 10:54 GMT+07:00 michael kapelko <kornerr at gmail.com>:

> 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/PlatformSpecifi
>> cs/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/20170505/d755f8ea/attachment-0002.htm>


More information about the osg-users mailing list