Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. No way for MinGW compiler?
Forum Updated to NodeBB v4.3 + New Features

No way for MinGW compiler?

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 5 Posters 3.2k Views 2 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.
  • J Offline
    J Offline
    JScars
    wrote on last edited by A Former User
    #1

    I can't find a way to do it... always give me an error.

    jsulmJ 1 Reply Last reply
    0
    • J JScars

      I can't find a way to do it... always give me an error.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JScars said in Build QT 5.9.1 Static to run on Windows 7 x86 and above with dynamic opengl opensll:

      always give me an error

      And what error is it?
      Most probably you're trying to use DLLs built with VC++ with MinGW which is not going to work.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JScars
        wrote on last edited by
        #3

        ... Forget it, my Qt stopped working... I cannot compile even in the Qt Creatror.
        It says the same as when i try to build the static version

        "Cannot run compiler 'g++'. Maybe you forgot to setup the environment?"

        But i have the MinGW directory in the PATH. Even i can execute g++ in cmd, i don't know what's wrong.

        I think that i'll need to format the pc, then i will retry to build the static.

        jsulmJ yuvaramY D 3 Replies Last reply
        0
        • J JScars

          ... Forget it, my Qt stopped working... I cannot compile even in the Qt Creatror.
          It says the same as when i try to build the static version

          "Cannot run compiler 'g++'. Maybe you forgot to setup the environment?"

          But i have the MinGW directory in the PATH. Even i can execute g++ in cmd, i don't know what's wrong.

          I think that i'll need to format the pc, then i will retry to build the static.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @JScars How did you install Qt and MinGW?
          Use Qt online installer and select MinGW Qt version there, make sure to select MinGW under Tools as well. This always works for me. Also if you have such problems check your Kit: most probably your compiler is not set up properly: you need to provide absolute path to gcc.exe.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • J JScars

            ... Forget it, my Qt stopped working... I cannot compile even in the Qt Creatror.
            It says the same as when i try to build the static version

            "Cannot run compiler 'g++'. Maybe you forgot to setup the environment?"

            But i have the MinGW directory in the PATH. Even i can execute g++ in cmd, i don't know what's wrong.

            I think that i'll need to format the pc, then i will retry to build the static.

            yuvaramY Offline
            yuvaramY Offline
            yuvaram
            wrote on last edited by
            #5

            Hi @JScars
            Qt for windows executable (not MSVC) by default comes with MinGW compiler. No need to install external packages.
            Try to uninstall your Qt and re install. If not download new Qt creator from https://download.qt.io/archive/qt/
            No need to format PC

            Yuvaram Aligeti
            Embedded Qt Developer
            : )

            J 1 Reply Last reply
            0
            • yuvaramY yuvaram

              Hi @JScars
              Qt for windows executable (not MSVC) by default comes with MinGW compiler. No need to install external packages.
              Try to uninstall your Qt and re install. If not download new Qt creator from https://download.qt.io/archive/qt/
              No need to format PC

              J Offline
              J Offline
              JScars
              wrote on last edited by
              #6

              @yuvaram said in No way for MinGW compiler?:

              all your Qt and re install. If not download new Qt creator from https://download.qt.io/archive/qt/
              No need to format P

              I tried reinstalling the Qt, but it doesn't work.
              After i format my PC it works fine and i finally i could compile the static version.
              I don't know what happend.
              I cannot use the online version because in my residence i have not a constant internet connection.

              1 Reply Last reply
              0
              • Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                If your problem is solved, please mark your post as such. Thanks.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply
                0
                • J JScars

                  ... Forget it, my Qt stopped working... I cannot compile even in the Qt Creatror.
                  It says the same as when i try to build the static version

                  "Cannot run compiler 'g++'. Maybe you forgot to setup the environment?"

                  But i have the MinGW directory in the PATH. Even i can execute g++ in cmd, i don't know what's wrong.

                  I think that i'll need to format the pc, then i will retry to build the static.

                  D Offline
                  D Offline
                  Damos
                  wrote on last edited by
                  #8

                  @JScars check settings of your compiler. Such error is when you have set path to the gcc.exe but not to the g++.exe. QT 5.9 doesn't like compiler path set to gcc.ece - it should be g++.exe. I went through that looking for the reason as well :)

                  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