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 is the correct way to copy the folder of a project?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 4.6k 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.
  • DominusDRRD Offline
    DominusDRRD Offline
    DominusDRR
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      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. ! :)

      DominusDRRD 1 Reply Last reply
      3
      • BuckwheatB Offline
        BuckwheatB Offline
        Buckwheat
        wrote on last edited by
        #3

        @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
        2
        • mrjjM 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. ! :)

          DominusDRRD Offline
          DominusDRRD Offline
          DominusDRR
          wrote on last edited by
          #4

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

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved