特殊:Badtitle/NS100:BuildingQuantumGisPoint8FromSource:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第85行: | 第85行: | ||
<pre><nowiki> | <pre><nowiki> | ||
Error validating server certificate for 'https://svn.qgis.org:443': | Error validating server certificate for 'https://svn.qgis.org:443': | ||
- The certificate is not issued by a trusted authority. Use the | - The certificate is not issued by a trusted authority. Use the | ||
fingerprint to validate the certificate manually! | fingerprint to validate the certificate manually! | ||
Certificate information: | Certificate information: | ||
- Hostname: svn.qgis.org | - Hostname: svn.qgis.org | ||
- Valid: from Apr 1 00:30:47 2006 GMT until Mar 21 00:30:47 2008 GMT | - Valid: from Apr 1 00:30:47 2006 GMT until Mar 21 00:30:47 2008 GMT | ||
- Issuer: Developer Team, Quantum GIS, Anchorage, Alaska, US | - Issuer: Developer Team, Quantum GIS, Anchorage, Alaska, US | ||
- Fingerprint: 2f:cd:f1:5a:c7:64:da:2b:d1:34:a5:20:c6:15:67:28:33:ea:7a:9b | - Fingerprint: 2f:cd:f1:5a:c7:64:da:2b:d1:34:a5:20:c6:15:67:28:33:ea:7a:9b | ||
(R)eject, accept (t)emporarily or accept (p)ermanently? | (R)eject, accept (t)emporarily or accept (p)ermanently? | ||
</nowiki></pre> | </nowiki></pre> | ||
第106行: | 第106行: | ||
The second option above is the destination / install dir, and the xdebug tells the script to build QGIS with debug symbols and verbose debug output. At the end of the autogen / configure process called by the script above you should see output like below, indicating that QGIS is going to be built with all its bells & whistles... | The second option above is the destination / install dir, and the xdebug tells the script to build QGIS with debug symbols and verbose debug output. At the end of the autogen / configure process called by the script above you should see output like below, indicating that QGIS is going to be built with all its bells & whistles... | ||
<pre><nowiki> | <pre><nowiki> | ||
========================================== | ========================================== | ||
qgis 0.8.0 | qgis 0.8.0 | ||
第111行: | 第112行: | ||
GDAL/OGR : yes (Version 1.2.6) | GDAL/OGR : yes (Version 1.2.6) | ||
GEOS : yes (Version 2.1.4) | GEOS : yes (Version 2.1.4) | ||
PostgreSQL : yes (Version 8.1.4) | |||
GRASS : yes | GRASS : yes | ||
SPIT : yes | SPIT : yes | ||
第119行: | 第120行: | ||
SQLITE3 : yes | SQLITE3 : yes | ||
Python : yes | Python : yes | ||
CPPFLAGS : | CPPFLAGS : | ||
CXXFLAGS : -g -O2 | CXXFLAGS : -g -O2 | ||
Debug : no | Debug : no | ||
Plugin dir : /home/timlinux/apps/lib/qgis | Plugin dir : /home/timlinux/apps/lib/qgis | ||
The binary will be installed in /home/timlinux/apps/bin | The binary will be installed in /home/timlinux/apps/bin | ||
The build is using Qt in /usr | The build is using Qt in /usr | ||
Linking with Qt using -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner | Linking with Qt using -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner |
2007年12月6日 (四) 10:07的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BuildingQuantumGisPoint8FromSource }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/af | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Afrikaans| [[::BuildingQuantumGisPoint8FromSource/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ar | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|العربية| [[::BuildingQuantumGisPoint8FromSource/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/az | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|azərbaycanca| [[::BuildingQuantumGisPoint8FromSource/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/bcc | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|جهلسری بلوچی| [[::BuildingQuantumGisPoint8FromSource/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/bg | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|български| [[::BuildingQuantumGisPoint8FromSource/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/br | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|brezhoneg| [[::BuildingQuantumGisPoint8FromSource/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ca | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|català| [[::BuildingQuantumGisPoint8FromSource/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/cs | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|čeština| [[::BuildingQuantumGisPoint8FromSource/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/de | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Deutsch| [[::BuildingQuantumGisPoint8FromSource/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/el | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Ελληνικά| [[::BuildingQuantumGisPoint8FromSource/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/es | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|español| [[::BuildingQuantumGisPoint8FromSource/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/fa | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|فارسی| [[::BuildingQuantumGisPoint8FromSource/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/fi | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|suomi| [[::BuildingQuantumGisPoint8FromSource/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/fr | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|français| [[::BuildingQuantumGisPoint8FromSource/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/gu | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|ગુજરાતી| [[::BuildingQuantumGisPoint8FromSource/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/he | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|עברית| [[::BuildingQuantumGisPoint8FromSource/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/hu | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|magyar| [[::BuildingQuantumGisPoint8FromSource/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/id | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Bahasa Indonesia| [[::BuildingQuantumGisPoint8FromSource/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/it | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|italiano| [[::BuildingQuantumGisPoint8FromSource/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ja | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|日本語| [[::BuildingQuantumGisPoint8FromSource/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ko | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|한국어| [[::BuildingQuantumGisPoint8FromSource/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ksh | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Ripoarisch| [[::BuildingQuantumGisPoint8FromSource/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/mr | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|मराठी| [[::BuildingQuantumGisPoint8FromSource/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ms | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Bahasa Melayu| [[::BuildingQuantumGisPoint8FromSource/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/nl | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Nederlands| [[::BuildingQuantumGisPoint8FromSource/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/no | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|norsk| [[::BuildingQuantumGisPoint8FromSource/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/oc | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|occitan| [[::BuildingQuantumGisPoint8FromSource/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/pl | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|polski| [[::BuildingQuantumGisPoint8FromSource/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/pt | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|português| [[::BuildingQuantumGisPoint8FromSource/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ro | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|română| [[::BuildingQuantumGisPoint8FromSource/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/ru | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|русский| [[::BuildingQuantumGisPoint8FromSource/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/si | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|සිංහල| [[::BuildingQuantumGisPoint8FromSource/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/sq | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|shqip| [[::BuildingQuantumGisPoint8FromSource/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/sr | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|српски / srpski| [[::BuildingQuantumGisPoint8FromSource/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/sv | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|svenska| [[::BuildingQuantumGisPoint8FromSource/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/th | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|ไทย| [[::BuildingQuantumGisPoint8FromSource/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/tr | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Türkçe| [[::BuildingQuantumGisPoint8FromSource/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/vi | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|Tiếng Việt| [[::BuildingQuantumGisPoint8FromSource/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/yue | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|粵語| [[::BuildingQuantumGisPoint8FromSource/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/zh | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|中文| [[::BuildingQuantumGisPoint8FromSource/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/zh-hans | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|中文(简体)| [[::BuildingQuantumGisPoint8FromSource/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource | UbuntuHelp:BuildingQuantumGisPoint8FromSource | {{#if: | :}}BuildingQuantumGisPoint8FromSource}}/zh-hant | • {{#if: UbuntuHelp:BuildingQuantumGisPoint8FromSource|中文(繁體)| [[::BuildingQuantumGisPoint8FromSource/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BuildingQuantumGisPoint8FromSource|:BuildingQuantumGisPoint8FromSource|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BuildingQuantumGisPoint8FromSource/zh | | {{#ifexist: BuildingQuantumGisPoint8FromSource/zh | | {{#ifeq: {{#titleparts:BuildingQuantumGisPoint8FromSource|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BuildingQuantumGisPoint8FromSource|1|-1|}} | zh | | }}
Building QGIS 0.8 with Qt4.x
Requires: Ubuntu Edgy See Also: BuildingQuantumGisFromSource Document Maintainer: This document is maintained by Tim Sutton (tim _at_ linfiniti.com) These notes are for if you want to build QGIS from source. One of the major aims here is to show how this can be done using binary packages for all dependencies - building only the core QGIS stuff from source. Currently the gdal grass raster driver needs to be built from source too - Ill revise these notes when a suitable package is available. I prefer this approach because it means we can leave the business of managing system packages to apt and only concern ourselves with coding QGIS! Note this document is still under construction...and is continually evolving. As I write this QGIS 0.8 is undergoing major changes and is still considered unstable. QGIS 0.8 is a major revision of the QGIS codebase, including a port to Qt4. I will describe how to install it alongside your existing QGIS 0.7.4 install (which you can install using the procedure described in BuildingQuantumGisPoint7FromSource). This document assumes you have made a fresh install and have a 'clean' system. These instructions should work fine if this is a system that has already been in use for a while, you may need to just skip those steps which are irrelevant to you. /!\ Note: This is a 'cut and paste' tutorial - in most cases you can simply copy the commands listed in codeblocks that look like this:
somecommand to be pasted
/!\ Note: This document is still under construction.
Prepare apt
The packages qgis depends on to build are available in the "universe" component of Ubuntu. This is not activated by default, so you need to activate it:
- Edit your /etc/apt/sources.list file.
2. Uncomment the all the lines starting with "deb" Also you will need to be running (K)Ubuntu 'edgy' in order for all dependencies to be met. Now update your local sources database:
sudo apt-get update
Install Qt4
sudo apt-get install libqt4-core libqt4-debug libqt4-debug-dev libqt4-dev libqt4-gui libqt4-qt3support libqt4-sql lsb-qt4 qt4-designer qt4-dev-tools qt4-doc qt4-qtconfig uim-qt gcc libapt-pkg-perl resolvconf
/!\ A Special Note: If you are following this set of instructions on a system where you already have Qt3 development tools installed, there will be a conflict between Qt3 tools and Qt4 tools. For example, qmake will point to the Qt3 version not the Qt4. Ubuntu Qt4 and Qt3 packages are designed to live alongside each other. This means that for example if you have them both installed you will have three qmake exe's:
/usr/bin/qmake -> /etc/alternatives/qmake /usr/bin/qmake-qt3 /usr/bin/qmake-qt4
The same applies to all other Qt binaries. You will notice above that the canonical 'qmake' is managed by apt alternatives, so before we start to build QGIS, we need to make Qt4 the default. To return Qt3 to default later you can use this same process. You can use apt alternatives to correct this so that the Qt4 version of applications is used in all cases:
sudo update-alternatives --config qmake sudo update-alternatives --config uic sudo update-alternatives --config designer sudo update-alternatives --config assistant sudo update-alternatives --config qtconfig sudo update-alternatives --config moc sudo update-alternatives --config lupdate sudo update-alternatives --config lrelease sudo update-alternatives --config linguist
Use the simple command line dialog that appears after running each of the above commands to select the Qt4 version of the relevant applications.
Install additional software dependencies required by QGIS
sudo apt-get install gdal-bin libgdal1-dev libgeos-dev proj libtool libgdal-doc libhdf4g-dev libhdf4g-run autoconf2.13 automake1.9 python-dev swig libgsl0-dev g++ libjasper-1.701-dev libtiff4-dev subversion gsl-bin libsqlite3-dev sqlite3 ccache make libpq-dev flex bison firefox
GRASS Specific Steps
/!\ Note: If you don't need to build with GRASS support, you can skip this section. Now you can install grass from dapper:
sudo apt-get install grass libgrass-dev libgdal1-grass
Setup ccache (Optional)
You should also setup ccache to speed up compile times:
cd /usr/local/bin sudo ln -s /usr/bin/ccache gcc sudo ln -s /usr/bin/ccache g++
Prepare your development environment
As a convention I do all my development work in $HOME/dev/<language>, so in this case we will create a work environment for C++ development work like this:
mkdir -p ${HOME}/dev/cpp cd ${HOME}/dev/cpp
This directory path will be assumed for all instructions that follow.
Check out the QGIS Source Code
There are two ways the source can be checked out. Use the anonymous method if you do not have edit privaleges for the QGIS source repository, or use the developer checkout if you have permissions to commit source code changes. 1. Anonymous Checkout
cd ${HOME}/dev/cpp svn co https://svn.qgis.org/repos/qgis/trunk/qgis qgis
2. Developer Checkout
cd ${HOME}/dev/cpp svn co --username <yourusername> https://svn.qgis.org/repos/qgis/trunk/qgis qgis
The first time you check out the source you will be prompted to accept the qgis.org certificate. Press 'p' to accept it permanently:
Error validating server certificate for 'https://svn.qgis.org:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: svn.qgis.org - Valid: from Apr 1 00:30:47 2006 GMT until Mar 21 00:30:47 2008 GMT - Issuer: Developer Team, Quantum GIS, Anchorage, Alaska, US - Fingerprint: 2f:cd:f1:5a:c7:64:da:2b:d1:34:a5:20:c6:15:67:28:33:ea:7a:9b (R)eject, accept (t)emporarily or accept (p)ermanently?
Starting the compile
I compile my development version of QGIS into my ~/apps directory to avoid conflicts with Ubuntu packages that may be under /usr. This way for example you can use the binary packages of QGIS on your system along side with your development version. I suggest you do something similar:
mkdir -p ${HOME}/apps
I have written a script to automate building on debian. Simply go into the qgis checkout dir and run the script to commence building:
cd ${HOME}/dev/cpp/qgis ./build.sh ${HOME}/apps debug
The second option above is the destination / install dir, and the xdebug tells the script to build QGIS with debug symbols and verbose debug output. At the end of the autogen / configure process called by the script above you should see output like below, indicating that QGIS is going to be built with all its bells & whistles...
========================================== qgis 0.8.0 ------------------------------------------ GDAL/OGR : yes (Version 1.2.6) GEOS : yes (Version 2.1.4) PostgreSQL : yes (Version 8.1.4) GRASS : yes SPIT : yes Georeferencer : yes GPS/GPX : yes PROJ4 : yes SQLITE3 : yes Python : yes CPPFLAGS : CXXFLAGS : -g -O2 Debug : no Plugin dir : /home/timlinux/apps/lib/qgis The binary will be installed in /home/timlinux/apps/bin The build is using Qt in /usr Linking with Qt using -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner ------------------------------------------ Configure finished, type 'make' to build.
The script will carry on to build QGIS - it may take a little while to go and have a cup of your favourite beverage while you wait...
Running QGIS
Once the compile is complete it should pop up a page in firefox with unit test results. At the time of writing the unit tests are just stubs - we still need to create the test implementations - so dont worry to much about their output at the moment. Now you can try to run QGIS:
$HOME/apps/bin/qgis
If all has worked properly the QGIS application should start up and appear on your screen. Please visit http://qgis.org for information on joining our mailing lists and getting involved in the project further.