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. I'm having issues with my compiler after reinstalling it several times, already. Qt can't find the main.o path directory file.
Forum Updated to NodeBB v4.3 + New Features

I'm having issues with my compiler after reinstalling it several times, already. Qt can't find the main.o path directory file.

Scheduled Pinned Locked Moved Unsolved General and Desktop
30 Posts 7 Posters 8.7k Views 3 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.
  • R RedDot

    The information with the issue is posted in the link below, if you have the time to look at it, it will mean a lot.
    https://stackoverflow.com/questions/45409164/qtcreator-not-building-windows

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @RedDot
    HI
    What is the actual build error ?

    It seems to say
    The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.

    So I didn't see any actual errors ?

    Also make sure that his virus scanner is not interfering with the .exe creation. ( im looking at you avast ;)

    Also, does the build folder contain any .o files ? ( like for mainwindow)

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RedDot
      wrote on last edited by RedDot
      #3

      The actual build error on my compiler that my friend is not receiving as you can see in the picture is " Could Not Find C:\Users\gian_\Documents\build-Test-Desktop_Qt_5_9_1_MinGW_32bit-Debug\release\main.o"

      Here's a picture below, when I just rebuild it.

      0_1501489365627_Untitled.png

      What do you mean the build folder? The debug folder for this particular project? If so, yes it's there.

      I would like to note the above has a different name project but it's the same output it's showing as the previous one in the stackoverflow.

      1 Reply Last reply
      0
      • sanojsubranS Offline
        sanojsubranS Offline
        sanojsubran
        wrote on last edited by sanojsubran
        #4

        @RedDot
        Hi,

        Please provide more details, as from your question, it is not clear what you are trying to achieve.
        The error you have highlighted is not an actual error. It is just the 'make clean' step failing since there are no object files in the build directory, in the first place.

        May be you can also share the code you were trying to build.

        Regards,
        San

        R 1 Reply Last reply
        0
        • R Offline
          R Offline
          RedDot
          wrote on last edited by RedDot
          #5

          So, what I find odd it's compiling fine, but it's producing the message below in red even when I set the Test to release instead of debug and rebuild it. Is it normal for the compiler to act this sort of way?
          0_1501490966308_Untitled.png

          1 Reply Last reply
          0
          • sanojsubranS sanojsubran

            @RedDot
            Hi,

            Please provide more details, as from your question, it is not clear what you are trying to achieve.
            The error you have highlighted is not an actual error. It is just the 'make clean' step failing since there are no object files in the build directory, in the first place.

            May be you can also share the code you were trying to build.

            Regards,
            San

            R Offline
            R Offline
            RedDot
            wrote on last edited by
            #6

            @sanojsubran The code is a simple hello world program. I've clean the project and file and whenever I rebuild it, it gives that message.
            0_1501491126837_Untitled.png

            What's weird is the qmake seems to not be call in the place like where my friend has his?
            Friend setup below:
            0_1501491358173_Untitle333d.png

            My setup below:
            0_1501491382930_Untitled33.png

            Also I would like note I left everything QT had in default during the installation process, so I did not change anything.

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #7

              So If you make a brand new GUI project,
              and run it , no .exe will be produced ?

              R 1 Reply Last reply
              0
              • mrjjM mrjj

                So If you make a brand new GUI project,
                and run it , no .exe will be produced ?

                R Offline
                R Offline
                RedDot
                wrote on last edited by
                #8

                @mrjj GUI project as in a widget project? When I run the above program "Hello World" in a non QT project in plain C++ application, it runs and it shows "Hello World". However, when I rebuild it, that message in the red appears.

                So, it does run the .exe as you can see in the image below.
                0_1501492104169_Untitled.png
                However, when I rebuild it, I get the same message that I've been getting with the above images main.o.
                0_1501492173219_Untitled33.png

                Here's when I have it as released instead of debug.
                0_1501492202743_Untitle333d.png

                J.HilkJ 1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Hi
                  So it does work ?
                  Compile + link+ run

                  The red lines seems to be only the del
                  command not finding moc_ and UI_ and .o files.
                  Just part of Make Clean.

                  1 Reply Last reply
                  0
                  • sanojsubranS Offline
                    sanojsubranS Offline
                    sanojsubran
                    wrote on last edited by
                    #10

                    @RedDot

                    Hi,

                    Please try one thing. When you switch the build configuration from Debug to Release or vice versa, right click the project and execute the option "Run qmake" manually once and then do a rebuild. Same is the case, when you make any change in the build configuration page.

                    The error is just the clean operation is trying to delete the object files which has been already been deleted. This is what I infer from the logs.

                    Regards,
                    San

                    R 1 Reply Last reply
                    0
                    • R RedDot

                      @mrjj GUI project as in a widget project? When I run the above program "Hello World" in a non QT project in plain C++ application, it runs and it shows "Hello World". However, when I rebuild it, that message in the red appears.

                      So, it does run the .exe as you can see in the image below.
                      0_1501492104169_Untitled.png
                      However, when I rebuild it, I get the same message that I've been getting with the above images main.o.
                      0_1501492173219_Untitled33.png

                      Here's when I have it as released instead of debug.
                      0_1501492202743_Untitle333d.png

                      J.HilkJ Offline
                      J.HilkJ Offline
                      J.Hilk
                      Moderators
                      wrote on last edited by
                      #11

                      @RedDot

                      hi,
                      the folder Desktop_Qt_5_9_1_MinGW_32bit-Debug\release should always be empty, aka ghost folder that is created due to Windows quirks and the compiler, we discussed this here in an other topic somewhere.
                      Same for Desktop_Qt_5_9_1_MinGW_32bit-Release\debug

                      did you manually change your Shadow-Build folder? Have you tried, to completely delete the shadow build folder and/or selected a new path for your shadow build?


                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      R 1 Reply Last reply
                      0
                      • Vinod KuntojiV Offline
                        Vinod KuntojiV Offline
                        Vinod Kuntoji
                        wrote on last edited by
                        #12

                        @RedDot ,

                        Delete the build folder and user files. Try Clean, qmake and build your project and run it.

                        C++, Qt, Qt Quick Developer,
                        PthinkS, Bangalore

                        R 1 Reply Last reply
                        0
                        • sanojsubranS sanojsubran

                          @RedDot

                          Hi,

                          Please try one thing. When you switch the build configuration from Debug to Release or vice versa, right click the project and execute the option "Run qmake" manually once and then do a rebuild. Same is the case, when you make any change in the build configuration page.

                          The error is just the clean operation is trying to delete the object files which has been already been deleted. This is what I infer from the logs.

                          Regards,
                          San

                          R Offline
                          R Offline
                          RedDot
                          wrote on last edited by
                          #13

                          @sanojsubran
                          I've gave that a try and I received to messages one when I ran the qmake and the other when rebuild it afterwards.

                          When I manaully ran qmake once.

                          0_1501516036694_Untitled.png

                          When I try to rebuild the project afterwards. I did this vice versa, show the same thing, red message, once again appeared.
                          0_1501516065952_Untitled3.png

                          When I build it though I do not see the message and it works perfectly.
                          0_1501516286094_Untitled33.png

                          However when I either rebuild it or clean all project it does appear, again.
                          0_1501516423459_Untitle333d.png

                          A 1 Reply Last reply
                          0
                          • J.HilkJ J.Hilk

                            @RedDot

                            hi,
                            the folder Desktop_Qt_5_9_1_MinGW_32bit-Debug\release should always be empty, aka ghost folder that is created due to Windows quirks and the compiler, we discussed this here in an other topic somewhere.
                            Same for Desktop_Qt_5_9_1_MinGW_32bit-Release\debug

                            did you manually change your Shadow-Build folder? Have you tried, to completely delete the shadow build folder and/or selected a new path for your shadow build?

                            R Offline
                            R Offline
                            RedDot
                            wrote on last edited by RedDot
                            #14

                            @J.Hilk No, I have not try that, by shadow build folder would it be this? If so, how should I select a new path for the folder? And should I remove it what I just highlighted? By hitting the remove button above general.
                            0_1501516919050_Untitled.png

                            1 Reply Last reply
                            0
                            • mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by mrjj
                              #15

                              Hi
                              I get same red lines if i add a "make clean step" to the project
                              alt text

                              Check you didnt add such step. To be sure.
                              Close Creator. delete the .user file in project folder.
                              set Compiler again. Rebuild.

                              R 1 Reply Last reply
                              0
                              • Vinod KuntojiV Vinod Kuntoji

                                @RedDot ,

                                Delete the build folder and user files. Try Clean, qmake and build your project and run it.

                                R Offline
                                R Offline
                                RedDot
                                wrote on last edited by RedDot
                                #16

                                @Vinod-Kuntoji When I deleted the build folder and left everything else remainding such as the main.cpp and the .pro file.
                                I rebuild the project and it seem to work?
                                0_1501517260913_Untitled.png

                                However, I added another output statement. Cleaned it and I received the same red message, I also rebuild it and got this below.
                                0_1501517402011_Untitled.png

                                1 Reply Last reply
                                0
                                • Vinod KuntojiV Offline
                                  Vinod KuntojiV Offline
                                  Vinod Kuntoji
                                  wrote on last edited by
                                  #17

                                  @RedDot ,

                                  Please show your pro file

                                  C++, Qt, Qt Quick Developer,
                                  PthinkS, Bangalore

                                  1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    Hi
                                    I get same red lines if i add a "make clean step" to the project
                                    alt text

                                    Check you didnt add such step. To be sure.
                                    Close Creator. delete the .user file in project folder.
                                    set Compiler again. Rebuild.

                                    R Offline
                                    R Offline
                                    RedDot
                                    wrote on last edited by RedDot
                                    #18

                                    @mrjj Okay, so here's what I came to conclusion, first off, I've did what you you ask me to do. I closed the creator by this I closed the project, as well as closed all. I deleted the .user file in the project folder. I was asked to set the compiler again, so here's the configuration below.
                                    0_1501518163626_Untitled1.png
                                    I rebuild it and received this message below.
                                    0_1501518189158_Untitled2.png
                                    Now, to not received the message above I deleted the .user file as well as the builder folder. Rebuild it and it look like it works. That being said do I need to continue to do this process every time I want to rebuild the project?

                                    1 Reply Last reply
                                    0
                                    • mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #19

                                      Hi
                                      Ok. not a make clean step then.
                                      Im out of ideas.

                                      You can safely ignore the red lines.

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        RedDot
                                        wrote on last edited by
                                        #20

                                        I decided to create a new QT account because maybe the issue is because it's retrieving meta information from remote repository. It does it when I installed it, since I have an account already with this IDE. So, I decide to create a new one instead, to avoid doing that. Also, after trying almost everything, I decided to reset my pc to factory settings, this deletes all the files, and apps.

                                        I'm going to reinstall QT Creator, as well as VS again. Could the problem be cause by VS as well, I had this installed way before I decide to try out the QT Creator IDE? I've notice it's conflicting with QT creator, what I mean by this whenever I created a project in QT, it would also create one for VS automatically?

                                        1 Reply Last reply
                                        0
                                        • SGaistS Offline
                                          SGaistS Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #21

                                          Hi,

                                          Unless I'm mistaken, isn't your main function signature wrong ?

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

                                          R 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