[Qgis-user] Help Needed - Building qgis with Postgres

Elavazhagan.M elavazhagan.mouniandy at kcubeconsulting.com
Mon May 21 07:58:40 EDT 2007


If we specify the full path to the PostGreSql along with the file name
(pg_config), it doesn't compile.
But specifying only the path to pg_config compiles. The
following ./configure command worked fine for me:

----------------------------------------------------
./configure --with-qtdir=/usr/local/Trolltech/Qt-4.2.3
--prefix=/usr/local/qgis --with-gdal=/usr/local/bin/gdal-config
--with-postgresql=/usr/local/pgsql/bin
--with-geos=/usr/local/bin/geos-config --with-sqlite3dir=/usr/local
--with-grass=/usr/local/grass-6.2.1
-----------------------------------------------------

Thanks.
Regards,
Ela.


On Mon, 2007-05-21 at 16:31 +0530, Elavazhagan.M wrote:

> Hi,
> 
> I am trying to configure qgis with PostGreSQL-8.1.9 support using the
> following command:
> 
> --------------------------------------------------------------------------------
> ./configure \
> --with-qtdir=/usr/local/Trolltech/Qt-4.2.3 \
> --prefix=/usr/local/qgis \
> --with-gdal=/usr/local/bin/gdal-config \
> --with-postgresql=/usr/local/pgsql/bin/pg_config \
> --with-geos=/usr/local/bin/geos-config \
> --with-sqlite3dir=/usr/local \
> --with-grass=/usr/local/grass-6.2.1
> ----------------------------------------------------------------------------
> 
> As mentioned in the above command, I have installed all the required
> libraries in those locations only. But, the result of the command is
> like the following with no version information of PostGreSQL.
> 
> ==========================================
> qgis 0.8.0
> ------------------------------------------
> GDAL/OGR      : yes (Version 1.4.1)
> GEOS          : yes (Version 2.2.3)
> PostgreSQL    : yes (Version )
> GRASS         : yes
> SPIT          : yes
> Georeferencer : no
> WFS           : no
> GPS/GPX       : yes
> PROJ4         : yes
> SQLITE3       : yes
> Python        : no
> 
> CPPFLAGS      :  -I/usr/local/include
> CXXFLAGS      : -g -O2
> 
> Debug         : no
> Plugin dir    : /usr/local/qgis/lib/qgis
> 
> The binary will be installed in /usr/local/qgis/bin
> 
> The build is using Qt in /usr/local/Trolltech/Qt-4.2.3
> Linking with Qt using -lQtCore -lQt3Support -lQtGui -lQtNetwork
> -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg
> -lQtTest -lQtDesigner
> ------------------------------------------
> Configure finished, type 'make' to build.
> ---------------------------------------------------------------------------------
> 
> After configuring with the above command, when I run 'make' it gives
> me the following error:
> 
> ----------------------------------------------------------------------------------
> creating libqgis_core.la
> (cd .libs && rm -f libqgis_core.la && ln -s ../libqgis_core.la
> libqgis_core.la)
> make[4]: Leaving directory
> `/root/gis/downloads/qgis/qgis-0.8.0/src/core'
> make[3]: Leaving directory
> `/root/gis/downloads/qgis/qgis-0.8.0/src/core'
> Making all in ui
> make[3]: Entering directory
> `/root/gis/downloads/qgis/qgis-0.8.0/src/ui'
> make[3]: *** No rule to make target `ui_qgisappbase.h', needed by
> `all'.  Stop.
> make[3]: Leaving directory
> `/root/gis/downloads/qgis/qgis-0.8.0/src/ui'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/gis/downloads/qgis/qgis-0.8.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/gis/downloads/qgis/qgis-0.8.0'
> make: *** [all] Error 2
> ---------------------------------------------------------------------------------
> 
> Do anyone know what are the possible causes for this error? (I'm
> facing this build error only when I include PostGreSQL support.)
> Kindly help me out to resolve this issue.
> 
> Thanks.
> Regards,
> Ela. 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-user/attachments/20070521/900d3503/attachment.html


More information about the Qgis-user mailing list