X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fandroid%2Fsigrok-cross-android;h=6b219efc49457266f46fd9db9472a08ff9070ae3;hp=1216bbc401445f2fbe1e5bb3897923b3d401caa9;hb=c8cf030a21c58846a0e5a1d5f276599c709bf737;hpb=5e5ff66a4a0cec822781fcc1fb0bf518d7b21e44 diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index 1216bbc..6b219ef 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -62,26 +62,27 @@ PARALLEL="-j 2" # ----------------------------------------------------------------------------- VER_LIBICONV=1.14 -VER_GETTEXT=0.19.5.1 +VER_GETTEXT=0.19.7 VER_ZLIB=1.2.8 -VER_PCRE=8.37 +VER_PCRE=8.38 VER_LIBFFI=3.2.1 -VER_GLIB=2.45.4 -VER_GLIB_SHORT=2.45 -VER_GLIBMM=2.45.41 -VER_GLIBMM_SHORT=2.45 -VER_LIBSIGCXX=2.5.1 -VER_LIBSIGCXX_SHORT=2.5 -VER_LIBZIP=0.11.2 +VER_GLIB=2.48.1 +VER_GLIB_SHORT=2.48 +VER_GLIBMM=2.48.1 +VER_GLIBMM_SHORT=2.48 +VER_LIBSIGCXX=2.9.2 +VER_LIBSIGCXX_SHORT=2.9 +VER_LIBZIP=1.1 VER_LIBFTDI1=1.2 VER_LIBUSB=1.0.19 VER_PYTHON=3.3.3 VER_BOOST=1.58.0 -VER_QT=5.5.1 -VER_SIGROK_FIRMWARE_FX2LAFW=0.1.2 +VER_QT=5.6.0 +VER_QT_SHORT=5.6 +VER_SIGROK_FIRMWARE_FX2LAFW=0.1.3 VER_NDK=10e -VER_SDK=24.3.3 -VER_AND_BT=22.0.1 # Android build tools version +VER_SDK=24.4.1 +VER_AND_BT=23.0.2 # Android build tools version VER_AND_API=16 # Target Android API version SF_MIRROR=download.sourceforge.net @@ -207,10 +208,10 @@ fi # ----------------------------------------------------------------------------- # Get the latest versions of config.guess/config.sub that know about Android. -$GIT_CLONE git://git.savannah.gnu.org/config.git +$GIT_CLONE http://git.savannah.gnu.org/r/config.git # Get a toolchain for cmake that knows about Android. -$WGET https://android-cmake.googlecode.com/hg/toolchain/android.toolchain.cmake +$WGET https://raw.githubusercontent.com/arithran/android-cmake/master/toolchain/android.toolchain.cmake patch < ../android.toolchain.cmake.patch android.toolchain.cmake # ----------------------------------------------------------------------------- @@ -273,7 +274,7 @@ cd .. $WGET ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$VER_PCRE.tar.gz tar xfz pcre-$VER_PCRE.tar.gz cd pcre-$VER_PCRE -./configure $C --disable-cpp +./configure $C --disable-cpp --enable-utf --enable-unicode-properties make $PARALLEL $V make install $V cd .. @@ -439,14 +440,14 @@ NDK_HOST=`"$ANDROID_NDK/ndk-build" -p 2>/dev/null | awk '$1 == "HOST_TAG" { prin $WGET http://$SF_MIRROR/project/boost/boost/$VER_BOOST/boost_${VER_BOOST//./_}.tar.bz2 tar xfj boost_${VER_BOOST//./_}.tar.bz2 cd boost_${VER_BOOST//./_} -CC= ./bootstrap.sh --with-toolset=gcc --with-libraries=filesystem,system,thread,test --without-icu +CC= ./bootstrap.sh --with-toolset=gcc --with-libraries=filesystem,system,thread,serialization,test --without-icu echo "using gcc : $NDK_TOOLCHAIN_VERSION : \"${TOOLCHAIN_TRIPLET}-g++\" : \"$SYSROOT -I$PREFIX/include $CPPFLAGS_STL\" \"$SYSROOT -L$PREFIX/lib $LDFLAGS_STL -lgnustl_shared\" ;" > user-config.jam ./b2 -q -d+2 --ignore-site-config --user-config=user-config.jam toolset=gcc variant=release link=shared threading=multi runtime-link=shared target-os=android --prefix=$PREFIX --layout=system install $PARALLEL cd .. # Qt (needed for PulseView) -$WGET http://download.qt-project.org/official_releases/qt/${VER_QT%.*}/${VER_QT}/single/qt-everywhere-opensource-src-${VER_QT}.tar.gz -tar xfz qt-everywhere-opensource-src-${VER_QT}.tar.gz +$WGET http://download.qt.io/official_releases/qt/${VER_QT_SHORT}/${VER_QT}/single/qt-everywhere-opensource-src-${VER_QT}.tar.xz +tar xfi qt-everywhere-opensource-src-${VER_QT}.tar.xz cd qt-everywhere-opensource-src-${VER_QT} patch -p1 < ../../android-qt.patch CC= CXX= ./configure \ @@ -470,8 +471,6 @@ CC= CXX= ./configure \ -skip qttools \ -skip qttranslations \ -skip qtwebchannel \ - -skip qtwebkit \ - -skip qtwebkit-examples \ -skip qtwebsockets \ -skip qtxmlpatterns \ -opensource -confirm-license -silent @@ -496,6 +495,7 @@ find $PREFIX -iname "*.so" -exec ${TOOLCHAIN_TRIPLET}-strip -S {} \; # PulseView $GIT_CLONE git://sigrok.org/pulseview cd pulseview +patch -p1 < ../../pv_cmake_pkgconfig_fix.patch cmake $CM -DENABLE_TESTS=y . make $PARALLEL $V ${TOOLCHAIN_TRIPLET}-strip -S libs/$TARGET_ARCH/libpulseview.so