Hi,
On 03/09/2012 06:24 PM, [email protected] wrote:
Date: Fri, 9 Mar 2012 15:04:39 +0000 From: Mateusz Loskot
<[email protected]> Subject: Re: [SOCI-users] Cannot compile
PostGreSQL Back end To: "General-purpose list for SOCI users."
<[email protected]> Message-ID:
<cabueae-whedqeeea4fww5m+w-jom_dvj0ehkzc68vvxf6vj...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8 On 9 March 2012 14:55, Hosanna
Higher Technologies Support <[email protected]>
wrote:
> Hi,
> I'm trying to compile PGS 9.xx but with no avail. Probing Down I have
> found two depending files in different Directory: libpq-fe.h in
> postgresql/src/interfaces/libpq/ and postgres_ext.h
> ?found in postgresql/src/include/.
> Here is the script I use. Note that MySQL builds with no problem
>
> #build soci
> cd "soci/src/"
> #clean it
> make clean
> cmake -G "Unix Makefiles" -DWITH_BOOST=OFF -DWITH_ORACLE=OFF
> -DCMAKE_INSTALL_PREFIX="../../../libsoutput/"
> -DCMAKE_VERBOSE_MAKEFILE=ON -DMYSQL_DIR="../../mysql/"
> -DMYSQL_INCLUDE_DIR="../../mysql/include/"
> -DMYSQL_LIBRARIES="../../mysql/libmysql/" -DWITH_MYSQL=ON
> -DSOCI_MYSQL=ON ?-DWITH_POSTGRESQL=ON
> -DPOSTGRESQL_INCLUDE_DIR="../../postgresql/src/interfaces/libpq/"
Any reason why you don't point to headers here:
-DPOSTGRESQL_INCLUDE_DIR="../../postgresql/src/include/"
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Yes, it fails with error:
soci-postgresql.h:28:22: fatal error: libpq-fe.h: No such file or directory
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users