Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. PSQL Plugin Fehler

PSQL Plugin Fehler

Scheduled Pinned Locked Moved Solved German
1 Posts 1 Posters 293 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GCOH
    wrote on last edited by GCOH
    #1

    Compiler: Mingw64 gcc-10.1.0 http://www.winlibs.com/
    QT-Version 5.14.2

    bei qt-5.12.8 tritt dieser Fehler nicht auf!

    .\configure -recheck-all -openssl -opengl desktop -platform win32-g++ -prefix c:\qt\5.14.2 -icu -debug-and-release -plugin-sql-odbc -plugin-sql-sqlite -plugin-sql-psql -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz

    looking for library psql
    Trying source 0 (type pkgConfig) of library psql ...
    pkg-config use disabled globally.
    => source produced no result.
    Trying source 1 (type psqlConfig) of library psql ...
    pg_config not found.
    => source produced no result.
    Trying source 2 (type psqlEnv) of library psql ...

    • cd /d D:\qt-everywhere-src-5.14.2\config.tests\psql && D:\qt-everywhere-src-5.14.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_USE += psql" "QMAKE_LIBS_PSQL = -llibpq -lws2_32 -ladvapi32" D:/qt-everywhere-src-5.14.2/config.tests/psql
    • cd /d D:\qt-everywhere-src-5.14.2\config.tests\psql && set MAKEFLAGS=& mingw32-make

    g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -I. -ID:\qt-everywhere-src-5.14.2\qtbase\mkspecs\win32-g++ -o main.o main.cpp
    g++ -Wl,-s -Wl,-subsystem,console -mthreads -o psql.exe main.o -lpq.dll.a -lws2_32 -ladvapi32
    a:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpq.dll.a
    collect2.exe: error: ld returned 1 exit status
    mingw32-make: *** [makefile:69: psql.exe] Error 1
    => source failed verification.
    Trying source 3 (type psqlEnv) of library psql ...
    => source failed condition '!config.win32'.
    test config.qtbase_sqldrivers.libraries.psql FAILED

    So sieht das bei qt-5.12.8 aus:

    looking for library psql
    Trying source 0 (type pkgConfig) of library psql ...
    pkg-config use disabled globally.
    => source produced no result.
    Trying source 1 (type psqlConfig) of library psql ...
    pg_config not found.
    => source produced no result.
    Trying source 2 (type psqlEnv) of library psql ...

    • cd /d D:\qt-everywhere-src-5.12.8\config.tests\psql && D:\qt-everywhere-src-5.12.8\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_USE += psql" "QMAKE_LIBS_PSQL = a:/mingw64/x86_64-w64-mingw32/lib/libpq.dll.a a:/mingw64/x86_64-w64-mingw32/lib/libws2_32.a a:/mingw64/x86_64-w64-mingw32/lib/libadvapi32.a" D:/qt-everywhere-src-5.12.8/config.tests/psql
    • cd /d D:\qt-everywhere-src-5.12.8\config.tests\psql && set MAKEFLAGS=& mingw32-make

    g++ -c -fno-keep-inline-dllexport -g -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -I. -ID:\qt-everywhere-src-5.12.8\qtbase\mkspecs\win32-g++ -o main.o main.cpp
    g++ -Wl,-subsystem,console -mthreads -o psql.exe main.o a:\mingw64\x86_64-w64-mingw32\lib\libpq.dll.a a:\mingw64\x86_64-w64-mingw32\lib\libws2_32.a a:\mingw64\x86_64-w64-mingw32\lib\libadvapi32.a
    => source accepted.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved