Skip to content

Commit 795f1aa

Browse files
committed
Some documentation updates for linux
1 parent 6b4e565 commit 795f1aa

File tree

1 file changed

+33
-36
lines changed

1 file changed

+33
-36
lines changed

doc/linux.t2t

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ sudo debi
230230

231231
== A practical case: Building QGIS and GRASS from source on Ubuntu with ECW and MrSID formats support ==
232232

233-
The following procedure has been tested on Ubuntu 8.04, 8.10 and 9.04 32bit. If you want
234-
to use different versions of the software (gdal, grass, qgis), just make the
235-
necessary adjustments to the following code. This guide assumes that you don't have
236-
installed any previous version of gdal, grass and qgis.
233+
The following procedure has been tested on Ubuntu 8.04, 8.10 and 9.04 32bit. If
234+
you want to use different versions of the software (gdal, grass, qgis), just
235+
make the necessary adjustments to the following code. This guide assumes that
236+
you don't have installed any previous version of gdal, grass and qgis.
237237

238238
=== Step 1: install base packages ===
239239

@@ -251,7 +251,7 @@ Go to the ERDAS web site http://www.erdas.com/ and follow the links
251251
then download the "'''Image Compression SDK Source Code 3.3'''" (you'll need to make a registration
252252
and accept a license).
253253

254-
Uncompress the arquive in a proper location (this guide assumes
254+
Uncompress the archive in a proper location (this guide assumes
255255
that all the downloaded source code will be placed in the user home)
256256
and the enter the newly created folder
257257

@@ -373,26 +373,35 @@ Before downloading and compile GRASS source code you need to install a few
373373
other libraries and programs. We can do this through apt
374374

375375
```
376-
sudo apt-get install flex bison libreadline5-dev libncurses5-dev lesstif2-dev debhelper dpatch libtiff4-dev \
377-
tcl8.4-dev tk8.4-dev fftw-dev xlibmesa-gl-dev libfreetype6-dev autoconf2.13 autotools-dev \
378-
libgdal1-dev proj libjpeg62-dev libpng12-dev libpq-dev unixodbc-dev doxygen fakeroot cmake \
379-
python-dev python-qt4-common python-qt4-dev python-sip4 python2.5-dev sip4 libglew1.5-dev libxmu6 \
380-
libqt4-dev libgsl0-dev python-qt4 swig python-wxversion python-wxgtk2.8 libwxgtk2.8-0 libwxbase2.8-0 tcl8.4-dev \
381-
tk8.4-dev tk8.4 libfftw3-dev libfftw3-3
376+
sudo apt-get install flex bison libreadline5-dev libncurses5-dev lesstif2-dev \
377+
debhelper dpatch libtiff4-dev tcl8.4-dev tk8.4-dev fftw-dev xlibmesa-gl-dev \
378+
libfreetype6-dev autoconf2.13 autotools-dev libgdal1-dev proj libjpeg62-dev \
379+
libpng12-dev libpq-dev unixodbc-dev doxygen fakeroot cmake python-dev \
380+
python-qt4-common python-qt4-dev python-sip4 python2.5-dev sip4 libglew1.5-dev \
381+
libxmu6 \ libqt4-dev libgsl0-dev python-qt4 swig python-wxversion \
382+
python-wxgtk2.8 libwxgtk2.8-0 libwxbase2.8-0 tcl8.4-dev tk8.4-dev tk8.4 \
383+
libfftw3-dev libfftw3-3
382384
```
383385

384386
At this point we can get the GRASS source code: you may want to download it
385-
through svn or maybe you want just to download the latest available source code arquive.
386-
For example the GRASS 6.4rc4 is available at http://grass.itc.it/grass64/source/grass-6.4.0RC4.tar.gz
387+
through svn or maybe you want just to download the latest available source code
388+
archive. For example the GRASS 6.4rc4 is available at
389+
http://grass.itc.it/grass64/source/grass-6.4.0RC4.tar.gz
387390

388-
Uncompress the arquive, enter the newly created folder and run configure with a few specific parameters
391+
Uncompress the archive, enter the newly created folder and run configure with a few specific parameters
389392

390393
```
391-
CFLAGS="-fexceptions" ./configure --with-tcltk-includes=/usr/include/tcl8.4 --with-proj-share=/usr/share/proj --with-gdal=/usr/local/bin/gdal-config \
394+
CFLAGS="-fexceptions" ./configure \
395+
--with-tcltk-includes=/usr/include/tcl8.4 \
396+
--with-proj-share=/usr/share/proj \
397+
--with-gdal=/usr/local/bin/gdal-config \
392398
--with-python=/usr/bin/python2.5-config
393399
```
394400

395-
The additional gcc option -fexceptions is necessary to enable exceptions support in GRASS libraries. It is currently the only way to avoid QGIS crashes if a fatal error happens in GRASS library. See also http://trac.osgeo.org/grass/ticket/869
401+
The additional gcc option -fexceptions is necessary to enable exceptions
402+
support in GRASS libraries. It is currently the only way to avoid QGIS crashes
403+
if a fatal error happens in GRASS library. See also
404+
http://trac.osgeo.org/grass/ticket/869
396405

397406
Then as usual (it will take a while)
398407

@@ -420,36 +429,24 @@ grass64 -wxpython
420429
```
421430

422431

423-
=== Step 6: compile and install QGIS ===
432+
=== Step 6: Compile and install QGIS ===
424433

425-
As for GRASS you can obtain the QGIS source code from different sources,
426-
for instance from svn or just by downloading one of the source code arquives available
427-
at http://www.qgis.org/download/sources.html
428-
429-
For example download the QGIS 1.1.0 source code here http://download.osgeo.org/qgis/src/qgis_1.1.0.tar.gz
430-
431-
uncompress the arquive and enter the newly created folder
434+
As for GRASS you can obtain the QGIS source code from different sources as described
435+
in section 2 above. Once you have the sources, create a build directory in them:
432436

433437
```
434-
cd /qgis_1.1.0
438+
cd Quantum-GIS
439+
mkdir build
440+
cd build
435441
```
436442

437443
then run ccmake
438444

439445
```
440-
ccmake .
441-
```
442-
443-
press the "c" key, then when the option list will appear we need to manually
444-
configure the "GRASS_PREFIX" parameter. Scroll down until the "GRASS_PREFIX" will appear,
445-
press enter and manually set it to
446-
447-
```
448-
/usr/local/grass-6.4.0RC4
446+
ccmake ..
449447
```
450448

451-
then press enter again.
452-
449+
Press the "c" key to do an initial configure.
453450
Press the "c" again and the option "Press [g] to generate and exit" will appear.
454451
Press the "g" key to generate and exit.
455452

0 commit comments

Comments
 (0)