From eb9f07c7891a509e0d7cd97a9d2cd5ca0b77e188 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 15 Jul 2015 10:32:48 -0700 Subject: Android build script: minor adjustments When retrying a clean build several libraries failed to build and I finally tracked this down to the cross build tools not finding their sysroot. Also, on my main build server I have an older cmake version and one of the tools claims to require cmake 3 but I see no actual incompatibility, so I'm patching out that check. Hackish? Yes. But it seems to work. Signed-off-by: Dirk Hohndel --- packaging/android/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packaging/android/build.sh') diff --git a/packaging/android/build.sh b/packaging/android/build.sh index 2fa9a7fe6..c96f861eb 100644 --- a/packaging/android/build.sh +++ b/packaging/android/build.sh @@ -43,6 +43,11 @@ export PREFIX=${BUILDROOT}/ndk-$ARCH/sysroot/usr export PKG_CONFIG_LIBDIR=${PREFIX}/lib/pkgconfig export CC=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-gcc export CXX=${BUILDROOT}/ndk-$ARCH/bin/${BUILDCHAIN}-g++ +# autoconf seems to get lost without this +export SYSROOT=${BUILDROOT}/ndk-$ARCH/sysroot +export CFLAGS="--sysroot=${SYSROOT}" +export CPPFLAGS="--sysroot=${SYSROOT}" +export CXXFLAGS="--sysroot=${SYSROOT}" # Junk needed for qt-android-cmake export ANDROID_STANDALONE_TOOLCHAIN=${BUILDROOT}/ndk-$ARCH export JAVA_HOME=/usr @@ -205,6 +210,9 @@ else git pull -u popd fi +# hack the CMake minimum version dependency - I have seen no indication +# that this is actually correct, anyway... +sed -i "s/cmake_minimum_required/#cmake_minimum_required/ ; s/cmake_policy.SET CMP0026/#cmake_policy(SET CMP0026/" qt-android-cmake/AddQtAndroidApk.cmake # Should we build the mobile ui or the desktop ui? if [ ! -z "$SUBSURFACE_MOBILE" ] ; then -- cgit v1.2.3-70-g09d2