How To Remove unused dependencies ? /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
-
wrote on 23 Feb 2013, 02:21 last edited by
Hello there,
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
/usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
I don't know how to get rid of that stupid dependecie.
Has anybody any suggestions ?
Greetings
hssjc -
wrote on 23 Feb 2013, 08:06 last edited by
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.
-
wrote on 23 Feb 2013, 20:08 last edited by
Is there a way to compile the libmysqlclient into my project ?
-
wrote on 25 Feb 2013, 04:27 last edited by
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.
-
wrote on 25 Feb 2013, 07:54 last edited by
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
3/5