[Interest] Compiling MySql plugin under Qt 5.8
Dennis Lange
dennis at lumalab.net
Thu Sep 29 19:49:33 CEST 2016
I made a clean checkout and now it works with:
./configure -developer-build -opensource -nomake examples -nomake tests
-confirm-license -plugin-sql-mysql
Maybe the problem was that I came from dev and afterwards made a
checkout to 5.8?
Am 29.09.2016 um 16:28 schrieb Dennis Lange:
> 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?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
More information about the Interest
mailing list