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 msvc mysql driver, ERROR addExclusiveBuilds() requires at least two arguments

Qt msvc mysql driver, ERROR addExclusiveBuilds() requires at least two arguments

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 4.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.
  • R Offline
    R Offline
    reilly0
    wrote on last edited by
    #1

    I have qt built with msvc, installed the msvs plugin, everything works wonderfully.
    I wanted to open a mysql db connection; this failed with "mysql driver not installed" or something like.
    No problem. The instructions are clear:
    cd QTDIR\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:/MySQL/include" "LIBS+=C:/MYSQL/MySQL Server <version>/lib/opt/libmysql.lib" mysql.pro
    nmake
    This seemed clear, and I replaced the paths with the locations for my headers and lib.
    However, I get Project ERROR: addExclusiveBuilds() requires at least two arguments.
    I have been unable to locate any posts addressing this sequence of events.
    I would be grateful if anyone could suggest a solution. Thank you.

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

      Hi and welcome to devnet,

      Are you sure you are using the right qmake ? Since you don't give the full pith you might be using your system Qt 4 qmake rather that your Qt 5

      Hope it helps

      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
      • R Offline
        R Offline
        reilly0
        wrote on last edited by
        #3

        Good idea that had not occurred to me, thanks!
        Turned out not to be the problem, sadly.
        I've solved it in the short term by simply using the mysql C api directly.
        Thanks again. : )

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

          I've often had problem with path containing spaces, you could try the same line replacing "MySQL Server <version>" with it's 8.3 version

          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