[osg-users] Using pre-built dependencies for Android

Terry Welsh mogumbo at gmail.com
Tue Jul 7 21:55:37 PDT 2015


Hi,
Following the instructions here
http://www.openscenegraph.org/index.php/download-section/dependencies
I have downloaded the .zip and put the 3rdparty/ directory in my
OpenSceneGraph/ directory. The deps are not getting picked up by
cmake. I have also tried to set the OSG_3RDPARTY_DIR env variable,
even though that does not appear in Android instructions.

More specifically, I want to use the libpng.a included in the .zip,
but configuring with cmake tells me:
PNG_INCLUDE_DIR                 *PNG_INCLUDE_DIR-NOTFOUND

I'm trying to build this on Fedora 19 using this for cmake:
ccmake .. -DANDROID_NDK=/home/terry/sdk/android-ndk-r10d
-DCMAKE_TOOLCHAIN_FILE=../PlatformSpecifics/Android/android.toolchain.cmake
-DOPENGL_PROFILE="GLES2" -DDYNAMIC_OPENTHREADS=OFF
-DDYNAMIC_OPENSCENEGRAPH=OFF -DANDROID_NATIVE_API_LEVEL=15
-DANDROID_ABI=armeabi-v7a -DOSG_CPP_EXCEPTIONS_AVAILABLE=ON
-DCMAKE_INSTALL_PREFIX=../../..

I have also tried various ANDROID_ABI settings. Has anyone used these
deps recently and know how to make this work?
--
Terry Welsh
http://www.reallyslick.com



More information about the osg-users mailing list