Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can't use my Build and Run settings in another system
QtWS25 Last Chance

Can't use my Build and Run settings in another system

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qt-creator
3 Posts 2 Posters 227 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.
  • D Offline
    D Offline
    Durukan
    wrote on 2 Dec 2024, 10:12 last edited by
    #1

    Hello, Recently I tried to create a one project and collect my projects in these project. I wrote a new pro file and "CONFIG" setting, now if I wrote terminal "CONFIG+=press" and then run make it builds press, but I don't want to use it in terminal, so I added this settings to UI. In my build settings for every project I added Qmake setting for "CONFIG" command.
    Now the problem is I can use my custom run and build settings in my system but in different systems I can't use this settings in qt creator. I don't want to set this configurations for every system.
    I tried few methods, like changing "pro.user" file writing a new "pro.shared" file. I saw this method in offical qt documentation (it was for cmake but use qmake) and tried it. With this method I couldn't do it. I always see the messagebox about problems about shared file or user file. I know that user file is unique but I tried to rename shared file as user file. even this method didn't work as it expected. I just want to use path of executable and qmake commands. so how could I save this settings for different systems.

    P 1 Reply Last reply 2 Dec 2024, 12:24
    0
    • D Durukan
      2 Dec 2024, 10:12

      Hello, Recently I tried to create a one project and collect my projects in these project. I wrote a new pro file and "CONFIG" setting, now if I wrote terminal "CONFIG+=press" and then run make it builds press, but I don't want to use it in terminal, so I added this settings to UI. In my build settings for every project I added Qmake setting for "CONFIG" command.
      Now the problem is I can use my custom run and build settings in my system but in different systems I can't use this settings in qt creator. I don't want to set this configurations for every system.
      I tried few methods, like changing "pro.user" file writing a new "pro.shared" file. I saw this method in offical qt documentation (it was for cmake but use qmake) and tried it. With this method I couldn't do it. I always see the messagebox about problems about shared file or user file. I know that user file is unique but I tried to rename shared file as user file. even this method didn't work as it expected. I just want to use path of executable and qmake commands. so how could I save this settings for different systems.

      P Online
      P Online
      Pl45m4
      wrote on 2 Dec 2024, 12:24 last edited by
      #2

      @Durukan

      I have no idea what you are saying there.

      pro.user
      

      This file contains the current project user config and shouldn't be shared between projects or used on other systems.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      D 1 Reply Last reply 3 Dec 2024, 08:39
      1
      • P Pl45m4
        2 Dec 2024, 12:24

        @Durukan

        I have no idea what you are saying there.

        pro.user
        

        This file contains the current project user config and shouldn't be shared between projects or used on other systems.

        D Offline
        D Offline
        Durukan
        wrote on 3 Dec 2024, 08:39 last edited by
        #3

        @Pl45m4 I apologize for my incomplete explanation. What I meant to say is exactly this:

        I created a project and build/run settings which includes path of destinations, executables and qmake settings. When I publish my project to another person all the settings I created are missing. As you said pro.user file shouldn't shared between projects or used on other systems. But As I read in qt documents it says pro.shared file could be shared for make projects settings portable. The problem is I wrote this file and I can share my settings to another system, but every time I need to change the version and set the current path of project for build/run configurations.
        Here is an example:

        C:\Users\duruk\Desktop\Sample\build
        

        This is the target path of my Press_Release build configuration. As you see this path is unique for my system (name of project is Sample, this folder contains pro file and pro.shared file). I have written a bash file to changing the paths to current paths, and a manual for describing how to user could set configuration. This is the bash file I wrote to changing paths:

        DOSYA="Sample.pro.shared"
        OLD="xxxxx"
        NEW=$(PWD)
        
        if [ ! -f "$DOSYA" ]; then
         
          exit 1
        fi
        
        sed -i "s|$OLD|$NEW|g" "$DOSYA"
        

        Well now I'm searching a way to settings project path automaticly and and prevent changing ProjectExplorer.Project.Updater.FileVersion variable every time project moved another system. Is there anyway to share settings more easy and effective?

        The documentation of the method I tried:

        https://doc.qt.io/qtcreator/creator-sharing-project-settings.html
        

        Thank you for your reply.

        1 Reply Last reply
        0
        • C Christian Ehrlicher moved this topic from General and Desktop on 3 Dec 2024, 14:04

        1/3

        2 Dec 2024, 10:12

        • Login

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