How to link mysql library to Qt compiled statically? -


i have trouble lately linking mysql library qt static. here had done far:

1) compile qt 5.4.2 static

2) compile mysql plugin driver

3) after copy .dll , .a file both static , non-static qt's plugin folder

4) non-static qt, go normal, can't compile project static qt

in .pro file

libs += -lc:/qt/static/5.3.1/plugins/sqldrivers -lqsqlmysql  qtplugin += libqsqlmysql 

error : :-1: error: cannot find -llibqsqlmysql

i warning on .pro file :

project warning: plugin class name not determined libqsqlmysql plugin. 

please help


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -