Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    qt creator qmake qt5 buid compile
    3
    7
    4080
    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.
    • F
      flashmozzg last edited by flashmozzg

      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 Reply Quote 0
      • K
        koahnig last edited by

        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 Reply Quote 0
        • F
          flashmozzg last edited by

          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 Reply Quote 0
          • F
            flashmozzg @koahnig last edited by

            @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 Reply Quote 0
            • F
              flashmozzg last edited by

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

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

                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 Reply Quote 0
                • F
                  flashmozzg @SGaist last edited by

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