Changes between Version 27 and Version 28 of android


Ignore:
Timestamp:
Feb 5, 2013, 3:17:25 PM (11 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • android

    v27 v28  
    255255 * from Nemo
    256256
     257== Building optional dependencies ==
     258
     259=== Libmagic ===
     260Libmagic is not needed by modRana, but is required by Mieru and other ports to Android might also find it useful.
     261
     262First, get the actual sources for the File command (5.11 at the time of writing).
     263
     264Then configure and compile (don't forgett to replace all the <> quoted paths with valid ones):
     265
     266{{{
     267# based on: http://mdqinc.com/blog/2011/09/cross-compiling-python-for-android/
     268export ANDROID_NDK=<path to>/android-ndk
     269export PATH="$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:$ANDROID_NDK:$ANDROID_NDK/tools:/usr/local/bin:/usr/bin:/bin"
     270export ARCH="armeabi"
     271export CFLAGS="-DANDROID -mandroid -fomit-frame-pointer --sysroot $ANDROID_NDK/platforms/android-14/arch-arm"
     272export CXXFLAGS = "$CFLAGS"
     273export CC="arm-linux-androideabi-gcc $CFLAGS"
     274export CXX="arm-linux-androideabi-g++ $CXXFLAGS"
     275export AR="arm-linux-androideabi-ar"
     276export RANLIB="arm-linux-androideabi-ranlib"
     277export STRIP="arm-linux-androideabi-strip --strip-unneeded"
     278
     279cd file-5.11
     280
     281make clean
     282
     283./configure --prefix=<path to some folder>/out --host=arm-eabi
     284
     285read -p "Press any key to continue... " -n1 -s
     286
     287make -j5
     288make install
     289}}}
     290
     291The result will be in the ''out'' folder, specified by the results path. Just pack them with you application and set the corresponding environmental variables accordingly. :)
    257292
    258293== Updated Prerequisites ==