myefdok / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

big problem, not able to build so file #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the  error message:
/home/ianc/Downloads/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/
../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: skipping incompatible 
/home/ianc/apv/pdfview/jni/pdfview2/lib/libfreetype.a when searching for 
-lfreetype
/home/ianc/Downloads/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/
../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: cannot find -lfreetype
collect2: ld returned 1 exit status
make: *** [/home/ianc/apv/pdfview/bin/ndk/local/armeabi/libpdfview2.so] Error 1
the android-gcc-setup.sh
# adjust paths below and then run
# . ./android-gcc-setup.sh
# to setup build environment

export NDK=/home/ianc/android-ndk-r4
ANDROID_VERSION=3
LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib

export CFLAGS="-march=armv5te -mtune=xscale"
export CC=$NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc
export 
CPPFLAGS=-I$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/include
export LDFLAGS="-L$LIBDIR -nostdlib -ldl -lc -lz $LIBDIR/crtbegin_static.o"

the os is Ubuntu

i have tried many times, would anyone kindly give a hand?thanks a lot.

qq:896479183

Original issue reported on code.google.com by hsong...@gmail.com on 6 Aug 2010 at 1:33

GoogleCodeExporter commented 9 years ago
New build system committed to repository.

Original comment by arpruss on 24 Jul 2011 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by arpruss on 24 Jul 2011 at 6:17