<html><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><META name="Author" content="Novell GroupWise WebAccess"></head><body style='font-family: Helvetica, Arial, sans-serif; font-size: 13px; '>Hi Tor,<br><br>Sorry, I didn't paste my last mail completely:<br><br>> Are you btw trying to build for x86 Android or ARM Android? I only<br>> have experience of the latter; mmeeks can tell you more about the<br>> former (and hopefully he has updated or will update README.cross<br>> and/or README.Android;))<br><br>I am trying to build an ARM Android.<br><br>>> checking build system type... x86-unknown-linux-gnu<br>>> checking host system type... x86-unknown-linux-gnu<br><br>> This shows that it is not a cross-compilation.<br><br>Thanks! I see, shall I change the --build value in autogen.lastrun?<br><br>>> checking gcc home... /usr<br>>> 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<br><br>>This is weird. How did it you get it to use that compiler? And still<br>>it says that "gcc home" (the exact meaning and use of which is a bit<br>>unclear; that might well be unneeded cruft in configure.in) is /usr?<br><br>What I did was I manually changing the autogen.lastrun as the previous mail shown, <br>then running ./autogen.sh will give me such a log.<br><br>Thanks again!<br><br>Best wishes,<br>Yifan<br><br>>>> Yi Fan Jiang 07/26/12 3:25 PM >>><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Author" content="Novell GroupWise WebAccess">Hi Tor,<br><br>Many thanks for your quick reply! Yes, I suspect I made some mistakes when <br>configuring stuff :( While I am still reading, the document I used for autogen is:<br><br>http://cgit.freedesktop.org/libreoffice/core/tree/README.cross#n357<br><br>My autogen.lastrun (now I know the first two lines can be ignored):<br><br>------------------------------------------------------------------------------------------<br><br>CC_FOR_BUILD=gcc<br>CXX_FOR_BUILD=g++<br>--with-android-ndk=/home/bench/android-ndk-r8b<br>--with-android-sdk=/home/bench/android-sdk-linux<br>--build=x86-unknown-linux-gnu<br>--with-ant-home=/usr/share/ant<br>--disable-zenity<br>--with-distro=LibreOfficeAndroid<br>--disable-python<br>--with-num-cpus=1<br>--with-max-jobs=1<br>--without-helppack-integration<br>--without-myspell-dicts<br><br>------------------------------------------------------------------------------------------<br><br>Best wishes,<br>Yifan<br><br>>>> Tor Lillqvist <tml@iki.fi> 07/26/12 2:41 PM >>><br>> ndk: android-ndk-r8b<br><br>Note thet NDK r8b is quite new, and despite just the minor "b" version<br>bump, if I understand correctly (I haven't tried it yet as I am on<br>vacation) it comes with a large bump in tool-chain versions. I suggest<br>staying with r8 until building with r8b has been verified. (r8b comes<br>with the gold linker, yay, that should speed up linking time<br>considerably one hopes, maybe we can now make libmerged much larger!)<br><br>> sdk: android-sdk_r20.0.1<br>> gcc: 4.3.4<br><br>Ah ok, so apparently r8b comes also with the old GCC 4.3.4.<br><br>> 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'<br><br>You don't tell configure that you are cross-compiling at all here, or<br>am I missing something? The CC_FOR_BUILD and CXX_FOR_BUILD values you<br>give are unnecessary, those are surely the default anyway for the<br>build platform (i.e. your desktop Linux). {CC,CXX}_FOR_BUILD need to<br>be given only if you want to use some non-default compiler or compiler<br>options for the build platform bits.<br><br>Check the README.cross for better autogen.lastrun examples.<br><br>Are you btw trying to build for x86 Android or ARM Android? I only<br>have experience of the latter; mmeeks can tell you more about the<br>former (and hopefully he has updated or will update README.cross<br>and/or README.Android;))<br><br><br>> checking gcc home... /usr<br>> 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<br><br>This is weird. How did it you get it to use that compiler? And still<br>it says that "gcc home" (the exact meaning and use of which is a bit<br>unclear; that might well be unneeded cruft in configure.in) is /usr?<br><br>It would be best if you posted your autogen.lastrun.<br><br>--tml<br><br><br></body></html>