Scilab on Android Commit Details

Scilab on Android Commit Details

Date: 2012-08-06 16:15:30 (1 year 2 months ago)
Author: Guillaume Mazoyer
Branch: master
Commit: d05879d46a118d8c381a252b4e25935767c0f5e7
Message: Initial import: chroot instructions.
Changes:
A build-scilab.sh (full)
A doc/README (full)
A doc/root-archos.txt (full)
A make-tarball.sh (full)
A setup-libs.sh (full)

File differences

build-scilab.sh
1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
#!/bin/bash&#x240a
&#x240a
# Author:  Guillaume Mazoyer <[email protected]>&#x240a
# License: see Scilab license&#x240a
&#x240a
set -e&#x240a
set -o nounset&#x240a
&#x240a
PREFIX="/data/local/usr"&#x240a
HOST="arm-linux-gnueabi"&#x240a
JOBS=${JOBS:="-j2"}&#x240a
&#x240a
mkdir -p files&#x240a
pushd files&#x240a
&#x240a
# Download if not already here&#x240a
if [ ! -e scilab-5.4.0-beta-2-src.tar.gz ]; then&#x240a
  wget http://www.scilab.org/download/5.4.0-beta-2/scilab-5.4.0-beta-2-src.tar.gz&#x240a
fi&#x240a
&#x240a
popd&#x240a
&#x240a
# Extract&#x240a
rm -rf temp/scilab-5.4.0-beta-2&#x240a
tar xzf files/scilab-5.4.0-beta-2-src.tar.gz -C temp&#x240a
&#x240a
# Patch to avoid a compilation failure&#x240a
# This needs to be investigated anyway&#x240a
# patch temp/scilab-5.4.0-beta-1/modules/history_manager/src/c/getCommentDateSession.c \&#x240a
#  < patches/scilab-build.patch&#x240a
pushd temp/scilab-5.4.0-beta-2&#x240a
&#x240a
# "Boss can I take a break? It's compiling... seriously"&#x240a
PATH="/data/local/usr/bin:${PATH}" CFLAGS="-I/data/local/usr/include/ncurses/ -I/data/local/usr/include/" \&#x240a
  CPPFLAGS="-I/data/local/usr/include" LDFLAGS="-L/data/local/usr/lib" \&#x240a
  ./configure --host=${HOST} \&#x240a
  --prefix=${PREFIX} --without-gui --without-javasci --without-jdk \&#x240a
  --disable-build-help --without-scicos --without-xcos --without-ocaml \&#x240a
  --without-modelica --without-fftw --without-pvm --without-umfpack \&#x240a
  --without-matio --without-tk --without-openmp --disable-build-localization \&#x240a
  --without-arpack-ng --with-blas-library=/data/local/usr/lib \&#x240a
  --with-lapack-library=/data/local/usr/lib \&#x240a
  --with-hdf5-include=/data/local/usr/include \&#x240a
  --with-hdf5-library=/data/local/usr/lib&#x240a
