X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fandroid%2Fsigrok-cross-android;h=83386971b616230e4573d4d6004c139fd5f16a68;hp=351b42054b1aa0e0b1e1781000ffa584a3de3f2c;hb=60c24f416b274ca26d2274cd3add29a42a351312;hpb=e0c2f96c290a4eee70aeb1ab1a72f2f286e74311 diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index 351b420..8338697 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -16,8 +16,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## set -e @@ -32,10 +31,10 @@ ANDROID_NDK=$ANDROID_PATH/android-ndk-r10e ANDROID_SDK=$ANDROID_PATH/android-sdk-linux # The path where your Android toolchain directory is located. -TOOLCHAIN=$ANDROID_PATH/android-arm-toolchain +# TOOLCHAIN=$ANDROID_PATH/android-arm-toolchain # TOOLCHAIN=$ANDROID_PATH/android-mipsel-toolchain # TOOLCHAIN=$ANDROID_PATH/android-i686-toolchain -# TOOLCHAIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86 +TOOLCHAIN=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86 # TOOLCHAIN=$ANDROID_NDK/toolchains/x86-4.9/prebuilt/linux-x86 # TOOLCHAIN=$ANDROID_NDK/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86 @@ -63,15 +62,15 @@ PARALLEL="-j 2" VER_LIBICONV=1.14 VER_GETTEXT=0.19.7 -VER_ZLIB=1.2.8 +VER_ZLIB=1.2.11 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.6.2 -VER_LIBSIGCXX_SHORT=2.6 +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 @@ -274,7 +273,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 .. @@ -372,7 +371,7 @@ cd libsigrok ./autogen.sh mkdir build cd build -CPPFLAGS="$CPPFLAGS_STL" LDFLAGS="$LDFLAGS_STL" ../configure $C $BINDINGS_CONFIG --datadir=/sdcard +CPPFLAGS="$CPPFLAGS_STL" LDFLAGS="$LDFLAGS_STL" JAVAC="javac -source 1.6 -target 1.6" ../configure $C $BINDINGS_CONFIG --datadir=/sdcard make $PARALLEL $V make datadir='$(datarootdir)' install $V cd ../.. @@ -440,15 +439,16 @@ 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 +patch -p0 < ../../boost_wchar.patch +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.io/snapshots/qt/${VER_QT_SHORT}/${VER_QT}-beta/latest_src/qt-everywhere-opensource-src-${VER_QT}-beta.tar.gz -tar xfz qt-everywhere-opensource-src-${VER_QT}-beta.tar.gz -cd qt-everywhere-opensource-src-${VER_QT}-beta +$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 \ --prefix="$PREFIX" \