GNUstep SVN Installation Guide
From GNUstepWiki
Revision as of 22:35, 5 March 2007 Thecat (Talk | contribs) Minimal configuration ← Previous diff |
Revision as of 17:36, 3 February 2009 Hns (Talk | contribs) Makefile Package Next diff → |
||
Line 1: | Line 1: | ||
- | This page is a step-by-step "Howto compile the last svn version of GNUstep". | + | This page is a step-by-step "How-to compile the latest svn version of GNUstep". It's mainly a short summary of different documents available. |
- | It's mainly a short summary of different documents available (and for some too out-of-date). | + | |
- | Wiki based, I hope this document will be the up-to-date installation guide. | + | |
- | == Introduction == | + | <b>NOTE:</b> Instruction on installing GNUstep on Windows are available at [[Installation on Windows]]. |
- | Three step are needed to build and install GNUstep from scratch : | + | |
- | * Building the Makefile package: this set up an environement to build everything else. | + | |
- | * Building library. | + | |
- | * Minimal configuration. | + | |
+ | == Prerequisites == | ||
+ | Make sure to have the libraries mentioned as [[Dependencies]] installed – from their specific web sites or using your packaging system. (Note that some distributions/variants put header files into separate *-dev or *-devel packages. In this case these must be installed, too!) You may also want to have a look at the article [[Platform compatibility]] for notes on your platform. | ||
- | == Building Makefile package == | + | ==Download== |
+ | svn co http://svn.gna.org/svn/gnustep/modules/core | ||
+ | See also [[Using Subversion]]. | ||
+ | |||
+ | == Makefile Package == | ||
+ | You should install these packages as root. | ||
<pre> | <pre> | ||
- | svn co http://svn.gna.org/svn/gnustep/tools/make/trunk/ gnustep-make | + | sudo |
- | ./configure --prefix=/usr/GNUstep | + | </pre> |
+ | Now, start with the Makefile Package. | ||
+ | <pre> | ||
+ | cd core/make | ||
+ | ./configure | ||
make | make | ||
make install | make install | ||
</pre> | </pre> | ||
+ | For configurations options see <code>./configure --help</code>. For example <code>./configure --with-layout=fhs</code> enables a more FHS-conformable filesystem layout. <code>./configure --prefix=MYPATH</code> will install into MYPATH instead of the standard /usr/GNUstep. Typical options are / (into root directly, as NeXT or Apple do), /usr/local/GNUstep, /opt/GNUstep. | ||
Extra configuration needed every time you use "GNUstep" from a command-line: | Extra configuration needed every time you use "GNUstep" from a command-line: | ||
<pre> | <pre> | ||
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh | . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh | ||
- | or | + | </pre> |
+ | For Bourne compatible shells, or | ||
+ | <pre> | ||
. /usr/GNUstep/System/Library/Makefiles/GNUstep.csh | . /usr/GNUstep/System/Library/Makefiles/GNUstep.csh | ||
</pre> | </pre> | ||
+ | For csh or tcsh. | ||
- | == Building Library == | + | == Base/Foundation Library == |
<pre> | <pre> | ||
- | svn co http://svn.gna.org/svn/gnustep/libs/base/trunk/ gnustep-base | + | cd core/base |
./configure | ./configure | ||
make | make | ||
Line 33: | Line 42: | ||
</pre> | </pre> | ||
+ | == GUI/AppKit Library == | ||
<pre> | <pre> | ||
- | svn co http://svn.gna.org/svn/gnustep/libs/gui/trunk/ gnustep-gui | + | cd core/gui |
./configure | ./configure | ||
make | make | ||
Line 40: | Line 50: | ||
</pre> | </pre> | ||
+ | == Backend Library == | ||
+ | The most stable GNUstep [[backend]] currently is the one dependent on libart, but is no longer actively developed. The libcairo has become the official backend but is still unstable. | ||
<pre> | <pre> | ||
- | svn co http://svn.gna.org/svn/gnustep/libs/back/trunk/ gnustep-back | + | cd core/back |
- | ./configure --enable-graphics=cairo --with-name=cairo --disable-glitz | + | ./configure --enable-graphics=cairo #for standard backend leave this line out |
make | make | ||
make install | make install | ||
</pre> | </pre> | ||
- | == Minimal configuration == | + | <!-- put this into platform:linux or sth! == Minimal configuration == |
- | <pre> | + | You may need to install package to use default font used by GNUstep. On Debian Etch, install <tt>ttf-bitstream-vera</tt> package. --> |
- | defaults write NSGlobalDomain GSBackend libgnustep-cairo | + | |
- | </pre> | + | |
- | + | ||
- | You may also need to install package to use default font used by GNUstep. On Debian Etch, install <tt>ttf-bitstream-vera</tt> package. | + |
Revision as of 17:36, 3 February 2009
This page is a step-by-step "How-to compile the latest svn version of GNUstep". It's mainly a short summary of different documents available.
NOTE: Instruction on installing GNUstep on Windows are available at Installation on Windows.
Contents |
Prerequisites
Make sure to have the libraries mentioned as Dependencies installed – from their specific web sites or using your packaging system. (Note that some distributions/variants put header files into separate *-dev or *-devel packages. In this case these must be installed, too!) You may also want to have a look at the article Platform compatibility for notes on your platform.
Download
svn co http://svn.gna.org/svn/gnustep/modules/core
See also Using Subversion.
Makefile Package
You should install these packages as root.
sudo
Now, start with the Makefile Package.
cd core/make ./configure make make install
For configurations options see ./configure --help
. For example ./configure --with-layout=fhs
enables a more FHS-conformable filesystem layout. ./configure --prefix=MYPATH
will install into MYPATH instead of the standard /usr/GNUstep. Typical options are / (into root directly, as NeXT or Apple do), /usr/local/GNUstep, /opt/GNUstep.
Extra configuration needed every time you use "GNUstep" from a command-line:
. /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
For Bourne compatible shells, or
. /usr/GNUstep/System/Library/Makefiles/GNUstep.csh
For csh or tcsh.
Base/Foundation Library
cd core/base ./configure make make install
GUI/AppKit Library
cd core/gui ./configure make make install
Backend Library
The most stable GNUstep backend currently is the one dependent on libart, but is no longer actively developed. The libcairo has become the official backend but is still unstable.
cd core/back ./configure --enable-graphics=cairo #for standard backend leave this line out make make install