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. Endless loop of qmake.exe
Forum Updated to NodeBB v4.3 + New Features

Endless loop of qmake.exe

Scheduled Pinned Locked Moved Installation and Deployment
28 Posts 6 Posters 17.9k Views 1 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.
  • B Offline
    B Offline
    Benjamin05
    wrote on last edited by
    #11

    @#############################################################################

    Makefile for building: arinc2network

    Generated by qmake (3.0) (Qt 5.1.0) on: So 31. Mrz 11:34:07 2013

    Project: ../src/arinc2network.pro

    Template: app

    #############################################################################

    MAKEFILE = Makefile.Debug

    ####### Compiler, tools and options

    CC = gcc
    CXX = g++
    DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
    CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES)
    CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES)
    INCPATH = -I../src -I'../../advTcpSocket' -I'../../socketConfig' -I'../../aimCard/src' -I'../../aimCard/src/third_part/aim' -I'../../arincChannel' -I'../../condorCard/src' -I'../../condorCard/src/third_part/condor/include' -I'../../advTcpServer' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtNetwork' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtCore' -I'debug' -I'.' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/mkspecs/win32-g++'
    LINKER = g++
    LFLAGS = -Wl,-subsystem,console -mthreads
    LIBS = -LC:/Backups/Qt_waypoits_listed/naplps_project/arinc2network/src/../../aimCard/src/third_part/aim/libs -LC:/Backups/Qt_waypoits_listed/naplps_project/arinc2network/src/../../condorCard/src/third_part/condor/libs -LC:/Backups/Qt_waypoits_listed/naplps_project/arinc2network/src/../../condorCard/src/third_part/condorLib-build-desktop/debug/ -lcondorLib -lapi_civ -lcei_ll -lwinmm -LC:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib -lQt5Networkd -lQt5Cored
    QMAKE = C:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe
    IDC = idc
    IDL = midl
    ZIP =
    DEF_FILE =
    RES_FILE =
    COPY = cp -f
    SED = sed
    COPY_FILE = cp -f
    COPY_DIR = cp -f -R
    DEL_FILE = rm -f
    DEL_DIR = rmdir
    MOVE = mv -f
    CHK_DIR_EXISTS= test -d
    MKDIR = mkdir -p
    INSTALL_FILE = cp -f
    INSTALL_PROGRAM = cp -f
    INSTALL_DIR = $(COPY_DIR)
    @

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

      further done in the file you should something like
      @
      clean: compiler_clean
      -$(DEL_FILE) ... long list of objects ...
      @

      in the compile section
      @
      bliblo.o: ../../ ..... blobli.cpp ../../ .... blobli.h
      list of other headers
      $(CXX) -c $(CXXFLAGS) $(INCPATH) -o blobli.o blobli.cpp
      @

      Note: I have shortened the path considerably. The important part after each object is the $(CXX) plus subsequent stuff.

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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Benjamin05
        wrote on last edited by
        #13

        I have following parts in the Makefile.Debug:
        @clean: compiler_clean
        -$(DEL_FILE) debug/main.o debug/socketconfig.o debug/advtcpsocket.o debug/aimcard.o debug/condorcard.o debug/arincChannel.o debug/advtcpserver.o debug/moc_advtcpsocket.o debug/moc_aimcard.o debug/moc_condorcard.o debug/moc_arincChannel.o debug/moc_advtcpserver.o

        @

        Also I have the $(CXX) plus subsequent stuff in the compile section for every header/source pair I add in my .pro file I removed the other headers for the post.
        I do not have a moc_socketconfig.o entry, but I do not know, if this is a problem

        @####### Compile

        debug/main.o: ../src/main.cpp C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/main.o ../src/main.cpp

        debug/socketconfig.o: ../../socketConfig/socketconfig.cpp ../../socketConfig/socketconfig.h
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/socketconfig.o ../../socketConfig/socketconfig.cpp

        debug/advtcpsocket.o: ../../advTcpSocket/advtcpsocket.cpp ../../advTcpSocket/advtcpsocket.h
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/advtcpsocket.o ../../advTcpSocket/advtcpsocket.cpp

        debug/aimcard.o: ../../aimCard/src/aimcard.cpp ../../aimCard/src/aimcard.h
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/aimcard.o ../../aimCard/src/aimcard.cpp

        debug/condorcard.o: ../../condorCard/src/condorcard.cpp ../../condorCard/src/condorcard.h
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/condorcard.o ../../condorCard/src/condorcard.cpp

        debug/arincChannel.o: ../../arincChannel/arincChannel.cpp ../../arincChannel/arincChannel.h
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/arincChannel.o ../../arincChannel/arincChannel.cpp

        debug/advtcpserver.o: ../../advTcpServer/advtcpserver.cpp
        ...
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/advtcpserver.o ../../advTcpServer/advtcpserver.cpp

        debug/moc_advtcpsocket.o: debug/moc_advtcpsocket.cpp
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/moc_advtcpsocket.o debug/moc_advtcpsocket.cpp

        debug/moc_aimcard.o: debug/moc_aimcard.cpp
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/moc_aimcard.o debug/moc_aimcard.cpp

        debug/moc_condorcard.o: debug/moc_condorcard.cpp
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/moc_condorcard.o debug/moc_condorcard.cpp

        debug/moc_arincChannel.o: debug/moc_arincChannel.cpp
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/moc_arincChannel.o debug/moc_arincChannel.cpp

        debug/moc_advtcpserver.o: debug/moc_advtcpserver.cpp
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug/moc_advtcpserver.o debug/moc_advtcpserver.cpp@

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

          Frankly, I am running out of ideas by now.

          When you are starting mingw32-make from cmd.exe with parameter "--version" what does it tell you?

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

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Benjamin05
            wrote on last edited by
            #15

            Following text is displayed when runing with "--version". Nothing else is executed.
            @GNU Make 3.82.90
            Built for i686-w64-mingw32
            Copyright <C> 1988-2012 Free Software Foundation, Inc.
            License GPLv3+:GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
            This is free software: you are free to change and redistribute it.
            There is No WARRANTY, to extent permitted by law.@

            I have no clue, what has happend to my QtCreator. The error occured after I was running qmake. Afterwards none of my projects, also the backups cannot be build or cleaned anymore, thoug they still work on a other computer. After running qmake and building successfully on a other computer, I can even run on this computer, as long as the 'Configuration unchanged, skipping qmake step.'
            Unfortunatly the application does not changeif I then make any changes in the code. And after I run qmake, which is successful, I cannot build any more with the old problem.
            Reinstalling Qt did not solve the problem either.

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

              Well, you wrote that starting mingw32-make on the command show the same problem. This is a bit strange. This means that the makefile is wrong. Which is generated by qmake.

              Since you can produce a makefile on the still working pc, you can compare the makefiles.
              If you have the setup (versions and folders) you can take over the qmake from pc to the other. Make a copy of qmake before you copy the version over it.

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

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Benjamin05
                wrote on last edited by
                #17

                I have compared the makefiles using kdiff and found some differences:
                Makefile (from reference computer)
                @QMAKE = C:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe
                DEL_FILE = rm -f
                CHK_DIR_EXISTS= test -d
                MKDIR = mkdir -p
                COPY = cp -f
                COPY_FILE = cp -f
                COPY_DIR = cp -f -R
                INSTALL_FILE = cp -f
                INSTALL_PROGRAM = cp -f
                INSTALL_DIR = $(COPY_DIR)
                DEL_FILE = rm -f
                SYMLINK =
                DEL_DIR = rmdir
                MOVE = mv -f
                SUBTARGETS = @

                Makefile (from defecte computer)
                @QMAKE = C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\bin\qmake.exe
                DEL_FILE = del
                CHK_DIR_EXISTS= if not exist
                MKDIR = mkdir
                COPY = copy /y
                COPY_FILE = $(COPY)
                COPY_DIR = xcopy /s /q /y /i
                INSTALL_FILE = $(COPY_FILE)
                INSTALL_PROGRAM = $(COPY_FILE)
                INSTALL_DIR = $(COPY_DIR)
                DEL_FILE = del
                SYMLINK = copy /y
                DEL_DIR = rmdir
                MOVE = move
                SUBTARGETS = @

                Makefile.Debug (from defect computer)

                @
                ####### Compiler, tools and options

                CC = gcc
                CXX = g++
                DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
                CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES)
                CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES)
                INCPATH = -I..\src -I"....\advTcpSocket" -I"....\socketConfig" -I"....\aimCard\src" -I"....\aimCard\src\third_part\aim" -I"....\arincChannel" -I"....\condorCard\src" -I"....\condorCard\src\third_part\condor\include" -I"....\advTcpServer" -I"....\Font" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include\QtNetwork" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\mkspecs\win32-g++"
                LINKER = g++
                LFLAGS = -Wl,-subsystem,console -mthreads
                LIBS = "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../condorCard/src/third_part/condorLib-build-desktop/debug/" -lcondorLib "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../aimCard/src/third_part/aim/libs" -lapi_civ "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../condorCard/src/third_part/condor/libs" -lcei_ll -lwinmm -LC:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\lib -lQt5Networkd -lQt5Cored
                QMAKE = C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\bin\qmake.exe
                IDC = idc
                IDL = midl
                ZIP = zip -r -9
                DEF_FILE =
                RES_FILE =
                COPY = copy /y
                SED =
                COPY_FILE = $(COPY)
                COPY_DIR = xcopy /s /q /y /i
                DEL_FILE = del
                DEL_DIR = rmdir
                MOVE = move
                CHK_DIR_EXISTS= if not exist
                MKDIR = mkdir
                INSTALL_FILE = $(COPY_FILE)
                INSTALL_PROGRAM = $(COPY_FILE)
                INSTALL_DIR = $(COPY_DIR)

                ####### Output directory

                OBJECTS_DIR = debug@

                Makefile.Debug (from referencecomputer)
                @
                ####### Compiler, tools and options

                CC = gcc
                CXX = g++
                DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
                CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES)
                CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES)
                INCPATH = -I../src -I'../../advTcpSocket' -I'../../socketConfig' -I'../../aimCard/src' -I'../../aimCard/src/third_part/aim' -I'../../arincChannel' -I'../../condorCard/src' -I'../../condorCard/src/third_part/condor/include' -I'../../advTcpServer' -I'../../Font' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtNetwork' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtCore' -I'debug' -I'.' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/mkspecs/win32-g++'
                LINKER = g++
                LFLAGS = -Wl,-subsystem,console -mthreads
                LIBS = -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../aimCard/src/third_part/aim/libs -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../condorCard/src/third_part/condor/libs -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../condorCard/src/third_part/condorLib-build-desktop/debug/ -lcondorLib -lapi_civ -lcei_ll -lwinmm -LC:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib -lQt5Networkd -lQt5Cored
                QMAKE = C:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe
                IDC = idc
                IDL = midl
                ZIP =
                DEF_FILE =
                RES_FILE =
                COPY = cp -f
                SED = sed
                COPY_FILE = cp -f
                COPY_DIR = cp -f -R
                DEL_FILE = rm -f
                DEL_DIR = rmdir
                MOVE = mv -f
                CHK_DIR_EXISTS= test -d
                MKDIR = mkdir -p
                INSTALL_FILE = cp -f
                INSTALL_PROGRAM = cp -f
                INSTALL_DIR = $(COPY_DIR)

                ####### Output directory

                OBJECTS_DIR = debug/

                @

                Also are there a lot of backslash and slash differences!

                Furthermore I am currently able to use one of my projects on the defect computer after building it successfully on another one. I can build clean and run qmake without problems, though I have no clue, why this project works now.
                Unfortunatly all other projects do either not run at all, or do not runafter I made qmake on the defect computer.

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

                  backslashes could be the problem.
                  Checkout on the "defect" setup computer your .pro files.
                  DO NOT use backslashes in Qt related for folders. They have a special meaning and mark that the next line is a continuation line.
                  A .pro file should have statements like:
                  @
                  HEADERS += ./head.h
                  ./head2.h
                  c:/AnotherHeader/header3.h
                  c:/Blo/bli.h
                  @

                  As you see at the end of lines there is a backslash when another line is following.

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

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Benjamin05
                    wrote on last edited by
                    #19

                    Yes, but I have used the same .pro file on both computers, without changing it. And if I open the .pro file on the defect computer, everything looks fine:
                    @#-------------------------------------------------

                    Project created by QtCreator 2011-11-17T11:31:42

                    #-------------------------------------------------

                    QT += core

                    QT -= gui

                    QT += network

                    TARGET = arinc2network
                    CONFIG += console
                    CONFIG -= app_bundle

                    TEMPLATE = app

                    INCLUDEPATH += ../../advTcpSocket/
                    ../../socketConfig/
                    ../../aimCard/src/
                    ../../aimCard/src/third_part/aim/
                    ../../arincChannel/
                    ../../condorCard/src/
                    ../../condorCard/src/third_part/condor/include/
                    ../../advTcpServer/
                    ../../Font/

                    CONFIG += console

                    SOURCES += main.cpp
                    ../../socketConfig/socketconfig.cpp
                    ../../advTcpSocket/advtcpsocket.cpp
                    ../../aimCard/src/aimcard.cpp
                    ../../condorCard/src/condorcard.cpp
                    ../../arincChannel/arincChannel.cpp
                    ../../advTcpServer/advtcpserver.cpp

                    HEADERS +=
                    ../../socketConfig/socketconfig.h
                    ../../advTcpSocket/advtcpsocket.h
                    ../../aimCard/src/aimcard.h
                    ../../condorCard/src/condorcard.h
                    ../../napArray/napArray.h
                    ../../arincChannel/arincChannel.h
                    ../../advTcpServer/advtcpserver.h

                    LIBS += -L"$$PRO_FILE_PWD/../../aimCard/src/third_part/aim/libs" -lapi_civ
                    -L"$$PRO_FILE_PWD/../../condorCard/src/third_part/condor/libs" -lcei_ll -lwinmm

                    CONFIG(debug) {
                    LIBS += -L"$$PRO_FILE_PWD/../../condorCard/src/third_part/condorLib-build-desktop/debug/" -lcondorLib
                    -L"$$PRO_FILE_PWD/../../aimCard/src/third_part/aim/libs" -lapi_civ
                    -L"$$PRO_FILE_PWD/../../condorCard/src/third_part/condor/libs" -lcei_ll -lwinmm
                    }
                    @

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

                      Did you copy the qmake from one machine to the other?
                      Do not forget the safety copy!

                      Are both OS identical?
                      Any OS language settings? Which are different?

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

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        Benjamin05
                        wrote on last edited by
                        #21

                        I have copied the whole project from one pc to the other. I could not build it, then I ran qmake and could again not build it. The I compared the new makefile with the backup.Unfortunatly are the backslashes created by the computer, that is working fine. The "correct" slashes are created by the computer that is getting the endless loop.

                        The problem is, that I cannot even reproduce the behaviour. I have some older makefiles from the "working" computer, which have no false baskslashes. This morning I tried and it made backslashes in the path. Still building the project worked fine. Sometimes I can build the project on the defect PC (when creating the makefile is skipped - the configuration has not changed) when I copy it from the working pc, sometimes the endless build occurs and sometimes I get Makefile Error 2 message. And the one file I copied can be build even after I run qmake on the defect PC.

                        Both OS are a french windows xp version. Qt is both times english and version 5.1.0

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

                          It could be windows xp possibly in combination with french. However, this is for sure trying hit something in the fog. :(
                          Qt libs are English anyway. You can change the language setting in Qt creator, but that should not matter I would think. default installations were in German in my case. I have changed merely because I used to have English interfaces and get irritated by German :)

                          The only thing you have apparently not tried (or I have not found) is copying the QMAKE.EXE version from one installation to the other.

                          However, once again, make sure that you have a safety copy in order to be able to restore.
                          As long as you have the identical setup (folder names and stuff) on both machines, this should be possible.
                          The executable QMAKE.EXE is most likely the trouble maker.

                          However, IMHO all is very illogical!!
                          If there are some issues with xp and new Qt creator respectively qmake, I cannot answer. I do not have the experience.
                          You would have to raise this question with the developer channel.

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

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            Benjamin05
                            wrote on last edited by
                            #23

                            Thank you again for your help.
                            I copied qmake.exe from the other computer and building and cleaning works fine now!
                            The only strange behaviour is, that I have to run qmake before building in order to get my sourcecode changes compiled. But this at least, is a behaviour I can live with!

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

                              [quote author="Benjamin05" date="1375429902"]
                              I copied qmake.exe from the other computer and building and cleaning works fine now!
                              [/quote]
                              That is good to know.

                              [quote author="Benjamin05" date="1375429902"]
                              The only strange behaviour is, that I have to run qmake before building in order to get my sourcecode changes compiled. But this at least, is a behaviour I can live with![/quote]
                              I got this behavior too. When switching between release and debug compilations, I need to run qmake for sure.
                              I have quite complex projects using "subdirs" templates. Editing in the subprojects is not always caught properly and caused already a couple of times heavy swearing ;-)

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

                              1 Reply Last reply
                              0
                              • W Offline
                                W Offline
                                woehrl.biz
                                wrote on last edited by
                                #25

                                Had the same behavior. I had a cross-compile environment building for Raspberry Pi. The reason for that behavior was, that the clock of the embedded system was hours late. That's why "make" resulted in calling "qmake" forever...

                                1 Reply Last reply
                                3
                                • B Benjamin05

                                  I have compared the makefiles using kdiff and found some differences:
                                  Makefile (from reference computer)
                                  @QMAKE = C:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe
                                  DEL_FILE = rm -f
                                  CHK_DIR_EXISTS= test -d
                                  MKDIR = mkdir -p
                                  COPY = cp -f
                                  COPY_FILE = cp -f
                                  COPY_DIR = cp -f -R
                                  INSTALL_FILE = cp -f
                                  INSTALL_PROGRAM = cp -f
                                  INSTALL_DIR = $(COPY_DIR)
                                  DEL_FILE = rm -f
                                  SYMLINK =
                                  DEL_DIR = rmdir
                                  MOVE = mv -f
                                  SUBTARGETS = @

                                  Makefile (from defecte computer)
                                  @QMAKE = C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\bin\qmake.exe
                                  DEL_FILE = del
                                  CHK_DIR_EXISTS= if not exist
                                  MKDIR = mkdir
                                  COPY = copy /y
                                  COPY_FILE = $(COPY)
                                  COPY_DIR = xcopy /s /q /y /i
                                  INSTALL_FILE = $(COPY_FILE)
                                  INSTALL_PROGRAM = $(COPY_FILE)
                                  INSTALL_DIR = $(COPY_DIR)
                                  DEL_FILE = del
                                  SYMLINK = copy /y
                                  DEL_DIR = rmdir
                                  MOVE = move
                                  SUBTARGETS = @

                                  Makefile.Debug (from defect computer)

                                  @
                                  ####### Compiler, tools and options

                                  CC = gcc
                                  CXX = g++
                                  DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
                                  CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES)
                                  CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES)
                                  INCPATH = -I..\src -I"....\advTcpSocket" -I"....\socketConfig" -I"....\aimCard\src" -I"....\aimCard\src\third_part\aim" -I"....\arincChannel" -I"....\condorCard\src" -I"....\condorCard\src\third_part\condor\include" -I"....\advTcpServer" -I"....\Font" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include\QtNetwork" -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\include\QtCore" -I"debug" -I"." -I"C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\mkspecs\win32-g++"
                                  LINKER = g++
                                  LFLAGS = -Wl,-subsystem,console -mthreads
                                  LIBS = "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../condorCard/src/third_part/condorLib-build-desktop/debug/" -lcondorLib "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../aimCard/src/third_part/aim/libs" -lapi_civ "-LC:/Documents and Settings/etzmcn/Bureau/Qt_latest/naplps_project/arinc2network/src/../../condorCard/src/third_part/condor/libs" -lcei_ll -lwinmm -LC:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\lib -lQt5Networkd -lQt5Cored
                                  QMAKE = C:\Qt\Qt5.1.0_new\5.1.0\mingw48_32\bin\qmake.exe
                                  IDC = idc
                                  IDL = midl
                                  ZIP = zip -r -9
                                  DEF_FILE =
                                  RES_FILE =
                                  COPY = copy /y
                                  SED =
                                  COPY_FILE = $(COPY)
                                  COPY_DIR = xcopy /s /q /y /i
                                  DEL_FILE = del
                                  DEL_DIR = rmdir
                                  MOVE = move
                                  CHK_DIR_EXISTS= if not exist
                                  MKDIR = mkdir
                                  INSTALL_FILE = $(COPY_FILE)
                                  INSTALL_PROGRAM = $(COPY_FILE)
                                  INSTALL_DIR = $(COPY_DIR)

                                  ####### Output directory

                                  OBJECTS_DIR = debug@

                                  Makefile.Debug (from referencecomputer)
                                  @
                                  ####### Compiler, tools and options

                                  CC = gcc
                                  CXX = g++
                                  DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
                                  CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES)
                                  CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES)
                                  INCPATH = -I../src -I'../../advTcpSocket' -I'../../socketConfig' -I'../../aimCard/src' -I'../../aimCard/src/third_part/aim' -I'../../arincChannel' -I'../../condorCard/src' -I'../../condorCard/src/third_part/condor/include' -I'../../advTcpServer' -I'../../Font' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtNetwork' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/include/QtCore' -I'debug' -I'.' -I'C:/Qt/Qt5.1.0/5.1.0/mingw48_32/mkspecs/win32-g++'
                                  LINKER = g++
                                  LFLAGS = -Wl,-subsystem,console -mthreads
                                  LIBS = -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../aimCard/src/third_part/aim/libs -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../condorCard/src/third_part/condor/libs -LC:/Qt_gui_desktop_working/naplps_project/arinc2network/src/../../condorCard/src/third_part/condorLib-build-desktop/debug/ -lcondorLib -lapi_civ -lcei_ll -lwinmm -LC:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib -lQt5Networkd -lQt5Cored
                                  QMAKE = C:/Qt/Qt5.1.0/5.1.0/mingw48_32/bin/qmake.exe
                                  IDC = idc
                                  IDL = midl
                                  ZIP =
                                  DEF_FILE =
                                  RES_FILE =
                                  COPY = cp -f
                                  SED = sed
                                  COPY_FILE = cp -f
                                  COPY_DIR = cp -f -R
                                  DEL_FILE = rm -f
                                  DEL_DIR = rmdir
                                  MOVE = mv -f
                                  CHK_DIR_EXISTS= test -d
                                  MKDIR = mkdir -p
                                  INSTALL_FILE = cp -f
                                  INSTALL_PROGRAM = cp -f
                                  INSTALL_DIR = $(COPY_DIR)

                                  ####### Output directory

                                  OBJECTS_DIR = debug/

                                  @

                                  Also are there a lot of backslash and slash differences!

                                  Furthermore I am currently able to use one of my projects on the defect computer after building it successfully on another one. I can build clean and run qmake without problems, though I have no clue, why this project works now.
                                  Unfortunatly all other projects do either not run at all, or do not runafter I made qmake on the defect computer.

                                  jsulmJ Offline
                                  jsulmJ Offline
                                  jsulm
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #26

                                  @Benjamin05 The first Makefile from the two you compared looks like a Makefile generated for UNIX systems:

                                  DEL_FILE = rm -f
                                  CHK_DIR_EXISTS= test -d
                                  

                                  The other one is for Windows.

                                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    sl.sy.ifm
                                    wrote on last edited by
                                    #27

                                    I just ran into another case where this can happen with Qt5.11 mingw (and completely clean project ... so, no old makefiles or similar)
                                    it seems it was triggered by a too long file path (it seems even on Windows10 there is some max-file-path at least for the mingw tools) ... I worked around that by reducing the name of the shadow-build folder
                                    ... from "build-FoobarUI-Desktop_Qt_5_11_1_MinGW_32bit-Debug" into "build-qt11_mingw"

                                    ... I guess other workarounds are probably to relocate sourcecode (so that it has shorter absolute path) ... or reducing folder name length in the project it self

                                    Just wanted to drop this info, in case someone also runs into this old thread by googling ;)

                                    1 Reply Last reply
                                    4
                                    • 8Observer88 Offline
                                      8Observer88 Offline
                                      8Observer8
                                      wrote on last edited by
                                      #28

                                      I had this problem. In my case it was because of too long path to the project.

                                      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