X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fandroid%2Fsigrok-cross-android;h=f802a5d7b977a85ac59f11e5f231fe7fe9fc4b68;hp=538b690298f42bedfe10801a61f0eaf78e648d76;hb=621e2e6eaa182ed9c0c2fa5b3818387e39dfe8c9;hpb=1238f785c12e5c7558178d57d2659f92b10485c8 diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index 538b690..f802a5d 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -22,10 +22,10 @@ set -e # The path where Android NDK is located. -ANDROID_NDK=/usr/local/android-ndk-r9d +ANDROID_NDK=$HOME/android/android-ndk-r9d # The path where Android SDK is located. -ANDROID_SDK=/usr/local/android +ANDROID_SDK=$HOME/android/android-sdk-linux # The path where your Android toolchain directory is located. TOOLCHAIN=$HOME/android/android-arm-toolchain @@ -90,9 +90,7 @@ tar xJf Python-$VER_PYTHON.tar.xz cd Python-$VER_PYTHON ./configure make python $PARALLEL -make Parser/pgen $PARALLEL mv python hostpython -mv Parser/pgen Parser/hostpgen cd .. # ----------------------------------------------------------------------------- @@ -124,7 +122,7 @@ autoreconf patch -p1 < ../../Python-$VER_PYTHON.patch ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6 sed -i "s/^#zlib/zlib/g" Modules/Setup -make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen install $PARALLEL +make PYTHON_FOR_BUILD=./hostpython install $PARALLEL cd .. # libiconv (needed for glib) @@ -311,13 +309,20 @@ make $PARALLEL make install cd .. +# sigrok-androidutils +$GIT_CLONE git://sigrok.org/sigrok-androidutils +cd sigrok-androidutils +./autogen.sh +./configure $C --with-android-sdk="${ANDROID_SDK}" +make +make install +cd .. + # PulseView $GIT_CLONE git://sigrok.org/pulseview cd pulseview -patch -p1 < ../../pulseview-cpp.patch cmake $CM -DANDROID_STL_PATH=${ANDROID_NDK}/sources/cxx-stl . make $PARALLEL -git clone https://github.com/zeldin/pulseview_android_java android cd android "$ANDROID_TOOLS/android" update project -p . -t android-14 -n PulseView ant debug