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. ld: library not found for -lmysqlclient_r (when trying to build mysql driver on mac)
QtWS25 Last Chance

ld: library not found for -lmysqlclient_r (when trying to build mysql driver on mac)

Scheduled Pinned Locked Moved Solved Installation and Deployment
22 Posts 2 Posters 11.4k 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.
  • L Offline
    L Offline
    LeeH
    wrote on 28 May 2017, 22:24 last edited by LeeH
    #21

    Thanks for that. I shall leave you in peace for a while as I explore them and see how things turn out, and thanks so much for your help so far. I really appreciate it.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LeeH
      wrote on 30 May 2017, 22:17 last edited by LeeH
      #22

      YEEAAH!

      After another 2 days of battling, I FINALLY got it working. I had totally given up on the conventional method of doing this for mac, as it was getting me no where. I still cannot for the life of me understand why Qt didn't load this very popular driver in the release and why building this driver on mac is so difficult when I had previously got it working on windows the conventional way much easier (thanks to @SGaist and others).

      Anyway Homebrew worked by installing Qt and MySql together: (this takes a very long time)

      brew install qt5 --with-mysql
      

      after that installed Qt creator:

      brew cask install qt-creator
      

      then configured MySql as normal through terminal as it seems you can't get sysprefpane this way.

      Hopefully this can help others, and a big thanks to @SGaist for taking the time!

      1 Reply Last reply
      0

      21/22

      28 May 2017, 22:24

      • Login

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