Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135254

REOPENED - Compile PostgresSql

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.16
    • Build System, SQL Support
    • None

    Description

      Hi,
      the issue reported in https://bugreports.qt.io/browse/QTBUG-65036 is still present with Qt 5.15.16 (opensource) under Windows (64 bit) and PostgreSQL 14.

      In short: the configure stops with an error "ERROR: Feature 'sql-psql' was enabled, but the pre-condition 'libs.psql' failed."

      It looks like Makefile is generated incorrectly:

      + cd /d C:\qt-everywhere-src-5.15.16-build\config.tests\psql && C:\qt-everywhere-src-5.15.16-build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_LIBDIR += \\\"C:/Temp/PostgreSQL/14/lib\\\"" "INCLUDEPATH += \\\"C:/Temp/PostgreSQL/14/include\\\"" "QMAKE_LIBS_PSQL=\"C:/Temp/PostgreSQL/14/lib/libpq.lib\"" "QMAKE_USE += psql" "QMAKE_LIBS_PSQL = C:
      Program Files\\PostgreSQL\\14\\lib
      libpq.lib" C:/qt-everywhere-src-5.15.16-build/config.tests/psql

      so QMAKE_LIBS_PSQL is always set to C:\Program Files\PostgreSQL however the installation of the PostgreSQL is in C:/Temp/PostgreSQL.

      Attachments

        1. config.log
          0.1 kB
          Ars Masiuk

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              ars.masiuk Ars Masiuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes