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. ERROR: ldd outputLine: "libmysqlclient.so.18 => not found" linuxdeployqt
Forum Updated to NodeBB v4.3 + New Features

ERROR: ldd outputLine: "libmysqlclient.so.18 => not found" linuxdeployqt

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 650 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.
  • A Offline
    A Offline
    Ahsan Niaz
    wrote on 14 Jan 2021, 15:15 last edited by
    #1

    Hi, I have created a project on QT creator which is linked with multiple cpp exes. Most of these exes are working with (-lsqlite3). Data base is directly linked to whole project
    Process of Deployment:

    • I have downloaded release from github which is named as linuxdeployqt-7-x86_64.AppImage and is placed in DOWNLOADS folder
    • I have exported the path of qt by
    export PATH=/home/kaleem/Qt5.9.1/5.9.1/gcc_64/bin/:$PATH
    
    • i have created a folder named(processorder) in Downloads directory.
    • (processorder) folder has three files, one is the binary named(Process_Order), 2nd file is .desktop file and the third is icon file which is in png format

    after all this, i opened terminal in downloads and ran following command

    ./linuxdeployqt-7-x86_64.AppImage processorder/Process_Orders -unsupported-allow-new-glibc -appimage
    

    It gave me the following errors

    ERROR: ldd outputLine: "libmysqlclient.so.18 => not found"
    ERROR: for binary: "/home/kaleem/Qt5.9.1/5.9.1/gcc_64/plugins/sqldrivers/libqsqlmysql.so"
    ERROR: Please ensure that all libraries can be found by ldd. Aborting.
    

    then i changed my command to

    /linuxdeployqt-7-x86_64.AppImage processorder/Process_Orders -unsupported-allow-new-glibc -exclude-libs=libmysqlclient.so
    

    but i still got same error. Can anybody help me deploy my project successfully?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      siddarthkay
      wrote 12 days ago last edited by
      #2

      you were close, the right way to exclude this lib would have been

      -exclude-libs=libqsqlmysql
      
      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