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. Macdeployqt - ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"
Forum Updated to NodeBB v4.3 + New Features

Macdeployqt - ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.6k 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.
  • _ Offline
    _ Offline
    _nik
    wrote on last edited by
    #1

    If I run the following command on my Mac (OS X 10.9 with Qt 5.3):

    @macdeployqt MyApplication.app/ -dmg -qmldir=/Users/nik/dev/MyApplication/MyApplication/qml@

    I get the following error message:

    @ERROR: no file at "/opt/local/lib/mysql55/lib/libmysqlclient.18.dylib"@

    Since I do use SQL in my application, I need to fix that one.

    There is also a "bug report":https://bugreports.qt-project.org/browse/QTBUG-21913 about that error, but there was no action taken.

    I have got QT += sql included in my project file and do use QSqlDatabase together with some others cool SQL stuff.

    Can you please help me to fix that error? I have tried to run the application on some Mac's, but it is not working.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Currently you might have to copy that library by hand in your bundle and correct the paths yourself (just make a little script for that)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _nik
        wrote on last edited by
        #3

        Do you know where that file is located? I have tried to find it (libmysqlclient.18.dylib), but I could not find it.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have mysql installed ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            _nik
            wrote on last edited by
            #5

            Nope I don't just Qt 5.3.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then you need to install the mysql client library using e.g. macports

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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