[Interest] Compiling MySql plugin under Qt 5.8

Dennis Lange dennis at lumalab.net
Thu Sep 29 16:28:28 CEST 2016


Hi everybody,

as I am new on this list I like to thank everybody who make it possible
that we are able to use such an awesome development environment.

Because I have a need to use qtlocation I start to compile Qt 5.8 from
git. While doing so I try to activate the mysql plugin.

In the moment I am on Debian Jessie and to solve system dependencies I
used apt-get install libmysqlclient-dev mysql-client.

Now if I am using:

cd $QTDIR/qtbase/src/plugins/sqldrivers/mysql

and run:

qmake

I will get

Project ERROR: Library 'mysql' is not defined.

even if I use

qmake "INCLUDEPATH+=/usr/include/mysql"
"LIBS+=-L/usr/lib/x86_64-linux-gnu -lmysqlclient_r" mysql.pro

I will get

Project ERROR: Library 'mysql' is not defined.

so I tried to configure Qt globally in $QTDIR with:

./configure -developer-build -opensource -nomake examples -nomake tests
-confirm-license -plugin-sql-mysql

but this result in

ERROR: Feature 'mysql' was enabled, but the pre-condition 'libs.mysql'
failed. Check config.log for details.

But config.log is empty

Any idea how to solve this problem?



More information about the Interest mailing list