Can't use my Build and Run settings in another system
-
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. -
@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.
-