[Interest] Building Qt from source ('libpq-fe.h' file not found)

Nuno Santos nunosantos at imaginando.pt
Wed Jan 28 13:14:38 CET 2015


I have just called ./configure —prefix=/path/to/build

Curiously, this is what configure says about sql drivers:

    -no-sql-<driver> ... Disable SQL <driver> entirely.
    -qt-sql-<driver> ... Enable a SQL <driver> in the Qt SQL module, by default
                         none are turned on.
    -plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to
                         at run time.

                         Possible values for <driver>:
                         [ db2 ibase mysql oci odbc psql sqlite sqlite2 tds ]

I have tried to make ./configure -no-sql-psql and that didn’t made any difference.



> On 28 Jan 2015, at 12:11, Konstantin Tokarev <annulen at yandex.ru> wrote:
> 
> 
> 
> 28.01.2015, 14:37, "Nuno Santos" <nunosantos at imaginando.pt <mailto:nunosantos at imaginando.pt>>:
>> Following your tip, I have manually changed the Makefile.Debug and Makefile.Release on the following path:
>> 
>> /Users/nsantos/Qt/5.4/Src/qtbase/src/plugins/sqldrivers/psql
>> 
>> It’s now continuing the work!
>> 
>> Can this be considered a bug in the source build configuration?
> 
> Kind of misconfiguration of build on your side.
> 
> BTW, [1] recommends building this plugin separately from main Qt build.
> 
> [1] http://doc.qt.io/qt-5/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above <http://doc.qt.io/qt-5/sql-driver.html#qpsql-for-postgresql-version-7-3-and-above>
> 
>> 
>> Thanks!
>> 
>> Regards,
>> 
>> Nuno
>>>  On 28 Jan 2015, at 11:31, Konstantin Tokarev <annulen at yandex.ru> wrote:
>>> 
>>>  28.01.2015, 14:28, "Nuno Santos" <nunosantos at imaginando.pt>:
>>>>  Yes,
>>>> 
>>>>  But that is the built in include path. I have tried to make
>>>> 
>>>>  CFLAGS=/opt/local/include/postgresql91/ make -j8
>>>> 
>>>>  But it didn’t worked.
>>>> 
>>>>  Ideas?
>>>  Makefiles, produced by qmake, don't respect overriding of variables like CFLAGS (they are assignaed with '=', not '?=')
>>> 
>>>  You need to pass include path through configure somehow (maybe setting CFLAGS variable will just work)
>>> 
>>>  --
>>>  Regards,
>>>  Konstantin
> 
> -- 
> Regards,
> Konstantin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150128/410422b4/attachment.html>


More information about the Interest mailing list