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. What should I set to compile a Qt file after change the paths of files?
Qt 6.11 is out! See what's new in the release blog

What should I set to compile a Qt file after change the paths of files?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 849 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.
  • A Offline
    A Offline
    Aaron Kim
    wrote on last edited by aha_1980
    #1

    0_1531819108527_1.PNG
    As you can see, it looks like below. (Before I changed, they were all in the same folder : Calculator)
    Calculator
    └ main.cpp
    └ Calculator.pro
    └ view
     └ mainwindow.cpp
     └ mainwindow.ui
     └ header
      └ mainwindow.h

    I edited Calculator.pro to apply path changes like below.

    SOURCES += \
            main.cpp \
            view/mainwindow.cpp
    
    HEADERS += \
            view/header/mainwindow.h
    
    FORMS += \
            view/mainwindow.ui
    

    However, when I try to compile it gives an error.

    18:10:30: Configuration unchanged, skipping qmake step.
    18:10:30: Starting: "D:\qt\Tools\QtCreator\bin\jom.exe" 
    	D:\qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    Error: dependent '..\Calculator\mainwindow.ui' does not exist.
    jom: C:\Users\Coder\Desktop\qt\build-Calculator-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile [debug] Error 2
    18:10:30: The process "D:\qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project Calculator (kit: Desktop Qt 5.11.1 MSVC2015 32bit)
    The kit Desktop Qt 5.11.1 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    18:10:30: Elapsed time: 00:00.
    

    Error: dependent '..\Calculator\mainwindow.ui' does not exist.
    It seems that changes are not applied. What files should I edit to make it work?

    K 1 Reply Last reply
    0
    • A Aaron Kim

      0_1531819108527_1.PNG
      As you can see, it looks like below. (Before I changed, they were all in the same folder : Calculator)
      Calculator
      └ main.cpp
      └ Calculator.pro
      └ view
       └ mainwindow.cpp
       └ mainwindow.ui
       └ header
        └ mainwindow.h

      I edited Calculator.pro to apply path changes like below.

      SOURCES += \
              main.cpp \
              view/mainwindow.cpp
      
      HEADERS += \
              view/header/mainwindow.h
      
      FORMS += \
              view/mainwindow.ui
      

      However, when I try to compile it gives an error.

      18:10:30: Configuration unchanged, skipping qmake step.
      18:10:30: Starting: "D:\qt\Tools\QtCreator\bin\jom.exe" 
      	D:\qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
      Error: dependent '..\Calculator\mainwindow.ui' does not exist.
      jom: C:\Users\Coder\Desktop\qt\build-Calculator-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile [debug] Error 2
      18:10:30: The process "D:\qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
      Error while building/deploying project Calculator (kit: Desktop Qt 5.11.1 MSVC2015 32bit)
      The kit Desktop Qt 5.11.1 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
      When executing step "Make"
      18:10:30: Elapsed time: 00:00.
      

      Error: dependent '..\Calculator\mainwindow.ui' does not exist.
      It seems that changes are not applied. What files should I edit to make it work?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Aaron-Kim

      When you are in Qt creator you should rerun qmake. Go to the left pane where you typically find "Projects" otherwise select projects. Go to the project name and do a right click,select "Run qmake".

      In addition you can add

      CONFIG -= debug_and_release
      

      under windows the shadow functionality creates separate debug and release folders, which are considered as a bit obscure. Those different folders are blamed to require a rerun of qmake too often. The statement above combines the folders and makefiles as in linux.

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

      1 Reply Last reply
      3
      • A Offline
        A Offline
        Aaron Kim
        wrote on last edited by Aaron Kim
        #3

        @koahnig It works! thank you

        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