From 00c0e239e168c83583522ed3f24d9eca8c7a20d6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 17 Apr 2009 15:49:12 +0000 Subject: Pretty sketchy notes on creating a cross-compilation environment for RISC OS NetSurf, and building NetSurf with it. svn path=/trunk/netsurf/; revision=7120 --- Docs/BUILDING-ROCross | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Docs/BUILDING-ROCross (limited to 'Docs/BUILDING-ROCross') diff --git a/Docs/BUILDING-ROCross b/Docs/BUILDING-ROCross new file mode 100644 index 000000000..9e09603c7 --- /dev/null +++ b/Docs/BUILDING-ROCross @@ -0,0 +1,89 @@ +Creating a cross-compilation environment for RISC OS NetSurf +============================================================ + +These instructions assume that you're starting from ~. +They also assume that you've got GCCSDK's prerequisites installed. + +Building the toolchain +====================== + +$ svn co svn://svn.riscos.info/gccsdk/trunk/ gccsdk + +$ cd gccsdk/gcc4 + +$ ./build-world + +Creating the environment +======================== + +A. Autobuilder packages +----------------------- + +$ cd ../ + +$ mkdir build-ab + +$ cat > build-ab/build-setvars +GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin +GCCSDK_INSTALL_ENV=/home/riscos/env +RO_SHAREDLIBS=no +AB_ELFBUILD=yes + +$ cd build-ab + +$ ../autobuild/build zlib1g + +$ ../autobuild/build c-ares + +$ ../autobuild/build libxml2 + +$ ../autobuild/build/libssl0.9.8 + +$ ../autobuild/build/libcurl3 + +$ ../autobuild/build/libjpeg62 + +$ ../autobuild/build/liblcms1 + +$ ../autobuild/build/libpng12-0 + +$ ../autobuild/build/libmng1 + +$ ../autobuild/build/oslib + +B. NetSurf libraries +==================== + +$ cd ~ + +$ svn co svn://svn.netsurf-browser.org/trunk netsurf + +$ (cd netsurf/libnsbmp ; make TARGET=riscos install) + +$ (cd netsurf/libnsgif ; make TARGET=riscos install) + +$ (cd netsurf/libsvgtiny ; make TARGET=riscos install) + +$ (cd netsurf/rufl ; make install) + +$ (cd netsurf/pencil ; make install) + +$ (cd netsurf/libharu ; make TARGET=riscos PREFIX=/home/riscos/env) + +$ cd netsurf/libparserutils + +$ cat >Makefile.config.override +CFLAGS += -DWITH_ICONV_FILTER + +$ make TARGET=riscos install + +$ cd ~ + +$ (cd netsurf/hubbub ; make TARGET=riscos install) + +Compiling NetSurf +================= + +$ cd netsurf/netsurf + +$ make TARGET=riscos -- cgit v1.2.3