Update README for cross-compiling to Raspbian a bit.

Change-Id: I2741dd3304d85986389a2ae7213cdbb345c6efc6
This commit is contained in:
Matúš Kukan
2014-01-16 15:56:30 +01:00
parent 9290998442
commit ee2d7273e4

View File

@@ -383,11 +383,13 @@ started, run ndk-gdb.
Raspbian Raspbian
******** ********
It's now possible to cross-compile LibreOffice for Rapsberry Pi running Raspbian. In theory, this should work also for another Linux, it does not need to be Raspbian.
But this cross-compilation work is tested from Debian based system to Raspbian.
You will need Raspbian's pkg-config files and system libraries to build against. You will need Raspbian's pkg-config files and system libraries to build against.
Available at http://dev-www.libreoffice.org/src/raspbian_rootfs.tar.bz2 Available at http://dev-www.libreoffice.org/extern/raspbian_rootfs.tar.bz2
$ wget http://dev-www.libreoffice.org/src/raspbian_rootfs.tar.bz2 $ wget http://dev-www.libreoffice.org/extern/raspbian_rootfs.tar.bz2
$ tar -axf raspbian_rootfs.tar.bz2 $ tar -xf raspbian_rootfs.tar.bz2
You can build cross-compiler yourself or get the executables here: You can build cross-compiler yourself or get the executables here:
$ git clone git://github.com/raspberrypi/tools $ git clone git://github.com/raspberrypi/tools
@@ -415,8 +417,7 @@ CC=<path-to-arm-linux-gnueabihf-gcc> --sysroot=<path-to-raspbian_rootfs>
CXX=<path-to-arm-linux-gnueabihf-g++> --sysroot=<path-to-raspbian_rootfs> CXX=<path-to-arm-linux-gnueabihf-g++> --sysroot=<path-to-raspbian_rootfs>
--build=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
--host=arm-unknown-linux-gnueabihf --host=arm-unknown-linux-gnueabihf
--without-doxygen --disable-sdk
--disable-gnome-vfs
--enable-python=system --enable-python=system
PYTHON_CFLAGS=-I<path-to-raspbian_rootfs>/usr/include/python2.7 PYTHON_CFLAGS=-I<path-to-raspbian_rootfs>/usr/include/python2.7
PYTHON_LIBS=-lpython2.7 PYTHON_LIBS=-lpython2.7
@@ -433,8 +434,7 @@ JAVALIB=-L<path-to-raspbian_rootfs>/usr/lib/jvm/java-6-openjdk-armhf/jre/lib/arm
--with-system-redland --with-system-redland
Finally, when you are ready to run the binaries in Raspbian, Finally, when you are ready to run the binaries in Raspbian,
you may need to get more system libraries. you may need to get more system libraries, who knows.
Update your /etc/apt/sources.list as described in $ sudo apt-get install libreoffice # or similar
http://www.raspbian.org/RaspbianRepository and then: That installs libreoffice too, which you don't need because you have
$ sudo apt-get update just built one, but I don't know how to avoid it easily.
$ sudo apt-get build-dep libreoffice