https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-09-24T15:59:59ZQGIS Issue TrackingQGIS Application - Bug report #17179: QGIS2.99 build does not find libpq-fe.h on OS X Sierrahttps://issues.qgis.org/issues/17179?journal_id=830562017-09-24T15:59:59ZDavid Marteaudavid.marteau@3liz.com
<ul></ul><p>Hi David</p>
<p>Assuming that the Postgresql95 (or 96, but I'm still using 95 atm) port is installed, the cmake configure locate the postgres library:</p>
<pre>
-- Found PostgreSQL: /opt/local/lib/postgresql95/libpq.dylib
</pre>
<p>CMake use pg_config to locate the posgres library and includes, check that the CMakeCache.txt created in the build directory contains the following (should be quite similar with postgres96):</p>
<pre>
//Path to POSTGRESQL base directory
POSTGRESQL_PREFIX:PATH=
POSTGRES_CONFIG:FILEPATH=/opt/local/bin/pg_config
POSTGRES_CONFIG_PREFER_PATH:STRING=/bin
POSTGRES_INCLUDE_DIR:STRING=/opt/local/include/postgresql95
POSTGRES_LIBRARY:STRING=/opt/local/lib/postgresql95/libpq.dylib
//Determines whether POSTGRESQL support should be built
WITH_POSTGRESQL:BOOL=TRUE
</pre>
<p>There is also some cases where include paths are not reported to the CMakeLists.txt of some modules (see <a class="external" href="https://github.com/qgis/QGIS/pull/5196">https://github.com/qgis/QGIS/pull/5196</a>).</p>
<p>It seems that the compilation fail on compiling test, did the compilation succeeded when building the provider module itself ?</p> QGIS Application - Bug report #17179: QGIS2.99 build does not find libpq-fe.h on OS X Sierrahttps://issues.qgis.org/issues/17179?journal_id=830642017-09-25T09:55:58ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #17179: QGIS2.99 build does not find libpq-fe.h on OS X Sierrahttps://issues.qgis.org/issues/17179?journal_id=872142018-02-22T11:52:52ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Resolution</strong> set to <i>invalid</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Closing for lack of feedback, please reopen if necessary.</p>