Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. --------------------------------------------------------------------------------
  2.   Creating a cross-compilation environment for RISC OS NetSurf
  3. --------------------------------------------------------------------------------
  4.  
  5.   | Note: If you want to do a native RISC OS build, on a RISC OS computer,
  6.   |       consult the BUILDING-RISC_OS file.
  7.  
  8.   These instructions assume that you're starting from ~.
  9.   They also assume that you've got GCCSDK's prerequisites installed.
  10.  
  11.  
  12.   Building the toolchain
  13. ========================
  14.  
  15.   Run the following commands.
  16.  
  17.       $ svn co svn://svn.riscos.info/gccsdk/trunk/ gccsdk
  18.  
  19.       $ cd gccsdk/gcc4
  20.  
  21.       $ ./build-world
  22.  
  23.       $ export GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin
  24.  
  25.       $ export GCCSDK_INSTALL_ENV=/home/riscos/env
  26.  
  27.   Creating the environment
  28. ==========================
  29.  
  30.   A. Autobuilder packages
  31. -------------------------
  32.  
  33.       $ cd ../
  34.  
  35.       $ mkdir build-ab
  36.  
  37.       $ cat > build-ab/build-setvars
  38.       GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin
  39.       GCCSDK_INSTALL_ENV=/home/riscos/env
  40.       RO_SHAREDLIBS=no
  41.       AB_ELFBUILD=yes
  42.  
  43.       $ cd build-ab
  44.  
  45.       $ ../autobuilder/build zlib1g
  46.  
  47.       $ ../autobuilder/build c-ares
  48.  
  49.       $ ../autobuilder/build libssl0.9.8
  50.  
  51.       $ ../autobuilder/build libcurl3
  52.  
  53.       $ ../autobuilder/build libjpeg62
  54.  
  55.       $ ../autobuilder/build liblcms1
  56.  
  57.       $ ../autobuilder/build libpng12-0
  58.  
  59.       $ ../autobuilder/build libmng1
  60.  
  61.       $ ../autobuilder/build oslib
  62.  
  63.   B. NetSurf libraries
  64. ----------------------
  65.  
  66.   Install the NetSirf project's libraries as follows.
  67.  
  68.       $ cd ~
  69.  
  70.       $ svn co svn://svn.netsurf-browser.org/trunk netsurf
  71.  
  72.       $ (cd netsurf/libnsbmp ; make TARGET=riscos install)
  73.  
  74.       $ (cd netsurf/libnsgif ; make TARGET=riscos install)
  75.  
  76.       $ (cd netsurf/libsvgtiny ; make TARGET=riscos install)
  77.  
  78.       $ (cd netsurf/rufl ; make install)
  79.  
  80.       $ (cd netsurf/pencil ; make install)
  81.  
  82.       $ (cd netsurf/libharu ; make TARGET=riscos PREFIX=$GCCSDK_INSTALL_ENV)
  83.  
  84.       $ cd netsurf/libparserutils
  85.  
  86.       $ cat >Makefile.config.override
  87.       CFLAGS += -DWITH_ICONV_FILTER
  88.  
  89.       $ make TARGET=riscos install
  90.  
  91.       $ cd ~
  92.  
  93.       $ (cd netsurf/hubbub ; make TARGET=riscos install)
  94.  
  95.       $ (cd netsurf/libwapcaplet ; make TARGET=riscos install)
  96.  
  97.       $ (cd netsurf/libcss ; make TARGET=riscos install)
  98.  
  99.   C. Ancilliary tools
  100. ---------------------
  101.  
  102.       $ svn co svn://svn.riscos.info/ccres/trunk ccres
  103.  
  104.       $ (cd ccres ; make install)
  105.  
  106.       $ (cd netsurf/tools/makerun ; make install)
  107.  
  108.  
  109.   Compiling NetSurf
  110. ===================
  111.  
  112.   Finally, to cross-compile NetSurf for RISC OS, do the following.
  113.  
  114.       $ cd netsurf/netsurf
  115.  
  116.       $ make TARGET=riscos
  117.