Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Tor,

Many thanks for your quick reply! Yes, I suspect I made some mistakes when 
configuring stuff  :( While I am still reading, the document I used for autogen is:

http://cgit.freedesktop.org/libreoffice/core/tree/README.cross#n357

My autogen.lastrun (now I know the first two lines can be ignored):

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

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
--with-distro=LibreOfficeAndroid
--disable-python
--with-num-cpus=1
--with-max-jobs=1
--without-helppack-integration
--without-myspell-dicts

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

Best wishes,
Yifan

Tor Lillqvist <tml@iki.fi> 07/26/12 2:41 PM >>>
ndk: android-ndk-r8b

Note thet NDK r8b is quite new, and despite just the minor "b" version
bump, if I understand correctly (I haven't tried it yet as I am on
vacation) it comes with a large bump in tool-chain versions. I suggest
staying with r8 until building with r8b has been verified. (r8b comes
with the gold linker, yay, that should speed up linking time
considerably one hopes, maybe we can now make libmerged much larger!)

sdk: android-sdk_r20.0.1
gcc: 4.3.4

Ah ok, so apparently r8b comes also with the old GCC 4.3.4.

    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'

You don't tell configure that you are cross-compiling at all here, or
am I missing something? The CC_FOR_BUILD and CXX_FOR_BUILD values you
give are unnecessary, those are surely the default anyway for the
build platform (i.e. your desktop Linux). {CC,CXX}_FOR_BUILD need to
be given only if you want to use some non-default compiler or compiler
options for the build platform bits.

Check the README.cross for better autogen.lastrun examples.

Are you btw trying to build for x86 Android or ARM Android? I only
have experience of the latter; mmeeks can tell you more about the
former (and hopefully he has updated or will update README.cross
and/or README.Android;))

    checking build system type... x86-unknown-linux-gnu
    checking host system type... x86-unknown-linux-gnu

This shows that it is not a cross-compilation.

    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

This is weird. How did it you get it to use that compiler? And still
it says that "gcc home" (the exact meaning and use of which is a bit
unclear; that might well be unneeded cruft in configure.in) is /usr?

It would be best if you posted your autogen.lastrun.

--tml




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.