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. Latest version of Qt cant compile anything in .c with MinGW (Win 10 x64)

Latest version of Qt cant compile anything in .c with MinGW (Win 10 x64)

Scheduled Pinned Locked Moved Solved Installation and Deployment
mingw32-makeqt 5.6.0c language
9 Posts 3 Posters 4.2k 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
    danek731733
    wrote on 29 Mar 2016, 18:47 last edited by
    #1

    Hello,

    I have a problem with my fresh installation of Qt 5.6.0 with the latest MinGW listed in the Qt installer. It does not compile my files, if I am set to the debugging mode of a project (the computer icon above the run icon, in the bottom left corner of the Qt Creator). But if I switch it to the deployment mode, it suddenly does work. But debugger doesnt do anything in that case.

    When I try to compile & run a new, just written project in debugging/developing mod (I am not sure, since it is still written in my language - I am not using it in English) it gives me the folloving:

    error: INTERNAL: readdir: No such file or directory.  Stop.
    

    When I open the error, I see this:

    20:37:48: Configuration unchanged, skipping qmake step.
    20:37:48: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" 
    mingw32-make: *** INTERNAL: readdir: No such file or directory.  Stop.
    20:37:48: The process "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Matice_pointer_na_pointer (kit: Desktop Qt 5.6.0 MinGW 32bit)
    When executing step "Make"
    20:37:48: Elapsed time: 00:00.
    

    I did some digging on this forum, but sadly, I didnt find any solution yet. No help came with google, either.
    I checked my PATH: there is no MinGW or something like that in there (in case you would be wondering)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Mar 2016, 21:49 last edited by
      #2

      Hi and welcome to devnet,

      Can you share your .pro file ?

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

      D 1 Reply Last reply 2 Apr 2016, 14:49
      0
      • D Offline
        D Offline
        danek731733
        wrote on 31 Mar 2016, 17:43 last edited by
        #3
        TEMPLATE = app
        CONFIG += console
        CONFIG -= app_bundle
        CONFIG -= qt
        
        SOURCES += main.c
        

        Here it is.

        1 Reply Last reply
        0
        • S SGaist
          29 Mar 2016, 21:49

          Hi and welcome to devnet,

          Can you share your .pro file ?

          D Offline
          D Offline
          danek731733
          wrote on 2 Apr 2016, 14:49 last edited by
          #4

          @SGaist Any ideas?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Apr 2016, 20:40 last edited by
            #5

            Just tested it with a hello world main.c both in debug and release mode and not problem at all.

            Do you have your project in path with spaces ?

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

            D A 2 Replies Last reply 3 Apr 2016, 13:54
            2
            • S SGaist
              2 Apr 2016, 20:40

              Just tested it with a hello world main.c both in debug and release mode and not problem at all.

              Do you have your project in path with spaces ?

              D Offline
              D Offline
              danek731733
              wrote on 3 Apr 2016, 13:54 last edited by
              #6

              @SGaist Apparently, having the project in a folder with "&" symbol in its filepath was an issue. I moved all my projects into a folder without spaces and special characters, and it works. Thank you, I don't think I'd figure it out without your help. :)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 3 Apr 2016, 14:03 last edited by
                #7

                Paths can be tricky on Windows

                You're welcome !

                Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

                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 SGaist
                  2 Apr 2016, 20:40

                  Just tested it with a hello world main.c both in debug and release mode and not problem at all.

                  Do you have your project in path with spaces ?

                  A Offline
                  A Offline
                  asthana.ujjwal
                  wrote on 19 Jun 2019, 08:10 last edited by
                  #8

                  @SGaist I am getting the same error. This is my project path:

                  C:\Users\1587\Desktop\QT

                  As you can see, I dont have any spaces or special characters in my path, except for the colon of C drive, which cannot removed by my knowledge. Can you please help me out?

                  Thanks in advance. Really appreciate the help.
                  P.S. I am a newbie here. So, please try to help me in layman terms.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 19 Jun 2019, 21:30 last edited by
                    #9

                    Hi @asthana-ujjwal and welcome to devnet,

                    Can you show your .pro file ?

                    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