[Development] standalone building of sql plugins

René J.V. Bertin rjvbertin at gmail.com
Tue Feb 7 17:25:57 CET 2017


Hello,

MacPorts has always shipped the Qt sql plugins as separate packages, so the main (QtBase) component could be built without unnecessary libraries installed. That is, qtbase is configured with -no-sql-$driver

This was implemented quite simply: to build say the PostGresql plugin we'd unpack the qtbase component (except for the mkspecs directory), and invoke the installed qmake in /path/to/source/qtbase/src/plugins/sqldrivers/psql . Run make and make install, and the libqsqlpsql.dylib binary would be installed in the appropriate location.

This approach is broken in Qt 5.8.0; is it still possible to build these plugins separately? Would this work by calling qmake in qtbase/src/sql for instance, with the appropriate arguments?

Thanks!

R.



More information about the Development mailing list