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. "Cannot find file: mysql.pro" while building MySQL driver in Qt
QtWS25 Last Chance

"Cannot find file: mysql.pro" while building MySQL driver in Qt

Scheduled Pinned Locked Moved Solved General and Desktop
34 Posts 6 Posters 10.8k 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 3 Feb 2018, 22:07 last edited by
    #24

    Are you sure that your MySQL library is built for MinGW ?

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

    C 1 Reply Last reply 3 Feb 2018, 22:36
    1
    • S SGaist
      3 Feb 2018, 22:07

      Are you sure that your MySQL library is built for MinGW ?

      C Offline
      C Offline
      CrowSun
      wrote on 3 Feb 2018, 22:36 last edited by
      #25

      @SGaist i'm so ashamed of my non-acquaintance, but no, I'm not sure.
      I have installed it with a "mysql-installer-community-5.7.21.0.msi" which I downloaded from official site.
      How I can figure out that my MySQL library is for MinGW?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 Feb 2018, 22:59 last edited by
        #26

        You can use Dependency Walker to see if it depends on the Visual Studio runtime.

        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
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Feb 2018, 22:59 last edited by
          #27

          One other thing to check is whether your library is 32 or 64 bit.

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

          C 2 Replies Last reply 3 Feb 2018, 23:20
          1
          • S SGaist
            3 Feb 2018, 22:59

            One other thing to check is whether your library is 32 or 64 bit.

            C Offline
            C Offline
            CrowSun
            wrote on 3 Feb 2018, 23:20 last edited by
            #28

            @SGaist I suggest, that I need a 32bit library for mingw?

            1 Reply Last reply
            0
            • S SGaist
              3 Feb 2018, 22:59

              One other thing to check is whether your library is 32 or 64 bit.

              C Offline
              C Offline
              CrowSun
              wrote on 4 Feb 2018, 00:12 last edited by
              #29

              @SGaist I uninstalled mySql from my pc and than I downloaded MySql community Server for windows 32bit (btw I have a 64bit windows). Than I unpacked zip archive in a folder without spaces and entered all previous commands in console. And FINALLY it all executed without errors.
              Thanks to everyone who replied on my topic and thank you SGaist for all answers and patience!

              C 1 Reply Last reply 19 Jun 2018, 08:17
              2
              • C CrowSun
                4 Feb 2018, 00:12

                @SGaist I uninstalled mySql from my pc and than I downloaded MySql community Server for windows 32bit (btw I have a 64bit windows). Than I unpacked zip archive in a folder without spaces and entered all previous commands in console. And FINALLY it all executed without errors.
                Thanks to everyone who replied on my topic and thank you SGaist for all answers and patience!

                C Offline
                C Offline
                cawlfj
                wrote on 19 Jun 2018, 08:17 last edited by
                #30

                @CrowSun
                Could you give me a details for build mysql for android on windows ?
                I am using window10 x64 qt5.10.1(vs2015) mysql-connector-c-6.1.11-winx64.zip
                Could make a one step by step instruction ?
                Best regards,
                jeff

                1 Reply Last reply
                0
                • S SGaist
                  31 Jan 2018, 20:55

                  Hi,

                  As an alternative, you can download the 5.7.1 source for Windows from here and check with that one.

                  S Offline
                  S Offline
                  Saad02
                  wrote on 7 Jul 2023, 17:32 last edited by
                  #31

                  @SGaist Sir, this link is not working anymore with the error code 404.

                  S 1 Reply Last reply 7 Jul 2023, 17:39
                  0
                  • S Saad02
                    7 Jul 2023, 17:32

                    @SGaist Sir, this link is not working anymore with the error code 404.

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 7 Jul 2023, 17:39 last edited by
                    #32

                    @Saad02 which link are you referring to ?

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

                    S 1 Reply Last reply 8 Jul 2023, 09:59
                    0
                    • S SGaist
                      7 Jul 2023, 17:39

                      @Saad02 which link are you referring to ?

                      S Offline
                      S Offline
                      Saad02
                      wrote on 8 Jul 2023, 09:59 last edited by
                      #33

                      @SGaist This one-
                      http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip
                      It's in the here quote above.

                      Actually I have mysql folder but there is CMakeLists instead of qt project file (.pro)
                      I tried with cmake too. And here is the result-
                      https://forum.qt.io/topic/146382/how-to-create-qt-6-5-mysql-driver-with-cmake?_=1688809685576

                      S 1 Reply Last reply 8 Jul 2023, 10:03
                      0
                      • S Saad02
                        8 Jul 2023, 09:59

                        @SGaist This one-
                        http://download.qt.io/official_releases/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.zip
                        It's in the here quote above.

                        Actually I have mysql folder but there is CMakeLists instead of qt project file (.pro)
                        I tried with cmake too. And here is the result-
                        https://forum.qt.io/topic/146382/how-to-create-qt-6-5-mysql-driver-with-cmake?_=1688809685576

                        S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 8 Jul 2023, 10:03 last edited by
                        #34

                        @Saad02 there was an issue with the archive at some points and this version of Qt is available in a different subfolder.

                        You seem to be following Qt 6 instructions to build for Qt 5. It won't work as Qt 6 is using cmake and Qt 5 is using qmake.

                        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