Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How To Remove unused dependencies ? /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
QtWS25 Last Chance

How To Remove unused dependencies ? /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hssjc
    wrote on 23 Feb 2013, 02:21 last edited by
    #1

    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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 23 Feb 2013, 08:06 last edited by
      #2

      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.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hssjc
        wrote on 23 Feb 2013, 20:08 last edited by
        #3

        Is there a way to compile the libmysqlclient into my project ?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on 25 Feb 2013, 04:27 last edited by
          #4

          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.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hssjc
            wrote on 25 Feb 2013, 07:54 last edited by
            #5

            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

            1 Reply Last reply
            0

            3/5

            23 Feb 2013, 20:08

            • Login

            • Login or register to search.
            3 out of 5
            • First post
              3/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved