<div dir="ltr"><div><div>Hi.<br><br></div>I've just published Android tutorial: <a href="https://github.com/OGStudio/openscenegraph-cross-platform-guide/tree/master/1.8.SampleUnderAndroid">https://github.com/OGStudio/openscenegraph-cross-platform-guide/tree/master/1.8.SampleUnderAndroid</a><br><br></div>If you have any questions or ideas, I'd be glad to hear from you.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-28 10:54 GMT+07:00 michael kapelko <span dir="ltr"><<a href="mailto:kornerr@gmail.com" target="_blank">kornerr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi.<br></div>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'.<br><br>I plan to publish Android tutorial with the mentioned approach next week.<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-04-27 4:43 GMT+07:00 Brett Haines <span dir="ltr"><<a href="mailto:bhaines418@gmail.com" target="_blank">bhaines418@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for the links Kornerr -- I'll definitely be keeping an eye on that.<br>
<br>
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:<br>
<br>
<br>
Code:<br>
<br>
-D CMAKE_TOOLCHAIN_FILE=$BASEDIR/<wbr>openscenegraph/PlatformSpecifi<wbr>cs/Android/android.toolchain.<wbr>cmake<br>
<br>
<br>
<br>
<br>
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.<br>
<br>
Cheers,<br>
<span>Brett<br>
<br>
------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=70844#70844" rel="noreferrer" target="_blank">http://forum.openscenegraph.or<wbr>g/viewtopic.php?p=70844#70844</a><br>
<div class="m_1172162453118967487HOEnZb"><div class="m_1172162453118967487h5"><br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph<wbr>.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.or<wbr>g/listinfo.cgi/osg-users-opens<wbr>cenegraph.org</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>