[Qgis-developer] notes and question on unix section of BuildingFromSource instructions

Peter Ersts ersts at amnh.org
Tue Sep 11 08:39:21 EDT 2007


icosa atropa wrote:
> Finally, I have a question.  i'm using feisty, and during dependecy
> install I had to make a package substitution with libgdal1.  Apt-get
> tells me:
>   

Icosa, you are right about the libgal library, it is a bit different for 
Feisty. Here is my initial apt-get statement I use on fresh copies of Feisty

sudo apt-get install subversion g++ qt4-designer qt4-dev-tools cmake 
postgresql-
8.2 sip4 python-sip4 python-sip4-dbg python-sip4-dev grass libgrass 
libgrass-dev
libgeos-dev gdal-bin libgdal1-1.3.2-dev flex bison gsl-bin libgsl0-dev 
sqlite3
libsqlite3-dev python-qt4-dev

That should be all you need to get qgis to compile....

> and again
>
>   E: Couldn't find package libgdal1-grass
>   

I believe that you only need this lib if you are building grass from 
source also


> so I use libgdal1-1.3.2-grass instead.  No problem, easy going until
> compile-time.
>
>   [ 25%] Building CXX object
> src/core/CMakeFiles/qgis_core.dir/spatialindex/rtree/Statistics.o
>   make[2]: *** No rule to make target
> `/build/buildd/gdal-1.3.2/debian/tmp/usr/lib/libgdal1.3.2.so', needed
> by  `src/core/libqgis_core.so'.  Stop.
>   make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
>   make: *** [all] Error 2
>   

cmake is not finding the gdal library. From the build directory you can 
type:
ccmake .
in a terminal window and then you can set the correct path. You can also 
use a command line option to set the path to the gdal library. However, 
if you use the apt-get list above you should not have any problems.

Hope that helps a little.
-pete

-- 
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: (212)-496-3488 or (212)-769-5742
Fax: (212)-313-7295 or (212)-769-5292
Web: http://cbc.amnh.org
Web: http://geospatial.amnh.org

Open Source, Open Mind.
...evolving through community cooperation to change the world bit by bit





More information about the Qgis-developer mailing list