Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I have problems with QMYSQL Driver!
Forum Updated to NodeBB v4.3 + New Features

I have problems with QMYSQL Driver!

Scheduled Pinned Locked Moved General and Desktop
40 Posts 6 Posters 17.2k 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.
  • K Offline
    K Offline
    kaloo
    wrote on last edited by
    #3

    I succesfully maked the .def and .a library, but when I try to make

    "qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro"

    it says mysql.pro don`t exist. What shoul I do?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #4

      Do you have a file mysql.pro?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kaloo
        wrote on last edited by
        #5

        I made
        "qmake "INCLUDEPATH+=%mySQLDIR%\include" "LIBS+=%mySQLDIR%\lib\opt\libmysql.lib" -o Makefile mysql.pro" and "mingw32-make", I think it was a success. What should I do next?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #6

          I am not understanding your command line notation, especially with your "
          If you write a command line in this forum, you should embrace with '@'

          like this sample line
          @
          qmake test.pro
          @
          Just press on quote on my reply in order to see how to do.

          The example given will start qmake with an input file called "test.pro".

          I assume that you try to start qmake with mysql.pro as an input file. If the file does not exist, you do not have an input file. That is the reason why was asking the question.
          So, do you have mysql.pro as an input file?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DenisKormalev
            wrote on last edited by
            #7

            What should you do after building mysql plugin?
            Hm. Maybe use it?

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kaloo
              wrote on last edited by
              #8

              Where I did wrong?
              !http://img641.imageshack.us/img641/1700/unledvfc.png!

              I can`t find

              • libqsqlmysql4.a
              • libqsqlmysqld4.a
              • qsqlmysql4.dll
              • qsqlmysqld4.dll
              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #9

                [quote author="kaloo" date="1307294661"]
                "qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro"

                it says mysql.pro don`t exist. What shoul I do?
                [/quote]

                your last statement was the reason to ask my question, if mysql.pro exists. I guess you added this file now. Your output does not show the error message anymore. Is that right?

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kaloo
                  wrote on last edited by
                  #10

                  Yes, I have mysql.pro now, and there is no output error message, but I can`t find the 4 files...

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #11

                    What do you have in your mysql.pro?

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kaloo
                      wrote on last edited by
                      #12

                      @QT += core
                      QT += sql

                      QT -= gui

                      TARGET = mysql
                      CONFIG += console
                      CONFIG -= app_bundle

                      TEMPLATE = app

                      SOURCES += main.cpp
                      @

                      but I`m guessing that must be other things in the file...

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #13

                        typically you would have also the following statements @
                        INCLUDEPATH ...
                        LIBS ...
                        @
                        I do not know the details of qmake, but possibly you can do as you did.

                        Maybe should do a
                        @
                        mingw32-make clean
                        @
                        to clean up the directories and retry.
                        Unfportunately, I cannot give more or better advice, since I am not using mingw on windows.

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kaloo
                          wrote on last edited by
                          #14

                          I need a good tutorial for helping me to make the QMYSQL Driver for Qt 2.2 ( latest version )

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            koahnig
                            wrote on last edited by
                            #15

                            did you try "these":http://www.lmgtfy.com/?q=qmsql+tutorial+

                            Vote the answer(s) that helped you to solve your issue(s)

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kaloo
                              wrote on last edited by
                              #16

                              Yes... I tried... I know how to use google...

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                koahnig
                                wrote on last edited by
                                #17

                                Sorry, than I cannot help any further.
                                Good luck!

                                Vote the answer(s) that helped you to solve your issue(s)

                                1 Reply Last reply
                                0
                                • K Offline
                                  K Offline
                                  kaloo
                                  wrote on last edited by
                                  #18

                                  Thanks for your help.

                                  At the begin there is no mysql folder, but I made a new project named mysql and put it in the sqldrives. That is what should I do? Or I did it wrong?

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    andre
                                    wrote on last edited by
                                    #19

                                    There is (or at least should be) a mysql.pro file in your Qt sources. If there isn't, you either are not looking hard enough, or you have an incomplete installation of the Qt sources. The former is more likely. Just making up a .pro file yourself is obviously not going to result in a valid project that is going to help you build the drivers.

                                    1 Reply Last reply
                                    0
                                    • K Offline
                                      K Offline
                                      kaloo
                                      wrote on last edited by
                                      #20

                                      Andre I think I found the mysql.pro through the source files. Ill try tomorrow to make the QMYSQL Driver. If Ill have any problems, I`ll make a reply tomorrow.

                                      1 Reply Last reply
                                      0
                                      • K Offline
                                        K Offline
                                        kaloo
                                        wrote on last edited by
                                        #21

                                        I found the right mysql.pro, I tiped
                                        @
                                        qmake "INCLUDE+=C:..." "LIBS+=C:...\libmysql.a" -o Makefile mysql.pro
                                        mingw32-make
                                        @

                                        then I got !http://img651.imageshack.us/img651/614/unledswx.png!
                                        Where is the problem?

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          andre
                                          wrote on last edited by
                                          #22

                                          Did you prepare the MySql libs for use with the MinGw compiler, as is described in the countless other topics you claimed to have read on this issue?

                                          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