[Qgis-user] Postgres dependency on mac build
John Abraham
jabraham at ucalgary.ca
Sun Apr 20 09:03:58 PDT 2008
I'm trying to build the "diagram" branch on MacOSX Leopard. I
followed the instructions in the docs, and did get it compiled and
running. I'm pretty proud of myself since I haven't programmed in C
for a decade or so (java programmer now.)
Except there is one problem. The Postgres stuff wasn't found by
cmake, so there was no Postgis support in my build.
So I tried to set up cmake to find my postgres. I found the file
FindPostgres.cmake and found that it uses environment variables, so
tried to set those using -D options to cmake. Now it won't compile at
all, with the following error. I do have a libpq-fe.h in /usr/local/
pgsql/include. I didn't make Postgres from source, just installed it.
Thanks for any help,
--
John Abraham
jabraham at ucalgary.ca
[ 34%] Building CXX object src/app/CMakeFiles/qgis.dir/qgisapp.o
In file included from /Users/jabraham/Development/qgis/src/src/app/
qgisapp.cpp:168:
/Users/jabraham/Development/qgis/src/src/app/qgsdbsourceselect.h:
27:22: error: libpq-fe.h: No such file or directory
/Users/jabraham/Development/qgis/src/src/app/qgsdbsourceselect.h:112:
error: ‘PGconn’ has not been declared
/Users/jabraham/Development/qgis/src/src/app/qgsdbsourceselect.h:118:
error: ‘PGconn’ has not been declared
/Users/jabraham/Development/qgis/src/src/app/qgsdbsourceselect.h:141:
error: ISO C++ forbids declaration of ‘PGconn’ with no type
/Users/jabraham/Development/qgis/src/src/app/qgsdbsourceselect.h:141:
error: expected ‘;’ before ‘*’ token
make[2]: *** [src/app/CMakeFiles/qgis.dir/qgisapp.o] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2
More information about the Qgis-user
mailing list