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. sharing projects in qt
Forum Updated to NodeBB v4.3 + New Features

sharing projects in qt

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.6k Views
  • 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
    aravmadd
    wrote on 26 Mar 2021, 10:05 last edited by
    #1

    Hi,

    So now i have some qt project with me. If i want to send this project (ideally i want to be like this. When someone opens this project, it need to build when), can i send directly the project? Can the other user will be able to run this project in his sytem if qtcreator is installed. I am using qmake so i think he needs qtcreator in his sytem.

    I am asking this because. I tried to copy the same project to other folder and run the project using qt creator. Then few errors are coming out like

    C:\Qt5.12\5.12.2\msvc2015_64\bin\qmake.exe -o Makefile ..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\Project_V2_0_0_0.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
    	C:\Qt5.12\Tools\QtCreator\bin\jom.exe -f Makefile.Release
    Error: dependent '..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\project.ui' does not exist.
    

    I am confused in the error part the ui is there in the copied folder. But why it was searching in three folders above Downloads folder
    I copied my existing project from documents folder to downloads folder and folder location is like this

    C:\Users\aravmadd\Downloads\Projectr_V2_0_0_0\Project_V2_0_0_0
    Inside this folder there is folder names with project_V2_0_0 -> which contains all source files and pro file and ui file and resources file
    another folder to contain eigen dependencies named dependencies
    another folder with config file.
    
    

    I am not sure if question is so clear. Please let me know if you need any more information.

    Many Thanks :-)

    J J 2 Replies Last reply 26 Mar 2021, 10:11
    0
    • A aravmadd
      26 Mar 2021, 10:05

      Hi,

      So now i have some qt project with me. If i want to send this project (ideally i want to be like this. When someone opens this project, it need to build when), can i send directly the project? Can the other user will be able to run this project in his sytem if qtcreator is installed. I am using qmake so i think he needs qtcreator in his sytem.

      I am asking this because. I tried to copy the same project to other folder and run the project using qt creator. Then few errors are coming out like

      C:\Qt5.12\5.12.2\msvc2015_64\bin\qmake.exe -o Makefile ..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\Project_V2_0_0_0.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
      	C:\Qt5.12\Tools\QtCreator\bin\jom.exe -f Makefile.Release
      Error: dependent '..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\project.ui' does not exist.
      

      I am confused in the error part the ui is there in the copied folder. But why it was searching in three folders above Downloads folder
      I copied my existing project from documents folder to downloads folder and folder location is like this

      C:\Users\aravmadd\Downloads\Projectr_V2_0_0_0\Project_V2_0_0_0
      Inside this folder there is folder names with project_V2_0_0 -> which contains all source files and pro file and ui file and resources file
      another folder to contain eigen dependencies named dependencies
      another folder with config file.
      
      

      I am not sure if question is so clear. Please let me know if you need any more information.

      Many Thanks :-)

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 26 Mar 2021, 10:17 last edited by
      #3

      @aravmadd
      You probably copied stuff that should not be shared. Try the following:

      on the other pc,

      • Close QtCreator
      • delete the *pro.user file
      • delete buildfolder (all moc_xxx files, *.o files etc, just delete the shadow build folder)
      • delete any and all .qmake-stash files you can find (they are "hidden" files)
      • open the project in QtCreator
      • Select appropriate kit -> Build

      See if that helps


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      A 1 Reply Last reply 26 Mar 2021, 10:23
      4
      • A aravmadd
        26 Mar 2021, 10:05

        Hi,

        So now i have some qt project with me. If i want to send this project (ideally i want to be like this. When someone opens this project, it need to build when), can i send directly the project? Can the other user will be able to run this project in his sytem if qtcreator is installed. I am using qmake so i think he needs qtcreator in his sytem.

        I am asking this because. I tried to copy the same project to other folder and run the project using qt creator. Then few errors are coming out like

        C:\Qt5.12\5.12.2\msvc2015_64\bin\qmake.exe -o Makefile ..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\Project_V2_0_0_0.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
        	C:\Qt5.12\Tools\QtCreator\bin\jom.exe -f Makefile.Release
        Error: dependent '..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\project.ui' does not exist.
        

        I am confused in the error part the ui is there in the copied folder. But why it was searching in three folders above Downloads folder
        I copied my existing project from documents folder to downloads folder and folder location is like this

        C:\Users\aravmadd\Downloads\Projectr_V2_0_0_0\Project_V2_0_0_0
        Inside this folder there is folder names with project_V2_0_0 -> which contains all source files and pro file and ui file and resources file
        another folder to contain eigen dependencies named dependencies
        another folder with config file.
        
        

        I am not sure if question is so clear. Please let me know if you need any more information.

        Many Thanks :-)

        J Online
        J Online
        jsulm
        Lifetime Qt Champion
        wrote on 26 Mar 2021, 10:11 last edited by
        #2

        @aravmadd QtCreator is not required, but Qt is. To share projects with other developers you should only share source code, no binaries. Ideally you would use a code versioning system like Git.

        "I tried to copy the same project to other folder and run the project using qt creator" - what exactly did you copy?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        A 1 Reply Last reply 26 Mar 2021, 10:20
        0
        • A aravmadd
          26 Mar 2021, 10:05

          Hi,

          So now i have some qt project with me. If i want to send this project (ideally i want to be like this. When someone opens this project, it need to build when), can i send directly the project? Can the other user will be able to run this project in his sytem if qtcreator is installed. I am using qmake so i think he needs qtcreator in his sytem.

          I am asking this because. I tried to copy the same project to other folder and run the project using qt creator. Then few errors are coming out like

          C:\Qt5.12\5.12.2\msvc2015_64\bin\qmake.exe -o Makefile ..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\Project_V2_0_0_0.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
          	C:\Qt5.12\Tools\QtCreator\bin\jom.exe -f Makefile.Release
          Error: dependent '..\..\..\Downloads\Project_V2_0_0_0\Project_V2_0_0_0\project.ui' does not exist.
          

          I am confused in the error part the ui is there in the copied folder. But why it was searching in three folders above Downloads folder
          I copied my existing project from documents folder to downloads folder and folder location is like this

          C:\Users\aravmadd\Downloads\Projectr_V2_0_0_0\Project_V2_0_0_0
          Inside this folder there is folder names with project_V2_0_0 -> which contains all source files and pro file and ui file and resources file
          another folder to contain eigen dependencies named dependencies
          another folder with config file.
          
          

          I am not sure if question is so clear. Please let me know if you need any more information.

          Many Thanks :-)

          J Offline
          J Offline
          J.Hilk
          Moderators
          wrote on 26 Mar 2021, 10:17 last edited by
          #3

          @aravmadd
          You probably copied stuff that should not be shared. Try the following:

          on the other pc,

          • Close QtCreator
          • delete the *pro.user file
          • delete buildfolder (all moc_xxx files, *.o files etc, just delete the shadow build folder)
          • delete any and all .qmake-stash files you can find (they are "hidden" files)
          • open the project in QtCreator
          • Select appropriate kit -> Build

          See if that helps


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          A 1 Reply Last reply 26 Mar 2021, 10:23
          4
          • J jsulm
            26 Mar 2021, 10:11

            @aravmadd QtCreator is not required, but Qt is. To share projects with other developers you should only share source code, no binaries. Ideally you would use a code versioning system like Git.

            "I tried to copy the same project to other folder and run the project using qt creator" - what exactly did you copy?

            A Offline
            A Offline
            aravmadd
            wrote on 26 Mar 2021, 10:20 last edited by
            #4

            @jsulm . Actually i shared entire project which contains all the source codes except build folder.

            For now what i have done is i also copied the same project to different folder in my pc then tried to run the same project from different folder. then the error is coming which is shown in question . I am not sure if this is the right way

            1 Reply Last reply
            0
            • J J.Hilk
              26 Mar 2021, 10:17

              @aravmadd
              You probably copied stuff that should not be shared. Try the following:

              on the other pc,

              • Close QtCreator
              • delete the *pro.user file
              • delete buildfolder (all moc_xxx files, *.o files etc, just delete the shadow build folder)
              • delete any and all .qmake-stash files you can find (they are "hidden" files)
              • open the project in QtCreator
              • Select appropriate kit -> Build

              See if that helps

              A Offline
              A Offline
              aravmadd
              wrote on 26 Mar 2021, 10:23 last edited by aravmadd
              #5

              @J-Hilk I i have done the same thing as you described. However i deleted pro.user file and build folder .

              Thanks for the answer. There are some hidden files which i copied. So error is from that.

              1 Reply Last reply
              0

              1/5

              26 Mar 2021, 10:05

              • Login

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