2014-02-26 18:01:42 +04:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
Quick Build Steps for NetSurf 26 February 2014
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2014-03-16 18:03:01 +04:00
|
|
|
This document provides steps for building NetSurf.
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
|
|
|
|
Grab a temporary env.sh
|
2014-02-28 03:20:02 +04:00
|
|
|
--------------------------
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ wget http://git.netsurf-browser.org/netsurf.git/plain/Docs/env.sh
|
|
|
|
$ source env.sh
|
|
|
|
|
|
|
|
|
|
|
|
Install any packages you need
|
2014-02-28 03:20:02 +04:00
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
Installs all packages required to build NetSurf and the NetSurf project
|
|
|
|
libraries.
|
2014-02-26 18:01:42 +04:00
|
|
|
|
2014-03-16 18:03:01 +04:00
|
|
|
$ ns-package-install
|
2014-02-26 18:01:42 +04:00
|
|
|
|
2014-03-16 18:03:01 +04:00
|
|
|
If your package manager is not supported, you will have to install third
|
|
|
|
party packages manually.
|
2014-02-26 18:01:42 +04:00
|
|
|
|
2014-03-16 18:03:01 +04:00
|
|
|
|
|
|
|
Get the NetSurf project source code from Git
|
|
|
|
----------------------------------------------
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ ns-clone
|
|
|
|
|
|
|
|
|
|
|
|
Build and install our project libraries
|
2014-02-28 03:20:02 +04:00
|
|
|
-----------------------------------------
|
|
|
|
|
|
|
|
Updates NetSurf project library sources to latest, builds and installs them.
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ ns-pull-install
|
|
|
|
|
|
|
|
|
|
|
|
Switch to new NetSurf workspace
|
2014-02-28 03:20:02 +04:00
|
|
|
---------------------------------
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ rm env.sh
|
|
|
|
$ cd ~/dev-netsurf/workspace
|
|
|
|
$ source env.sh
|
|
|
|
|
|
|
|
|
|
|
|
Build and run NetSurf
|
2014-02-28 03:20:02 +04:00
|
|
|
-----------------------
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ cd netsurf
|
2014-03-16 18:06:47 +04:00
|
|
|
|
|
|
|
To build the native front end (the GTK front end on Linux, BSDs, etc) you
|
|
|
|
could do:
|
|
|
|
|
2014-02-26 18:01:42 +04:00
|
|
|
$ make
|
|
|
|
$ ./nsgtk
|
|
|
|
|
2014-03-16 18:06:47 +04:00
|
|
|
To build the framebuffer front end, you could do:
|
2014-02-26 18:01:42 +04:00
|
|
|
|
|
|
|
$ make TARGET=framebuffer
|
|
|
|
$ ./nsfb
|
|
|
|
|
2014-02-28 03:20:02 +04:00
|
|
|
|
|
|
|
Not working?
|
|
|
|
==============
|
|
|
|
|
|
|
|
If the above steps are inapplicable, or don't work, you can build manually.
|
|
|
|
Follow the instructions in the BUILDING-* documents in the Docs/ directory
|
|
|
|
the NetSurf browser source tree.
|
|
|
|
|