Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-46781

Error while building project with CONFIG += object_parallel_to_source and SOURCES path containing "../"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.4.1
    • Build tools: qmake
    • None

    Description

      Here is my .pro file (d:\Develop\sandbox\untitled\untitled.pro)

      CONFIG += object_parallel_to_source
      
      SOURCES += main.cpp \
          ../testclass.cpp
      
      HEADERS += \
          ../testclass.h
      

      I get an error:

      LINK : fatal error LNK1181: cannot open input file 'release\Develop\sandbox\testclass.obj'
      
      14:15:04: Starting: "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe" clean
      	C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe -f Makefile.Release clean
      	del release\main.obj release\Develop\sandbox\testclass.obj
      Could not find D:\Develop\sandbox\build-untitled-qt_static-Release\release\Develop\sandbox\testclass.obj
      	C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug clean
      	del debug\main.obj debug\Develop\sandbox\testclass.obj
      Could not find D:\Develop\sandbox\build-untitled-qt_static-Release\debug\main.obj
      Could not find D:\Develop\sandbox\build-untitled-qt_static-Release\debug\Develop\sandbox\testclass.obj
      	del debug\untitled.ilk debug\untitled.idb
      Could not find D:\Develop\sandbox\build-untitled-qt_static-Release\debug\untitled.ilk
      14:15:04: The process "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe" exited normally.
      14:15:04: Configuration unchanged, skipping qmake step.
      14:15:04: Starting: "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe" 
      	C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe -f Makefile.Release
      	cl -c -nologo -Zm200 -Zc:wchar_t -FS -O2 -MT -Zc:strictStrings -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_CORE_LIB -DNDEBUG -I"..\untitled" -I"." -I"..\..\..\qt-everywhere-opensource-src-5.4.1\qtbase\include" -I"..\..\..\qt-everywhere-opensource-src-5.4.1\qtbase\include\QtCore" -I"release" -I"..\..\..\qt-everywhere-opensource-src-5.4.1\qtbase\mkspecs\win32-msvc2013" -Forelease\ @C:\Users\user\AppData\Local\Temp\main.obj.5112.0.jom
      main.cpp
      	link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\untitled.exe @C:\Users\user\AppData\Local\Temp\untitled.exe.5112.359.jom
      LINK : fatal error LNK1181: cannot open input file 'release\Develop\sandbox\testclass.obj'
      jom: D:\Develop\sandbox\build-untitled-qt_static-Release\Makefile.Release [release\untitled.exe] Error 1181
      jom: D:\Develop\sandbox\build-untitled-qt_static-Release\Makefile [release] Error 2
      14:15:05: The process "C:\Qt\Qt5.4.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project untitled (kit: qt-static)
      When executing step "Make"
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              zenden Sergey Solomatin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes