Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    mingw32-make qt 5.6.0 c language
    3
    9
    3380
    Loading More Posts
    • 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.
    • danek731733
      danek731733 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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

        danek731733 1 Reply Last reply Reply Quote 0
        • danek731733
          danek731733 last edited by

          TEMPLATE = app
          CONFIG += console
          CONFIG -= app_bundle
          CONFIG -= qt
          
          SOURCES += main.c
          

          Here it is.

          1 Reply Last reply Reply Quote 0
          • danek731733
            danek731733 @SGaist last edited by

            @SGaist Any ideas?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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

              danek731733 A 2 Replies Last reply Reply Quote 2
              • danek731733
                danek731733 @SGaist last edited by

                @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 Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  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 Reply Quote 0
                  • A
                    asthana.ujjwal @SGaist last edited by

                    @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 Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      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 Reply Quote 0
                      • First post
                        Last post