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/"
-DPOSTGRESQL_LIBRARIES="../../postgresql/src/interfaces/libpq/"
-DSOCI_POSTGRESQL=ON -DSOCI_ODBC=OFF -DSOCI_SQLITE3=OFF
#Now make the soci libs
make && make install
And here is the error:
cd "libs/soci/src/backends/postgresql" && /usr/bin/c++
-Dsoci_postgresql_EXPORTS -DSOCI_ABI_VERSION=\"3.1\" -DHAVE_POSTGRESQL=1
-fPIC -pedantic -ansi -Wall -Wpointer-arith -Wcast-align -Wcast-qual
-Wfloat-equal -Wredundant-decls -Wno-long-long -std=c++98 -fPIC
-I"libs/postgresql/src/interfaces/libpq" -I"libs/soci/src/core" -o
CMakeFiles/soci_postgresql.dir/session.cpp.o -c
"libs/soci/src/backends/postgresql/session.cpp"
In file included from
libs/soci/src/backends/postgresql/soci-postgresql.h:28:0,
from libs/soci/src/backends/postgresql/session.cpp:9:
libs/postgresql/src/interfaces/libpq/libpq-fe.h:29:26: fatal error:
postgres_ext.h: No such file or directory
compilation terminated.
Thanks,
Stefano
------------------------------------------------------------------------------
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