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. Installing mysql for qt
Forum Updated to NodeBB v4.3 + New Features

Installing mysql for qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 418 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.
  • F Offline
    F Offline
    Flung Dung
    wrote on last edited by
    #1

    Hello, I am trying to install the mysql package for qt.

    From the installation guide I got the following instructions:

    cd %QTDIR%\src\plugins\sqldrivers\mysql
    qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro
    nmake
    

    With the first two lines I have had problems in the past but it seems like I have solved them.

    The last codeline "nmake" makes problems. I think there is something missing because the Qt 5.14.1 (MSVC 64bit) says "The command "nmake" (I also tried make, as in the instrucion guide descriped) is wrong written or could not have found.

    I am not experienced in programming in c++ but I think the compiler nmake is missing.

    OS: Windows 7
    Using : Qt 5.14.1 (MSVC 2017 64bit)
    I also have VS 2017 installed with the Desktopdevelopement for C++ and Windows SDK.

    What does I have to install and why?

    Thank you

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by Bonnie
      #2

      nmake is the MSVC build tool.
      Did you run from "x64 Native Tools Command Prompt for VS 2017"?
      Or you should set the PATH yourself.

      F 1 Reply Last reply
      0
      • B Bonnie

        nmake is the MSVC build tool.
        Did you run from "x64 Native Tools Command Prompt for VS 2017"?
        Or you should set the PATH yourself.

        F Offline
        F Offline
        Flung Dung
        wrote on last edited by
        #3

        @Bonnie I run the commands in "Qt 5.14.1 (MSVC 2017 64-bit) and there it says nmake not found.

        B 1 Reply Last reply
        0
        • F Flung Dung

          @Bonnie I run the commands in "Qt 5.14.1 (MSVC 2017 64-bit) and there it says nmake not found.

          B Offline
          B Offline
          Bonnie
          wrote on last edited by Bonnie
          #4

          @Flung-Dung Yeah, it only adds Qt's bin to PATH.
          You should have seen a message: Remember to call vcvarsall.bat to complete environment setup!
          It is better to run from "Visual Studio 2017" -> "x64 Native Tools Command Prompt for VS 2017" and then add Qt's bin to PATH.

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by Christian Ehrlicher
            #5

            @Flung-Dung said in Installing mysql for qt:

            cd %QTDIR%\src\plugins\sqldrivers\mysql

            This is wrong and also not written in the documentation

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            1

            • Login

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