看起来你并不是要编译mysql库,而是要使用mysql库啊:
-llibmysql
然后接下来这两条信息是说没找到libmysql.dll文件:
c:/qt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot
find -llibmysql
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll] Error 1