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. Qt project fails to compile on one PC (stuck in qmake) [partly solved]
QtWS25 Last Chance

Qt project fails to compile on one PC (stuck in qmake) [partly solved]

Scheduled Pinned Locked Moved General and Desktop
qt creatorqmakeqt5buidcompile
7 Posts 3 Posters 4.7k 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.
  • F Offline
    F Offline
    flashmozzg
    wrote on last edited by flashmozzg
    #1

    It spams the console with:

    22:40:21: Запускается: «C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe» 
    C:\Qt\5.4\mingw491_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\ProjectName\ProjectName.pro
    C:\Qt\5.4\mingw491_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\ProjectName\ProjectName.pro
    
    and so on...
    

    It worked fine before and the exact same project compiles successfully on desktop. The problem started when I noticed that it seemed like my app didn't accept any code changes and worked as before. Even in debug it worked very strange. So I tried to make full rebuild and after that - it never succeed. Looks like it loops or something. (Just running qmake is fine but trying to run and build it on my notebook never finishes)

    My .pro file is nothing special. It's auto generated and I haven't added any custom stuff to it myself.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Assuming that you have identical code and project information on both PCs, you have done already a complete rebuild. the next step would be to run the maintenance tool to do a repair of your installation. Personally, I would go even further and remove and install again on your laptop. Especially since you no special installation it might be the fastest way for a resolution.

      Vote the answer(s) that helped you to solve your issue(s)

      F 1 Reply Last reply
      0
      • F Offline
        F Offline
        flashmozzg
        wrote on last edited by
        #3

        commenting out Makefile line 193 with

        {$QMAKE} -spec win32-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug -o Makefile ..\ProjectName\ProjectName.pro
        

        Helped build the project but it failed again at the same thing after regenerating makefile.

        Could be antivirus related but I don't know if it's the case, worked fine just today.

        W8.1 x64, Qt 5.4.1, Qt Creator 3.3.2

        1 Reply Last reply
        0
        • K koahnig

          Assuming that you have identical code and project information on both PCs, you have done already a complete rebuild. the next step would be to run the maintenance tool to do a repair of your installation. Personally, I would go even further and remove and install again on your laptop. Especially since you no special installation it might be the fastest way for a resolution.

          F Offline
          F Offline
          flashmozzg
          wrote on last edited by
          #4

          @flashmozzg said:

          It worked fine before and the exact same project compiles successfully on desktop. The problem started when I noticed that it seemed like my app didn't accept any code changes and worked as before. Even in debug it worked very strange. So I tried to make full rebuild and after that - it never succeed. Looks like it loops or something. (Just running qmake is fine but trying to run and build it on my notebook never finishes)

          My .pro file is nothing special. It's auto generated and I haven't added any custom stuff to it myself.

          It's probably what I'll have to resort to but I'd still want to find out what happened. It was working just fine and than it stopped. Without me changing anything anywhere except some code fixes.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            flashmozzg
            wrote on last edited by
            #5

            I tested with different project and it compiled too. So it's even stranger now.

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

              Hi,

              Did you also nuke the build folder ? Did you move your project in a different path ? Did you rename the path/folder containing it ?

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

              F 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Did you also nuke the build folder ? Did you move your project in a different path ? Did you rename the path/folder containing it ?

                F Offline
                F Offline
                flashmozzg
                wrote on last edited by
                #7

                @SGaist said:

                id you also nuke the build folder ? Did you move your project in a different path ? Did you rename the path/folder containing it ?

                I've done the first. Then I just copied my project folder from my pc and opened project on usb drive - it worked. But starting from scratch (deleting every qt-creator related file, like .user) didn't help. So i just moved directory completely and it worked. It's still very strange because Git didn't any changes in project files so only hidden by gitignore remains and I'm pretty sure I tried to delete them.

                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