qt compiling plugin for postgres in static
-
i do this an work for dinamic
"C:\Qt\6.6.0\mingw_32_dro\bin\qt-cmake.bat" -G Ninja "/D/qt_build/qt-everywhere-src-6.6.0/qtbase/src/plugins/sqldrivers" -DCMAKE_INCLUDE_PATH="/C/Qt/Tools/PostgreSQL16/16/include" -DCMAKE_LIBRARY_PATH="/C/Qt/Tools/PostgreSQL16/16/lib" -DCMAKE_INSTALL_PREFIX="/C/Qt/Tools/pgsqldrivers_dro" --log-level=STATUS -Wno-dev
how to do this for static? -
i do this an work for dinamic
"C:\Qt\6.6.0\mingw_32_dro\bin\qt-cmake.bat" -G Ninja "/D/qt_build/qt-everywhere-src-6.6.0/qtbase/src/plugins/sqldrivers" -DCMAKE_INCLUDE_PATH="/C/Qt/Tools/PostgreSQL16/16/include" -DCMAKE_LIBRARY_PATH="/C/Qt/Tools/PostgreSQL16/16/lib" -DCMAKE_INSTALL_PREFIX="/C/Qt/Tools/pgsqldrivers_dro" --log-level=STATUS -Wno-dev
how to do this for static?@jchaviano You have to compile Qt statically, then there will also be static plugins.
-
@jchaviano You have to compile Qt statically, then there will also be static plugins.
@Christian-Ehrlicher
i use this por compiling
../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebviewHow do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins
-
@Christian-Ehrlicher
i use this por compiling
../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebviewHow do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins
So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what
/C/Qt/6.6.0/libs_32_static_dro
- why do you use msys here? It's not neded. -
So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what
/C/Qt/6.6.0/libs_32_static_dro
- why do you use msys here? It's not neded.this /C/Qt/6.6.0/libs_32_static_dro - is the output directory only that, i use the mysys2 is easy for my only that
-
@Christian-Ehrlicher
i use this por compiling
../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebviewHow do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins
@jchaviano
In this photo I show how even though I have the lib libqsqlpsql.a and qsqlpsql.prl in the plugins directory, it still does not recognize the driver for static. tell you that in dynamic the dll works correctly for me but in static no way -
So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what
/C/Qt/6.6.0/libs_32_static_dro
- why do you use msys here? It's not neded.@Christian-Ehrlicher
in dinamic ok
the problem is in static -
@Christian-Ehrlicher
in dinamic ok
the problem is in staticI really wonder why there is a documentation when noone is reading it.