X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=cross-compile%2Fandroid%2Fsigrok-cross-android;h=7cd2c34ebed9d47d3dba590d4377f1c606f323b8;hb=25b2b9f572ca674534827039490626ad51c35aaa;hp=eee624634b878676f4e6821640bef1250c510696;hpb=d4069d6e43094826fa2e35e4bf073d82abe7988a;p=sigrok-util.git diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index eee6246..7cd2c34 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -2,7 +2,7 @@ ## ## This file is part of the sigrok-util project. ## -## Copyright (C) 2013 Uwe Hermann +## Copyright (C) 2013-2014 Uwe Hermann ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ set -e # The path where the Android NDK is located. -ANDROID_NDK=$HOME/android/android-ndk-r9d +ANDROID_NDK=$HOME/android/android-ndk-r10c # The path where the Android SDK is located. ANDROID_SDK=$HOME/android/android-sdk-linux @@ -91,7 +91,7 @@ cd $BUILDDIR # Build host Python before we start messing with the environment. # Don't do parallel builds, this doesn't seem to work well. $WGET http://python.org/ftp/python/$VER_PYTHON/Python-$VER_PYTHON.tar.xz -tar xJf Python-$VER_PYTHON.tar.xz +tar xfJ Python-$VER_PYTHON.tar.xz cd Python-$VER_PYTHON ./configure make python @@ -180,7 +180,7 @@ cd ../.. # zlib (needed for glib and libzip) $WGET http://zlib.net/zlib-$VER_ZLIB.tar.gz -tar xfvz zlib-$VER_ZLIB.tar.gz +tar xfz zlib-$VER_ZLIB.tar.gz cd zlib-$VER_ZLIB # Note: zlib's configure doesn't understand --host, we need to pass $CC. CC=$TOOLCHAIN_TRIPLET-gcc ./configure --prefix=$PREFIX @@ -190,7 +190,7 @@ cd .. # pcre (needed for glib) $WGET ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$VER_PCRE.tar.gz -tar xfvz pcre-$VER_PCRE.tar.gz +tar xfz pcre-$VER_PCRE.tar.gz cd pcre-$VER_PCRE ./configure $C --disable-cpp make $PARALLEL @@ -208,7 +208,7 @@ cd .. # glib (needed for libsigrok) $WGET http://ftp.gnome.org/pub/gnome/sources/glib/$VER_GLIB_SHORT/glib-$VER_GLIB.tar.xz -tar xJf glib-$VER_GLIB.tar.xz +tar xfJ glib-$VER_GLIB.tar.xz cd glib-$VER_GLIB ./autogen.sh # Note: Manual LDFLAGS/CPPFLAGS needed for libiconv, rest uses pkg-config. @@ -251,10 +251,12 @@ cd .. $GIT_CLONE git://sigrok.org/libserialport cd libserialport ./autogen.sh -./configure $C +mkdir build +cd build +../configure $C make $PARALLEL V=1 make install -cd .. +cd ../.. # Build dependencies for libsigrok bindings if needed @@ -262,7 +264,7 @@ if [ x"$CPPFLAGS_STL" != x ]; then # libsigc++ (needed for glibmm) $WGET http://ftp.gnome.org/pub/gnome/sources/libsigc++/$VER_LIBSIGCXX_SHORT/libsigc++-$VER_LIBSIGCXX.tar.xz - tar xJf libsigc++-$VER_LIBSIGCXX.tar.xz + tar xfJ libsigc++-$VER_LIBSIGCXX.tar.xz cd libsigc++-$VER_LIBSIGCXX cp -f ../config/config.guess build cp -f ../config/config.sub build @@ -273,7 +275,7 @@ if [ x"$CPPFLAGS_STL" != x ]; then # glibmm (needed for libsigrok bindings) $WGET http://ftp.gnome.org/pub/gnome/sources/glibmm/$VER_GLIB_SHORT/glibmm-$VER_GLIB.tar.xz - tar xJf glibmm-$VER_GLIB.tar.xz + tar xfJ glibmm-$VER_GLIB.tar.xz cd glibmm-$VER_GLIB CPPFLAGS="$CPPFLAGS_STL" LDFLAGS="$LDFLAGS_STL -lgnustl_shared" ./configure $C make $PARALLEL @@ -286,28 +288,34 @@ fi $GIT_CLONE git://sigrok.org/libsigrok cd libsigrok ./autogen.sh -CPPFLAGS="$CPPFLAGS_STL" LDFLAGS="$LDFLAGS_STL" ./configure $C $BINDINGS_CONFIG --datadir=/sdcard +mkdir build +cd build +CPPFLAGS="$CPPFLAGS_STL" LDFLAGS="$LDFLAGS_STL" ../configure $C $BINDINGS_CONFIG --datadir=/sdcard make $PARALLEL V=1 make datadir='$(datarootdir)' install -cd .. +cd ../.. # libsigrokdecode $GIT_CLONE git://sigrok.org/libsigrokdecode cd libsigrokdecode ./autogen.sh -./configure $C +mkdir build +cd build +../configure $C make $PARALLEL V=1 make install -cd .. +cd ../.. # sigrok-cli $GIT_CLONE git://sigrok.org/sigrok-cli cd sigrok-cli ./autogen.sh -./configure $C +mkdir build +cd build +../configure $C make $PARALLEL V=1 make install -cd .. +cd ../.. # Check if we have all requirements to build PulseView: