Create an SDL for ARM using Android Standalone Toolkit

How can I create libsdl using the standalone Android NDK toolchain? I can not use the standard ndk-build, because I need to integrate with the existing build system.

I know that I probably need to specify the path and name of the cross-compiler in my PATH and CC environment variables, respectively, but I assume that there are many other things that need to be done - for example. SSE and 3DNow probably need to be disabled (target architecture is ARM), etc.

This is what I still have:

$ HOSTCONF=arm-eabi-linux $ TOOLCHAIN=$HOME/android/toolchain $ export ARCH=armv7-a $ export SYSROOT=$TOOLCHAIN/sysroot $ export PATH=$PATH:$TOOLCHAIN/bin:$SYSROOT/usr/local/bin $ export CROSS_COMPILE=arm-linux-androideabi $ export CC=${CROSS_COMPILE}-gcc $ export CXX=${CROSS_COMPILE}-g++ $ export CFLAGS="-DANDROID -mandroid -fomit-frame-pointer --sysroot $SYSROOT -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb" $ export CXXFLAGS=$CFLAGS $ ./configure --host=$HOSTCONF --build=i686-pc-linux-gnu --with-sysroot=$SYSROOT --prefix=$SYSROOT/usr/local --disable-joystick $ make $ make install 
+6
source share
1 answer

The environment indicated in the question is compiling.

+1
source

All Articles