PSQL Plugin Fehler
-
Compiler: Mingw64 gcc-10.1.0 http://www.winlibs.com/
QT-Version 5.14.2bei 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 FAILEDSo 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.