Compilation of emulator on FreeBSD
From Triled Wiki
This tip shows you the way to compile on FreeBSD emulator, used in Android SDK.
Contents |
[edit] System/environment requirements
- emulator: android-emulator-20080211
- compiler: gcc34
[edit] Needed changes in sources
- change path to bash in files ./build-emulator.sh and ./qemu/android-rebuild.sh
- from
-
#!/bin/bash
- to
-
#!/usr/local/bin/bash
- change CC and HOSTCC from gcc to gcc34 in ./qemu/android-rebuild.sh
- change make command to gmake in ./qemu/android/rebuild.sh
- from
echo "rebuilding the emulator binary"
if ! (
if [ -f arm-softmmu/Makefile ] ; then
make -f $MAKEFILE clean
fi
echo ./configure $CONFIGURE_OPTIONS &&
./configure $CONFIGURE_OPTIONS &&
make -f $MAKEFILE -j4 ) 2>$STDERR >$STDOUT ; then
echo "Error while rebuilding the emulator. please check the sources"
exit 3
fi
to
echo "rebuilding the emulator binary"
if ! (
if [ -f arm-softmmu/Makefile ] ; then
gmake -f $MAKEFILE clean
fi
echo ./configure $CONFIGURE_OPTIONS &&
./configure $CONFIGURE_OPTIONS &&
gmake -f $MAKEFILE -j4 ) 2>$STDERR >$STDOUT ; then
echo "Error while rebuilding the emulator. please check the sources"
exit 3
fi
Compile, by running ./build-emulator.sh, copy needed images and start emulator.
[edit] Other way
Download patches for emulator sources and SDK tools (for script wrappers). See README inside and follow instructions. Note that non java-based tools are executed in Linux compatibility mode.
