Qt Forum

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

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

    General and Desktop
    3
    4
    3101
    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.
    • DominusDRR
      DominusDRR last edited by

      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

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

        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 1 Reply Last reply Reply Quote 3
        • Buckwheat
          Buckwheat last edited by

          @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.

          Dave Fileccia

          1 Reply Last reply Reply Quote 2
          • DominusDRR
            DominusDRR @mrjj last edited by

            @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 !

            1 Reply Last reply Reply Quote 1
            • First post
              Last post