need help for Android build.

Yifan Jiang yfjiang at suse.com
Wed Jul 25 23:17:04 PDT 2012


Dear kind developers,

I met a problem when trying to build LO Android libraries from the latest
master, it stuck in early autogen.sh phase which looks something wrong with
testing the cross compiler. I spent many time trying to see what happened but
didn't figure out what's wrong :( I'd appreciate if any one can some give
suggestions to resolve it, thank you in advance!

-------------------------------------------------------------------------------

ndk: android-ndk-r8b
sdk: android-sdk_r20.0.1
gcc: 4.3.4

-------------------------------------------------------------------------------

> ./autogen.sh

    running ./configure with 'CC_FOR_BUILD=gcc' 'CXX_FOR_BUILD=g++' '--with-android-ndk=/home/bench/android-ndk-r8b' '--with-android-sdk=/home/bench/android-sdk-linux' '--build=x86-unknown-linux-gnu' '--with-ant-home=/usr/share/ant' '--disable-zenity' '--disable-python' '--with-num-cpus=1' '--with-max-jobs=1' '--without-helppack-integration' '--without-myspell-dicts'
    ********************************************************************
    *
    *   Running LibreOffice build configuration.
    *
    ********************************************************************

    checking build system type... x86-unknown-linux-gnu
    checking host system type... x86-unknown-linux-gnu
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for grep... (cached) /usr/bin/grep
    checking for sed... /usr/bin/sed
    checking for gawk... gawk
    checking for gawk... /usr/bin/gawk
    checking for bash... /bin/sh
    checking for GNU or BSD tar... tar
    checking for tar's option to strip components... --strip-components
    checking for ccache... /usr/bin/ccache
    configure: WARNING: ccache's cache size is less than 1GB using it is counter-producive: Disabling auto-ccache detection
    checking gcc home... /usr
    checking for gcc... /home/bench/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin /home/bench/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 --sysroot /home/bench/android-ndk-r8b/platforms/android-9/arch-arm -L/home/bench/android-ndk-r8b/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a
    checking for C compiler default output file name... 
    configure: error: in `/windows/home/yifan/libo_solo':
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    Error running configure at ./autogen.sh line 187.

-------------------------------------------------------------------------------

Also, I tried to run the error section manually, which is failed as:

    /home/bench/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=neon -Wl,--fix-cortex-a8 --sysroot /home/bench/android-ndk-r8b/platforms/android-9/arch-arm -L/home/bench/android-ndk-r8b/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a
    /home/bench/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /lib/libz.so.1: no version information available (required by /home/bench/android-ndk-r8b/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld)
    /home/bench/android-ndk-r8b/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o: In function `atexit':
    crtbrand.c:(.text+0x44): undefined reference to `main'
    collect2: ld returned 1 exit status

Best wishes,
Yifan

-- 
  Yifan Jiang
  Libreoffice / SuSE
  Contact: yifan - irc.freenode.net/libreoffice
  =============================================  
  http://www.libreoffice.org/
  http://www.documentfoundation.org/


More information about the LibreOffice mailing list