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. (Project ERROR: Cannot run compiler 'g++'. Output:) Question about error occurrence during MySql driver installation.
Forum Updated to NodeBB v4.3 + New Features

(Project ERROR: Cannot run compiler 'g++'. Output:) Question about error occurrence during MySql driver installation.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 403 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.
  • D Offline
    D Offline
    dennis.kim
    wrote on last edited by
    #1

    I've been following and seeing various documentation for mysql connection.
    but I can't connect yet, so I'm going to look at the official documentation and try to follow it step by step.(https://doc.qt.io/qt-5/sql-driver.html)

    At the beginning of the document is the following:
    b993cd15-d6ff-4740-9513-f8a629435ffa-image.png

    Just like this, when I run it, the following error occurs.
    09660cbb-5667-46d5-a62f-c536f9770396-image.png

    "Project ERROR: Cannot run compiler 'g++'. Output:"
    What environment changes do I need to change to resolve this error?

    Christian EhrlicherC 1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #4

      You've installed all you need (and more) but instead the problem (as @Christian-Ehrlicher says) to find the MinGW stuff.

      One way you could try:
      In your CMD window, before doing *qmake... type
      C:\Qt\5.13.2\mingw73_64\bin\qtenv2.bat
      and then you have to cd back
      cd C:\Qt\5.13.2\Src\qtbase\src\plugins\sqldrivers
      then try that qmake command again...

      D 1 Reply Last reply
      2
      • D dennis.kim

        I've been following and seeing various documentation for mysql connection.
        but I can't connect yet, so I'm going to look at the official documentation and try to follow it step by step.(https://doc.qt.io/qt-5/sql-driver.html)

        At the beginning of the document is the following:
        b993cd15-d6ff-4740-9513-f8a629435ffa-image.png

        Just like this, when I run it, the following error occurs.
        09660cbb-5667-46d5-a62f-c536f9770396-image.png

        "Project ERROR: Cannot run compiler 'g++'. Output:"
        What environment changes do I need to change to resolve this error?

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @dennis-kim said in (Project ERROR: Cannot run compiler 'g++'. Output:) Question about error occurrence during MySql driver installation.:

        What environment changes do I need to change to resolve this error?

        You have to make sure that g++ is in your PATH. When you installed Qt via the Maintainance Tool there is a command shortcut in your start menu which sets this up for you ('Qt 5.X.Y (MinGW ...)'

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

        D 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @dennis-kim said in (Project ERROR: Cannot run compiler 'g++'. Output:) Question about error occurrence during MySql driver installation.:

          What environment changes do I need to change to resolve this error?

          You have to make sure that g++ is in your PATH. When you installed Qt via the Maintainance Tool there is a command shortcut in your start menu which sets this up for you ('Qt 5.X.Y (MinGW ...)'

          D Offline
          D Offline
          dennis.kim
          wrote on last edited by
          #3

          @Christian-Ehrlicher
          thanks a lot, Christian.

          I have now accessed the maintenance tool.
          And the compiler I am using is MinGW 64bit version with Qt 5.13.2.
          All items are checked in the maintenance window.
          48e47527-4a97-41b0-8a86-d79ea4987102-image.png

          6258e75c-4949-4e73-b9b1-567e42aede87-image.png
          Can you tell me what more items I need to check?

          1 Reply Last reply
          0
          • hskoglundH Offline
            hskoglundH Offline
            hskoglund
            wrote on last edited by
            #4

            You've installed all you need (and more) but instead the problem (as @Christian-Ehrlicher says) to find the MinGW stuff.

            One way you could try:
            In your CMD window, before doing *qmake... type
            C:\Qt\5.13.2\mingw73_64\bin\qtenv2.bat
            and then you have to cd back
            cd C:\Qt\5.13.2\Src\qtbase\src\plugins\sqldrivers
            then try that qmake command again...

            D 1 Reply Last reply
            2
            • hskoglundH hskoglund

              You've installed all you need (and more) but instead the problem (as @Christian-Ehrlicher says) to find the MinGW stuff.

              One way you could try:
              In your CMD window, before doing *qmake... type
              C:\Qt\5.13.2\mingw73_64\bin\qtenv2.bat
              and then you have to cd back
              cd C:\Qt\5.13.2\Src\qtbase\src\plugins\sqldrivers
              then try that qmake command again...

              D Offline
              D Offline
              dennis.kim
              wrote on last edited by
              #5

              @hskoglund
              wow!! thank you very much..
              f01378d9-691c-4f39-8ca4-e628630a6fd2-image.png

              I think I can move on to the next step now.

              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