How To Remove unused dependencies ? /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
I compiled QT 4.8.4 statically with built in MySQL Driver and my application is using a MySQL Connection.
Everything works just fine, the static file has about 46 MB.
But if i run ldd on my programm, it says there's a dependencie to libmysqlclient.so.18
If I run ldd with the parameter -u to show the unused dependencies it lists
I don't know how to get rid of that stupid dependecie.
Has anybody any suggestions ?
You cannot get rid of the depdency of the Qt Mysql plugin on the Mysql runtime if you want Mysql access.
You may be able to build a static version of the Mysql library and get the Qt plugin to link against that. Consult the Mysql build documentation.
Is there a way to compile the libmysqlclient into my project ?
bq. You may be able to build a static version of the Mysql library and get the Qt plugin to link against that. Consult the Mysql build documentation.
But isn't the libmysqlclient.a static ?
I linked against it whe i compiled QT statically.
I used this command to configure QT
./configure -static -debug -opensource -developer-build -L/home/lokal/qtinclude -l:libmysqlclient.a -l:libssl.a -l:libcrypto.a -l:libmysqld.a -qt-sql-mysql -openssl-linked -qt-zlib -nomake demos -nomake examples -nomake tools -no-qt3support -no-opengl -no-webkit -prefix /usr/local/Trolltech/Qt-4.8.4_debug_static -v