2008-06-06 18:41:30 +04:00
|
|
|
--------------------------------------------------------------------------------
|
2010-02-13 12:55:28 +03:00
|
|
|
Build Instructions for BeOS and Haiku NetSurf 13 February 2010
|
2008-06-06 18:41:30 +04:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This document provides instructions for building the BeOS and Haiku version
|
|
|
|
of NetSurf and provides guidance on obtaining NetSurf's build dependencies.
|
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
BeOS NetSurf has been tested on Zeta and Haiku only for now. There are still some
|
2008-06-07 05:00:47 +04:00
|
|
|
issues to sort out for other BeOS versions.
|
2008-06-06 18:41:30 +04:00
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
Quick Start
|
|
|
|
=============
|
2008-06-06 18:41:30 +04:00
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
See the QUICK-START document, which provides a simple environment with
|
|
|
|
which you can fetch, build and install NetSurf and its dependencies.
|
2008-06-07 05:00:47 +04:00
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
The QUICK-START is the recommended way to build NetSurf for Haiku. BeOS needs too much manual
|
|
|
|
hacking to be built this way.
|
2008-06-07 05:00:47 +04:00
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
|
|
|
|
Manual building
|
2009-08-10 17:51:37 +04:00
|
|
|
================================
|
2008-06-07 05:00:47 +04:00
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
To build NetSurf on a BeOS, provided you have the relevant
|
2008-06-07 05:00:47 +04:00
|
|
|
build dependencies installed, simply run:
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
|
|
If that produces errors, you probably don't have some of NetSurf's build
|
|
|
|
dependencies installed. See "Obtaining NetSurf's dependencies" below. You
|
|
|
|
may need to "make clean" before attempting to build after installing the
|
|
|
|
dependencies. Also note BeOS has an old make command that won't work, see
|
|
|
|
below.
|
|
|
|
|
|
|
|
|
|
|
|
Obtaining NetSurf's dependencies
|
|
|
|
==================================
|
|
|
|
|
|
|
|
Many of NetSurf's dependencies are either installed or available for BeOS and
|
|
|
|
Haiku. The remainder must be installed manually.
|
|
|
|
|
2010-01-03 00:22:08 +03:00
|
|
|
The NetSurf project's libraries
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
The NetSurf project has developed several libraries which are required by
|
2015-08-17 21:06:56 +03:00
|
|
|
the browser. These are:
|
|
|
|
|
|
|
|
BuildSystem -- Shared build system, needed to build the other libraries
|
|
|
|
LibParserUtils -- Parser building utility functions
|
|
|
|
LibWapcaplet -- String internment
|
|
|
|
Hubbub -- HTML5 compliant HTML parser
|
|
|
|
LibCSS -- CSS parser and selection engine
|
|
|
|
LibNSGIF -- GIF format image decoder
|
|
|
|
LibNSBMP -- BMP and ICO format image decoder
|
|
|
|
LibROSprite -- RISC OS Sprite format image decoder
|
|
|
|
|
|
|
|
To fetch each of these libraries, run the appropriate commands from the
|
|
|
|
Docs/LIBRARIES file, from within your workspace directory.
|
2010-01-03 00:22:08 +03:00
|
|
|
|
|
|
|
To build and install these libraries, simply enter each of their directories
|
|
|
|
and run:
|
|
|
|
|
|
|
|
$ make install
|
|
|
|
|
2011-01-28 02:04:46 +03:00
|
|
|
| Note: We advise enabling iconv() support in libparserutils, which vastly
|
2010-01-03 00:22:08 +03:00
|
|
|
| increases the number of supported character sets. To do this,
|
|
|
|
| create a file called Makefile.config.override in the libparserutils
|
|
|
|
| directory, containing the following line:
|
|
|
|
|
|
|
|
|
| CFLAGS += -DWITH_ICONV_FILTER
|
|
|
|
|
|
|
|
|
| For more information, consult the libparserutils README file.
|
|
|
|
|
2008-06-07 05:00:47 +04:00
|
|
|
TODO: add some more here.
|
|
|
|
|
2015-08-17 21:06:56 +03:00
|
|
|
Additional requirements for BeOS
|
|
|
|
==================================
|
|
|
|
|
|
|
|
On Haiku, other libraries and tools are either shipped with the system or available through the
|
|
|
|
package repositories. For BeOS based systems, you will need to install and update all the
|
|
|
|
required tools, as described below.
|
|
|
|
|
2008-06-07 05:00:47 +04:00
|
|
|
rc
|
|
|
|
----
|
|
|
|
|
|
|
|
Building NetSurf needs the Haiku resource compiler (rc), that allows
|
|
|
|
importing files from resource definitions (.rdef).
|
|
|
|
|
|
|
|
$ cd <haiku-trunk-directory>
|
|
|
|
$ TARGET_PLATFORM=r5 jam -q rc
|
|
|
|
$ cp generated/objects/dano/x86/release/tools/rc/rc /boot/home/config/bin/
|
|
|
|
|
|
|
|
|
|
|
|
GNU make 3.81
|
|
|
|
---------------
|
|
|
|
|
|
|
|
BeOS has an old make tool, which won't work when building NetSurf.
|
|
|
|
Haiku has 3.81 which is the one that works. For BeOS, one has to replace
|
|
|
|
the original make with one built from the Haiku tree, or install it as gmake:
|
|
|
|
|
|
|
|
$ cd <haiku-trunk-directory>
|
|
|
|
$ TARGET_PLATFORM=r5 jam -q make
|
|
|
|
$ cp generated/objects/r5/x86/release/bin/make/make /boot/home/config/bin/gmake
|
2008-06-07 05:07:50 +04:00
|
|
|
|
|
|
|
|
2008-06-07 05:00:47 +04:00
|
|
|
cURL
|
|
|
|
------
|
|
|
|
|
|
|
|
NetSurf uses cURL to fetch files from the network.
|
|
|
|
There is a patch against the official version on HaikuPorts.
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
|
2014-01-04 21:07:11 +04:00
|
|
|
libpng
|
2008-06-07 05:00:47 +04:00
|
|
|
--------
|
|
|
|
|
2014-01-04 21:07:11 +04:00
|
|
|
NetSurf uses libPNG to display PNG files.
|
2008-06-07 05:00:47 +04:00
|
|
|
It should build just fine on BeOS.
|
|
|
|
|
|
|
|
|
|
|
|
libjpeg
|
|
|
|
---------
|
|
|
|
|
|
|
|
NetSurf uses libjpeg to display JPEG files.
|
|
|
|
It should already be available in your dev kit.
|
|
|
|
|
|
|
|
|
|
|
|
OpenSSL
|
|
|
|
----------
|
|
|
|
|
|
|
|
NetSurf uses OpenSSL for encrypted transfers.
|
|
|
|
|
|
|
|
|
|
|
|
General requirements
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
There is currently an issue on stdbool.h (unsigned char bool vs enum bool)
|
|
|
|
which needs to be fixed, for now one can use the Haiku version of the header
|
|
|
|
and copy it over the gcc-provided one.
|
|
|
|
$ cd <haiku-trunk-directory>
|
|
|
|
$ cp headers/build/gcc-2.95.3/stdbool.h /boot/develop/tools/gnupro/lib/gcc-lib/i586-pc-beos/2.95.3-beos-060710/include/stdbool.h
|
|
|
|
|
|
|
|
|
|
|
|
NetSurf might build on BeOS R5 but probably won't work on anything else than
|
|
|
|
BONE.
|