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 <[email protected]>: > 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 > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

