2009-07-29 15:56:26 +04:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Creating a cross-compilation environment for RISC OS NetSurf
|
|
|
|
--------------------------------------------------------------------------------
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-10 17:09:25 +04:00
|
|
|
| Note: If you want to do a native RISC OS build, on a RISC OS computer,
|
|
|
|
| consult the BUILDING-RISC_OS file.
|
2009-08-10 15:06:46 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
These instructions assume that you're starting from ~.
|
|
|
|
They also assume that you've got GCCSDK's prerequisites installed.
|
2009-04-17 19:49:12 +04:00
|
|
|
|
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
Building the toolchain
|
|
|
|
========================
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
Run the following commands.
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ svn co svn://svn.riscos.info/gccsdk/trunk/ gccsdk
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd gccsdk/gcc4
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ ./build-world
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ export GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ export GCCSDK_INSTALL_ENV=/home/riscos/env
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
Creating the environment
|
|
|
|
==========================
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
A. Autobuilder packages
|
|
|
|
-------------------------
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd ../
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ mkdir build-ab
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cat > build-ab/build-setvars
|
|
|
|
GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin
|
|
|
|
GCCSDK_INSTALL_ENV=/home/riscos/env
|
|
|
|
RO_SHAREDLIBS=no
|
|
|
|
AB_ELFBUILD=yes
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd build-ab
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ ../autobuilder/build zlib1g
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ ../autobuilder/build c-ares
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build libssl0.9.8
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build libcurl3
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build libjpeg62
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build liblcms1
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build libpng12-0
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build libmng1
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ ../autobuilder/build oslib
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
B. NetSurf libraries
|
|
|
|
----------------------
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
Install the NetSirf project's libraries as follows.
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd ~
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ svn co svn://svn.netsurf-browser.org/trunk netsurf
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd netsurf/libnsbmp ; make TARGET=riscos install)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd netsurf/libnsgif ; make TARGET=riscos install)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd netsurf/libsvgtiny ; make TARGET=riscos install)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd netsurf/rufl ; make install)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd netsurf/pencil ; make install)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ (cd netsurf/libharu ; make TARGET=riscos PREFIX=$GCCSDK_INSTALL_ENV)
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd netsurf/libparserutils
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cat >Makefile.config.override
|
|
|
|
CFLAGS += -DWITH_ICONV_FILTER
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ make TARGET=riscos install
|
|
|
|
|
|
|
|
$ cd ~
|
|
|
|
|
|
|
|
$ (cd netsurf/hubbub ; make TARGET=riscos install)
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-08-01 21:56:14 +04:00
|
|
|
$ (cd netsurf/libwapcaplet ; make TARGET=riscos install)
|
|
|
|
|
|
|
|
$ (cd netsurf/libcss ; make TARGET=riscos install)
|
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
C. Ancilliary tools
|
|
|
|
---------------------
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ svn co svn://svn.riscos.info/ccres/trunk ccres
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ (cd ccres ; make install)
|
|
|
|
|
|
|
|
$ (cd netsurf/tools/makerun ; make install)
|
|
|
|
|
|
|
|
|
|
|
|
Compiling NetSurf
|
|
|
|
===================
|
2009-05-07 18:04:03 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
Finally, to cross-compile NetSurf for RISC OS, do the following.
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ cd netsurf/netsurf
|
2009-04-17 19:49:12 +04:00
|
|
|
|
2009-07-29 15:56:26 +04:00
|
|
|
$ make TARGET=riscos
|