Development:QuickStart: Difference between revisions
m Changed links to intra-wiki links, better highlighted commands |
|||
Line 15: | Line 15: | ||
* cvs | * cvs | ||
* doxygen | * doxygen | ||
* and the stuff mentioned by the Dependency Matrix. | * and the stuff mentioned by the [[Development:Dependency Matrix|Dependency Matrix]]. | ||
Debian users will use aptitude or apt-get. | Debian users will use aptitude or apt-get. | ||
SuSE users have YaST. | SuSE users have YaST. | ||
Line 29: | Line 28: | ||
Change to the working directory and execute<br> | Change to the working directory and execute<br> | ||
$ cvs -z6 -d:pserver:[email protected]:/sources/adonthell co adonthell | $ cvs -z6 -d:pserver:[email protected]:/sources/adonthell co adonthell | ||
(more info | (more info [[Development:CVS|here]]) | ||
Congratulation, now you got the sourcecode. The tricky part | Congratulation, now you got the sourcecode. The tricky part | ||
Line 39: | Line 37: | ||
=== Compilation === | === Compilation === | ||
assuming you are in | assuming you are in | ||
''/home/enrico/vanilla_adonthell'' | ''/home/enrico/vanilla_adonthell'' | ||
$ make | $ mkdir adonthell-build && cd adonthell-build | ||
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../adonthell | |||
$ make | |||
(details | (details [[Development:Compiling|here]]) | ||
=== Installation === | === Installation === | ||
make sure you are in | make sure you are in | ||
''/home/enrico/vanilla_adonthell/adonthell-build'' | ''/home/enrico/vanilla_adonthell/adonthell-build'' | ||
$ sudo make install | $ sudo make install | ||
or as superuser | or as superuser | ||
$# make install | $# make install | ||
=== Test === | === Test === | ||
make sure you are in | make sure you are in | ||
''/home/enrico/vanilla_adonthell/adonthell-build'' | ''/home/enrico/vanilla_adonthell/adonthell-build'' | ||
$ test/worldtest -g ../adonthell/test/ | $ test/worldtest -g ../adonthell/test/ | ||
the previous command should present a small demo | the previous command should present a small demo | ||
=== | === Doc === | ||
has to be created | has to be created | ||
change dir to ''../adonthell/doc/'' and execute | change dir to ''../adonthell/doc/'' and execute | ||
$ doxygen reference.cfg | $ doxygen reference.cfg | ||
API-doc is now in | API-doc is now in | ||
''/home/enrico/vanilla_adonthell/adonthell/doc/adonthell-api/index.html'' | ''/home/enrico/vanilla_adonthell/adonthell/doc/adonthell-api/index.html'' | ||
A slightly outdated version is available [http://adonthell.berlios.de/api/ online]. It is usually updated after larger changes to the code have taken place. |
Revision as of 09:21, 17 October 2008
Quickstart Guide
A step-by-step document on how to build the whole thing would help new users to get started, help new programmers understand the dependencies, and help experienced developers see places the process could be improved.
Warning
The most of this tutorial is just text,
commands are initiated by a dollar sign ($)
If you copy and paste the commands, let the $ out.
Preparation of the development environment
Make sure you installed needed software! You need:
- cvs
- doxygen
- and the stuff mentioned by the Dependency Matrix.
Debian users will use aptitude or apt-get. SuSE users have YaST.
Prepare a new working directory. Lets assume /home/enrico/vanilla_adonthell to be the working dir in this tutorial. If your username is not enrico, adapt it to your needs.
Obtaining the code
Change to the working directory and execute
$ cvs -z6 -d:pserver:[email protected]:/sources/adonthell co adonthell
(more info here)
Congratulation, now you got the sourcecode. The tricky part begins.
Compilation
assuming you are in /home/enrico/vanilla_adonthell
$ mkdir adonthell-build && cd adonthell-build $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../adonthell $ make
(details here)
Installation
make sure you are in /home/enrico/vanilla_adonthell/adonthell-build
$ sudo make install
or as superuser
$# make install
Test
make sure you are in /home/enrico/vanilla_adonthell/adonthell-build
$ test/worldtest -g ../adonthell/test/
the previous command should present a small demo
Doc
has to be created change dir to ../adonthell/doc/ and execute
$ doxygen reference.cfg
API-doc is now in /home/enrico/vanilla_adonthell/adonthell/doc/adonthell-api/index.html
A slightly outdated version is available online. It is usually updated after larger changes to the code have taken place.