Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to compile a QMySQL with mysql-install-community-5.6.14.0.
Qt 6.11 is out! See what's new in the release blog

How to compile a QMySQL with mysql-install-community-5.6.14.0.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.0k 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.
  • C Offline
    C Offline
    casison_7
    wrote on last edited by
    #1

    Hi I am casison_7 a little debutant on QtCreator! I used version 5.1.0
    I would like to write an application for my final study using a database mysql-install-community-5.6.14.0. I suddenly I realize that some files that tells me QtCreator does not exist!
    So please! help! How to compile a QMySQL! I do not know how!
    Note that I put the same in other forums, but no answers!
    I report on you! last espoire! Excuse my English I'm French

    #casison_7
    "intelligence plus character that is the goal of true education"
    Dr Martin Luther King Jr

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Check "Qt 5 documentation about building QMYSQL":http://qt-project.org/doc/qt-5.0/qtsql/sql-driver.html#qmysql-for-mysql-4-and-higher

      http://anavi.org/

      1 Reply Last reply
      0
      • C Offline
        C Offline
        casison_7
        wrote on last edited by
        #3

        Thank you alot! But I used Qt Creator 5.1.0 with MinGW 4.8 in windows 7 OS Ultimate edition! and this link: C: \ Qt \ 4.6.2 \ src \ plugins \ SQLDrivers \ mysql as given in the documentation does not exist!

        #casison_7
        "intelligence plus character that is the goal of true education"
        Dr Martin Luther King Jr

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [quote author="casison_7" date="1386462805"]Thank you alot! But I used Qt Creator 5.1.0 with MinGW 4.8 in windows 7 OS Ultimate edition! and this link: C: \ Qt \ 4.6.2 \ src \ plugins \ SQLDrivers \ mysql as given in the documentation does not exist!
          [/quote]

          Seems that you have an installation issue. The latest stable version of Qt Creator is 2.8.1 and it is available for download within the Qt 5.1.1 package "here":http://qt-project.org/downloads

          http://anavi.org/

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            I had same problem with path in documentation to compile DB2 driver plugin...

            Make a search to find the right folder.

            Something like qt-install-dir/5.1.1/Src/qtbase/src/plugins...

            1 Reply Last reply
            0
            • C Offline
              C Offline
              casison_7
              wrote on last edited by
              #6

              Thank you to both for your helps! I'll first go to installed it, this version 5.1.1, then come back for more
              thanks

              #casison_7
              "intelligence plus character that is the goal of true education"
              Dr Martin Luther King Jr

              1 Reply Last reply
              0
              • C Offline
                C Offline
                casison_7
                wrote on last edited by
                #7

                Oops! another error during the creation of QMySQL!
                In fact, the Qt documentation says:
                @Open the DOS prompt, go to C: \ MySQL \ mysql51 \ lib \ opt, and run the Following commands:
                Reprint-d libmysql.lib
                dlltool-k-d-l libmysql.def libmysql.a@
                And when I taped all that, here is what it gives in Qt Creator 5.1.1(installed)
                @reimp is not recognized as an internal or external command @
                what to do?

                #casison_7
                "intelligence plus character that is the goal of true education"
                Dr Martin Luther King Jr

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  Sorry, I'm on Linux...

                  But, an hint I can tell you to try finding the solution is searching your file system to find where is the command that is not recognized and add the path at env variables...

                  This part of the documentation about compiling sql drivers plugins is really outdated and crappy! Not the same quality like the rest of doc.

                  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
                  • Unsolved