Answer the question
In order to leave comments, you need to log in
Android NDK and cross compilation?
It is required to port one Linux library to Android (to use in your application). I so understood that it is necessary to carry out a cross compilation under AWP.
Here is the build script I wrote:
PREBUILT=/home/user/android-ndk/build/prebuilt/linux-x86/arm-eabi-4.4.0<br/>
PLATFORM=/home/user/android-ndk/build/platforms/android-3/arch-arm<br/>
INSTALL=/home/user/test-14.3.2/com5<br/>
<br/>
./configure --build=arm \<br/>
--prefix=$INSTALL \<br/>
<br/>
--with-flac=dyn \<br/>
<br/>
--enable-shared \<br/>
<br/>
CC=$PREBUILT/bin/arm-eabi-gcc \<br/>
CFLAGS="-fPIC -DANDROID" \<br/>
LDFLAGS="-Wl,-T,$PREBUILT/arm-eabi/lib/ldscripts/armelf.x -Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib $PREBUILT/lib/gcc/arm-eabi/4.4.0/crtbegin.o $PREBUILT/lib/gcc/arm-eabi/4.4.0/crtend.o -lc -lm -ldl"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question