Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT 4.8.4 -> problem with static linking and libmysqlclient.so.18
Qt 6.11 is out! See what's new in the release blog

QT 4.8.4 -> problem with static linking and libmysqlclient.so.18

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.7k Views 1 Watching
  • 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 last edited by
    #1

    Hello there,
    i linked QT 4.8.4 statically on Ubuntu 12.04. I can build static applications with the qtcreator without a problem, all libraries are included.
    I used the following command to compile qt statically:
    ./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
    If i build my application which uses QtSql, it has a depency to libmysqlclient.so.18.
    I want all libraries being included to my executable file.
    What am I doing wrong ? Is it necessary to add some extra parameters to qt creators build configuration ?
    Greetings Till

    1 Reply Last reply
    0

    • Login

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