make all ${JOBS}&#x240a
make install&#x240a
popd&#x240a
&#x240a
exit 0&#x240a
doc/README
1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
README&#x240a
&#x240a
You need root permission to run the 3 scripts to build Scilab.&#x240a
The scripts will download and compile all the required tools and dependencies&#x240a
to make everything work. The scripts must be run in the following order:&#x240a
&#x240a
* setup-libs.sh&#x240a
* build-scilab.sh&#x240a
* make-tarball.sh&#x240a
&#x240a
About the chroot&#x240a
----------------&#x240a
&#x240a
It is recommended to run this in an Ubuntu i386 chroot. The advantage to run&#x240a
this on Ubuntu is that the ARM compilers are included in the Universe&#x240a
repositories. It also can be run in a Debian chroot with the Emdebian&#x240a
repository but the scripts would require some tiny changes.&#x240a
&#x240a
You can create an Ubuntu chroot with:&#x240a
&#x240a
mkdir build-scilab-chroot&#x240a
debootstrap --arch i386 precise build-scilab-chroot http://archive.ubuntu.com/ubuntu&#x240a
doc/root-archos.txt
1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
+-------------------------------+&#x240a
| How to root the Archos 101 G9 |&#x240a
+-------------------------------+&#x240a
&#x240a
Author: Guillaume Mazoyer <[email protected]>&#x240a
&#x240a
This guide *must* be followed to the letter.&#x240a
If the tablet burns, kills your cat or does some nasty things, we don't take&#x240a
any responsability.&#x240a
&#x240a
This process is needed to run the minimal version of Scilab. Without a root&#x240a
access, it will be impossible to install Scilab on the tablet.&#x240a
This guide works for Archos 101 G9 tablet with Android version 4.0.7 made by&#x240a
Archos.&#x240a
&#x240a
!!! Before doing anything !!!&#x240a
Please be sure that the tablet is charged at about 60% to avoid surprises.&#x240a
Download the required files to root the tablet from the following URL.&#x240a
&#x240a
http://respawner.fr/files/archos_101_g9_root.tar.gz&#x240a
&#x240a
Also, download the Android SDK to be able to connect to the device with a CLI.&#x240a
&#x240a
Step #1&#x240a
-------&#x240a
&#x240a
* Boot into the recovery by holding the volume dowm button and the power&#x240a
button. Once the Archos logo appears you can release the buttons.&#x240a
* Select "Update Firmware"&#x240a
* Plug the tablet into the computer with the USB cable. You should see that a&#x240a
storage device has been detected. Put the `firmware_archos_it4.aos' file&#x240a
into the device.&#x240a
* Press the power button and wait for the process to finish.&#x240a
&#x240a
Step #2&#x240a
-------&#x240a
&#x240a
* Power on the device and plug it into the computer.&#x240a
* Open a terminal and enter `adb devices' (assuming that `adb' is in your&#x240a
PATH) and ensure that the device is listed.&#x240a
* Go into the directory where you extract the files needed to root the&#x240a
device and send `archos.ext4.update' into the `/mnt/storage' directory of&#x240a
the tablet by running `adb push archos.ext4.update /mnt/storage'. The&#x240a
transfer will take some time (about 2 or 3 minutes).&#x240a
* Power off the device and boot into recovery like you did before.&#x240a
* In the `Archos Boot Menu' select `Recovery System'.&#x240a
* In the next menu select `Developer Edition Menu', then select&#x240a
`Remove Android Kernel' if it is present.&#x240a
* Plug the tablet into the computer and send `zImage' and &#x240a
`initramfs.cpio.lzo'.&#x240a
* Finally, reboot the device, it should tell you that the Android has been&#x240a
updated. The tablet is now rooted.&#x240a
&#x240a
make-tarball.sh
1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
  100
  101
  102
  103
  104
#!/bin/bash&#x240a
&#x240a
# Author:  Guillaume Mazoyer <[email protected]>&#x240a
# License: see Scilab license&#x240a
&#x240a
set -e&#x240a
set -o nounset&#x240a
&#x240a
LIBS="/usr/arm-linux-gnueabi/lib"&#x240a
USR="/data/local/usr"&#x240a
&#x240a
&#x240a
# Copy all libs so we still have the ones we actually need.&#x240a
# This could be improve to copy only libraries we need.&#x240a
for f in ${LIBS}/*; do&#x240a
  if [ ! "${f}" = "/usr/arm-linux-gnueabi/lib/libnss_db.so" ]; then&#x240a
    cp -p -P ${f} ${USR}/lib&#x240a
  fi&#x240a
done&#x240a
&#x240a
# Delete references in libraries so they do not look for toolchain libraries.&#x240a
for f in ${USR}/lib/*; do&#x240a
  if chrpath ${f} 2> /dev/null | grep = > /dev/null; then&#x240a
    echo "Fixing library ${f}"&#x240a
    chrpath -d ${f}&#x240a
  fi&#x240a
done&#x240a
&#x240a
for f in ${USR}/lib/scilab/*; do&#x240a
  if chrpath ${f} 2> /dev/null | grep = > /dev/null; then&#x240a
    echo "Fixing library ${f}"&#x240a
    chrpath -d ${f}&#x240a
  fi&#x240a
done&#x240a
&#x240a
# Same as above but for binaries.&#x240a
for f in ${USR}/bin/*; do&#x240a
  if chrpath ${f} 2> /dev/null | grep = > /dev/null; then&#x240a
    echo "Fixing binary ${f}"&#x240a
    chrpath -d ${f}&#x240a
  fi&#x240a
done&#x240a
&#x240a
# Remove debug symbols.&#x240a
for f in $(find -type f -executable -exec sh \&#x240a
  -c "file -i '{}' | grep -q 'x-executable; charset=binary'" \; -print); do&#x240a
  arm-linux-gnueabi-strip --strip-debug ${f}&#x240a
done&#x240a
&#x240a
# Create script to start Scilab.&#x240a
cat > /data/local/scilab.sh << EOF&#x240a
#!/system/bin/sh&#x240a
&#x240a
USR_LIB="/data/local/usr/lib"&#x240a
&#x240a
export LD_LIBRARY_PATH="\${USR_LIB}:\${USR_LIB}/scilab:\${LD_LIBRARY_PATH}"&#x240a
export HOME="/data/local/usr/tmp"&#x240a
export SCI="/data/local/usr/share/scilab"&#x240a
&#x240a
mkdir -p \${HOME}&#x240a
&#x240a
if [ ! -f \${SCI}/modules/core/macros/lib ]; then&#x240a
  echo "exec \${SCI}/modules/functions/scripts/buildmacros/buildmacros.sce" \\&#x240a
    | /data/local/usr/lib/ld-linux.so.3 /data/local/usr/bin/scilab-cli-bin&#x240a
fi&#x240a
&#x240a
TMPDIR=\${HOME} /data/local/usr/lib/ld-linux.so.3 \\&#x240a
  /data/local/usr/bin/scilab-cli-bin "\${@}"&#x240a
EOF&#x240a
&#x240a
# Remove useless files that take a lot of space.&#x240a
rm -rf ${USR}/share/doc&#x240a
rm -rf ${USR}/share/man&#x240a
rm -rf ${USR}/share/info&#x240a
rm -rf ${USR}/share/gtk-doc&#x240a
rm -rf ${USR}/share/applications&#x240a
rm -rf ${USR}/lib/*.a&#x240a
# rm -rf ${USR}/lib/*.so # Fucked up some symlinks&#x240a
rm -rf ${USR}/man&#x240a
rm -rf ${USR}/include&#x240a
&#x240a
# Remove useless Scilab modules, tests and help.&#x240a
# No point at having them in CLI.&#x240a
rm -rf ${USR}/share/scilab/modules/*/help&#x240a
rm -rf ${USR}/share/scilab/modules/*/tests&#x240a
rm -rf ${USR}/share/scilab/modules/xcos&#x240a
rm -rf ${USR}/share/scilab/modules/umfpack&#x240a
rm -rf ${USR}/share/scilab/modules/graphics&#x240a
# rm -rf ${USR}/share/scilab/modules/m2sci # Cause a warning when starting if uncommented&#x240a
rm -rf ${USR}/share/scilab/modules/helptools&#x240a
&#x240a
# Keep macros scripts to build them when starting Scilab for the first time.&#x240a
cp -r temp/scilab-5.4.0-beta-2/modules/functions/scripts/ \&#x240a
  ${USR}/share/scilab/modules/functions&#x240a
&#x240a
# Set the Android shell user as owner.&#x240a
chown -R 10059:2000 ${USR}&#x240a
chown -R 10059:2000 /data/local/scilab.sh&#x240a
&#x240a
# Create the tarball.&#x240a
cd /data/local&#x240a
tar czpf /root/scilab.tar.gz scilab.sh usr&#x240a
&#x240a
exit 0&#x240a
setup-libs.sh
1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
#!/bin/bash&#x240a
&#x240a
# Author:  Guillaume Mazoyer <[email protected]>&#x240a
# License: see Scilab license&#x240a
#&#x240a
# Based on:&#x240a
#   http://svn.wildfiregames.com/public/ps/trunk/build/android/setup-libs.sh&#x240a
&#x240a
set -e&#x240a
set -o nounset&#x240a
&#x240a
# If `true' all `build_*' variables (except the one for hdf5) need to be set to&#x240a
# `true' too.&#x240a
reset_prefix=true&#x240a
&#x240a
build_ncurses=true&#x240a
build_readline=true&#x240a
build_libxml2=true&#x240a
build_pcre=true&#x240a
build_gettext=true&#x240a
build_blas=true&#x240a
build_lapack=true&#x240a
build_hdf5=true&#x240a
&#x240a
PREFIX="/data/local/usr"&#x240a
HOST="arm-linux-gnueabi"&#x240a
JOBS=${JOBS:="-j2"}&#x240a
&#x240a
check_and_install() {&#x240a
  packages=("gcc-arm-linux-gnueabi" "g++-arm-linux-gnueabi" \&#x240a
            "gfortran-arm-linux-gnueabi" "binutils-arm-linux-gnueabi" \&#x240a
            "pkg-config-arm-linux-gnueabi" "gcc" "gfortran" "g++" \&#x240a
            "build-essential" "chrpath" "wget")&#x240a
&#x240a
  if [ ${EUID} -ne 0 ]; then&#x240a
    echo "Go root to run this script."&#x240a
    echo "You're doing this in a chroot right?" &#x240a
    exit 1&#x240a
  fi&#x240a
&#x240a
  for package in ${packages[@]}; do&#x240a
    installed=$(dpkg-query -W ${package})&#x240a
&#x240a
    if [ "${installed}" = "1" ]; then&#x240a
      apt-get install -q=2 ${package}&#x240a
    fi&#x240a
  done&#x240a
}&#x240a
&#x240a
# Install needed packages&#x240a
check_and_install&#x240a
&#x240a
# Prepare an `Android like' directory to install dependencies&#x240a
if [ "${reset_prefix}" = "true" ]; then&#x240a
  # Remove all previous files to be sure we are strating from scratch.&#x240a
  rm -rf ${PREFIX}&#x240a
fi&#x240a
mkdir -p ${PREFIX}/lib&#x240a
&#x240a
# Download source code of each dependency&#x240a
mkdir -p files&#x240a
pushd files&#x240a
&#x240a
if [ ! -e ncurses-5.9.tar.gz ]; then&#x240a
  wget ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz&#x240a
fi&#x240a
&#x240a
if [ ! -e readline-6.2.tar.gz ]; then&#x240a
  wget ftp://ftp.gnu.org/pub/gnu/readline/readline-6.2.tar.gz&#x240a
fi&#x240a
&#x240a
if [ ! -e libxml2-2.7.8.tar.gz ]; then&#x240a
  wget ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz&#x240a
fi&#x240a
&#x240a
if [ ! -e pcre-8.30.tar.gz ]; then&#x240a
  wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz&#x240a
fi&#x240a
&#x240a
if [ ! -e gettext-0.18.1.1.tar.gz ]; then&#x240a
  wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz&#x240a
fi&#x240a
&#x240a
if [ ! -e blas.tgz  ]; then&#x240a
  wget http://www.netlib.org/blas/blas.tgz&#x240a
fi&#x240a
&#x240a
if [ ! -e lapack-3.4.1.tgz ]; then&#x240a
  wget http://www.netlib.org/lapack/lapack-3.4.1.tgz&#x240a
fi&#x240a
&#x240a
if [ ! -e hdf5-1.8.9.tar.gz ]; then&#x240a
  wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.9.tar.gz&#x240a
fi&#x240a
&#x240a
popd&#x240a
&#x240a
# Do the dirty job aka "go back to work!" ... "nope, compiling ;)"&#x240a
mkdir -p temp&#x240a
&#x240a
if [ "${build_ncurses}" = "true" ]; then&#x240a
  rm -rf temp/ncurses-5.9&#x240a
  tar xzf files/ncurses-5.9.tar.gz -C temp&#x240a
  pushd temp/ncurses-5.9&#x240a
  ./configure --host=${HOST} --prefix=${PREFIX} --with-shared&#x240a
  make ${JOBS}&#x240a
  make install&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_readline}" = "true" ]; then&#x240a
  rm -rf temp/readline-6.2&#x240a
  tar xzf files/readline-6.2.tar.gz -C temp&#x240a
  pushd temp/readline-6.2&#x240a
  ./configure --host=${HOST} --prefix=${PREFIX} --with-curses&#x240a
  make ${JOBS}&#x240a
  make install&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_libxml2}" = "true" ]; then&#x240a
  rm -rf temp/libxml2-2.7.8&#x240a
  tar xzf files/libxml2-2.7.8.tar.gz -C temp&#x240a
  pushd temp/libxml2-2.7.8&#x240a
  ./configure --host=${HOST} --prefix=${PREFIX}&#x240a
  make ${JOBS}&#x240a
  make install&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_pcre}" = "true"  ]; then&#x240a
  rm -rf temp/pcre-8.30&#x240a
  tar xzf files/pcre-8.30.tar.gz -C temp&#x240a
  pushd temp/pcre-8.30&#x240a
  ./configure --host=${HOST} --prefix=${PREFIX} --enable-utf8 \&#x240a
    --enable-unicode-properties&#x240a
  make ${JOBS}&#x240a
  make install&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_gettext}" = "true"  ]; then&#x240a
  rm -rf temp/gettext-0.18.1.1&#x240a
  tar xzf files/gettext-0.18.1.1.tar.gz -C temp&#x240a
  pushd temp/gettext-0.18.1.1&#x240a
  ./configure --host=${HOST} --prefix=${PREFIX} --disable-nls&#x240a
  make ${JOBS}&#x240a
  make install&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_blas}" = "true"  ]; then&#x240a
  rm -rf temp/BLAS&#x240a
  tar xzf files/blas.tgz -C temp&#x240a
  patch temp/BLAS/make.inc < patches/blas-make.patch&#x240a
  pushd temp/BLAS&#x240a
  make clean&#x240a
  make&#x240a
  cp blas.a ${PREFIX}/lib&#x240a
  cp /usr/arm-linux-gnueabi/lib/libgfortran.so.3.0.0 \&#x240a
    ${PREFIX}/lib/libgfortran.so.3&#x240a
  mkdir tmp && cd tmp&#x240a
  ar x ../blas.a&#x240a
  cd ..&#x240a
  ${HOST}-gfortran -shared -Wl,-soname=libblas.so -o libblas.so tmp/*.o&#x240a
  cp libblas.so ${PREFIX}/lib&#x240a
  rm -rf tmp&#x240a
  popd&#x240a
fi&#x240a
&#x240a
if [ "${build_lapack}" = "true" ]; then&#x240a
  rm -rf temp/lapack-3.4.1&#x240a
  tar xzf files/lapack-3.4.1.tgz -C temp&#x240a
  patch temp/lapack-3.4.1/make.inc < patches/lapack-make.patch&#x240a
  pushd temp/lapack-3.4.1/SRC&#x240a
  make clean&#x240a
  make&#x240a
  cd ..&#x240a
  cp liblapack.a ${PREFIX}/lib&#x240a
  mkdir tmp && cd tmp&#x240a
  ar x ../liblapack.a&#x240a
  cd ..&#x240a
  ${HOST}-gfortran -shared -Wl,-soname=liblapack.so -o liblapack.so tmp/*.o&#x240a
  cp liblapack.so ${PREFIX}/lib&#x240a
  rm -rf tmp&#x240a
  popd&#x240a
fi&#x240a
&#x240a
# Build disable but need to be fixed for scilab > 5.3.3&#x240a
if [ "${build_hdf5}" = "true" ]; then&#x240a
  rm -rf temp/hdf5-1.8.9&#x240a
  # tar xzf files/hdf5-1.8.9.tar.gz -C temp&#x240a
  # pushd temp/hdf5-1.8.9&#x240a
  # ./configure --host=${HOST} --prefix=${PREFIX}&#x240a
  # make ${JOBS}&#x240a
  # make install&#x240a
  # popd&#x240a
&#x240a
  # That's some serious hack that we *need* to address at some point&#x240a
  mkdir temp/hdf5-1.8.9&#x240a
  pushd temp/hdf5-1.8.9&#x240a
&#x240a
  wget http://ftp.fr.debian.org/debian/pool/main/h/hdf5/libhdf5-dev_1.8.8-9_armel.deb&#x240a
  wget http://ftp.fr.debian.org/debian/pool/main/h/hdf5/libhdf5-7_1.8.8-9_armel.deb&#x240a
  wget http://ftp.fr.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.7.dfsg-13_armel.deb&#x240a
&#x240a
  ar x libhdf5-dev_1.8.8-9_armel.deb&#x240a
  tar xzf data.tar.gz&#x240a
  rm data.tar.gz&#x240a
&#x240a
  ar x libhdf5-7_1.8.8-9_armel.deb&#x240a
  tar xzf data.tar.gz&#x240a
  rm data.tar.gz&#x240a
&#x240a
  cp -rpP usr/lib/* /data/local/usr/lib&#x240a
  cp -rpP usr/include/* /data/local/usr/include&#x240a
&#x240a
  ar x zlib1g_1.2.7.dfsg-13_armel.deb&#x240a
  tar xzf data.tar.gz&#x240a
  rm data.tar.gz&#x240a
  cp -rpP lib/arm-linux-gnueabi/* /data/local/usr/lib&#x240a
&#x240a
  popd&#x240a
fi&#x240a
&#x240a
exit 0&#x240a

你可能感兴趣的:(Scilab on Android Commit Details)