What is the correct way to copy the folder of a project?



  • Hi.

    I've noticed a problem for several days.

    For example, I do a new project in QT creator and it works fine.

    Then copy and paste the folder that has the project in the same place, ie if the folder containing the project is called My_Project_1, the new folder is called My_Project_1-Copy.

    I change the name of the new folder to My_Project_2.

    I open the project that is in the folder My_Project_2., I compile it without problems and I download it to my mobile without problems. It works beautifully.

    Then in this 'new' project, I make a small modification, and compiling it generates this error:

    10:47:47: Running steps for project uno...
    10:47:47: Starting: "C:\Qt\Qt5.8.0\5.8\android_armv7\bin\qmake.exe" "H:\Desarrollo Hardware en Casa\QT Ejemplos\Ejemplo 3\uno\uno.pro" -spec android-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    The system can not find the path specified.
    10:47:48: The process "C:\Qt\Qt5.8.0\5.8\android_armv7\bin\qmake.exe" exited normally.
    10:47:48: Starting: "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" qmake_all
    mingw32-make: Nothing to be done for 'qmake_all'.
    10:47:49: The process "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    10:47:49: Starting: "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe"
    C:\Qt\Qt5.8.0\5.8\android_armv7\bin\uic.exe ....\Ejemplo\ 3\uno\mainwindow.ui -o ui_mainwindow.h
    File '....\Ejemplo' is not valid
    Makefile:875: recipe for target 'ui_mainwindow.h' failed
    mingw32-make: *** [ui_mainwindow.h] Error 1
    10:47:51: The process "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project uno (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
    When executing step "Make"

    10:47:51: Elapsed time: 00:03.**

    The solution is to continue in the project that is in the original folder

    Should I do something special to copy the project folder to another location on my PC's hard drive?

    Thanks


  • Qt Champions 2016

    No as far as I know you dont need to do anything special. But good rules are:
    Before copy, Build->Clean all
    Close Creator
    Copy folder
    In the copy folder, delete the .user file.
    open the .pro file ( db click)
    Check build folder in Projects
    Build->qmake
    Build->Rebuild all

    If still not working then really odd. ! :)



  • @DominusDRR , @mrjj is correct except I would add one item to his instructions.

    1. Remove the .pro.user file and let QtCreator regenerate it (it can store paths).

    Other than that, copying projects is pretty easy.



  • @mrjj said in What is the correct way to copy the folder of a project?:

    No as far as I know you dont need to do anything special. But good rules are:
    Before copy, Build->Clean all
    Close Creator
    Copy folder
    In the copy folder, delete the .user file.
    open the .pro file ( db click)
    Check build folder in Projects
    Build->qmake
    Build->Rebuild all

    If still not working then really odd. ! :)

    Ok. Thanks a lot !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.