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. Working example of a .pro.shared file
Forum Updated to NodeBB v4.3 + New Features

Working example of a .pro.shared file

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreator 4.5.0shared settings
2 Posts 2 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.
  • B Offline
    B Offline
    BenjaminHabegger
    wrote on last edited by
    #1

    Hi
    I want to apply the make flags -j16 to a qt project every time i open it on a different machine / for a different Qt Kit.

    I tried to achieve this with the .pro.shared file attached, but no luck.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE QtCreatorProject>
    <!-- Written by QtCreator 4.5.0, 2018-01-08T05:13:01. -->
    <qtcreator>
    	<data>
    		<variable>ProjectExplorer.Project.Target.0</variable>
    		<valuemap type="QVariantMap">
    			<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
    				<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
    					<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
    						<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-j16</value>
    					</valuemap>
    				</valuemap>
    			</valuemap>
    		</valuemap>
    	</data>
    </qtcreator>
     
    

    I save this as <projectname>.pro.shared in the same location as the <projectname>.pro but the setting is no being applied when i reopen the project.
    What am i doing wrong?

    I also tried with the example file from here http://doc.qt.io/qtcreator/creator-sharing-project-settings.html

    but the settings were not picked up.

    Kind regards
    Ben

    aha_1980A 1 Reply Last reply
    0
    • B BenjaminHabegger

      Hi
      I want to apply the make flags -j16 to a qt project every time i open it on a different machine / for a different Qt Kit.

      I tried to achieve this with the .pro.shared file attached, but no luck.

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE QtCreatorProject>
      <!-- Written by QtCreator 4.5.0, 2018-01-08T05:13:01. -->
      <qtcreator>
      	<data>
      		<variable>ProjectExplorer.Project.Target.0</variable>
      		<valuemap type="QVariantMap">
      			<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
      				<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
      					<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
      						<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">-j16</value>
      					</valuemap>
      				</valuemap>
      			</valuemap>
      		</valuemap>
      	</data>
      </qtcreator>
       
      

      I save this as <projectname>.pro.shared in the same location as the <projectname>.pro but the setting is no being applied when i reopen the project.
      What am i doing wrong?

      I also tried with the example file from here http://doc.qt.io/qtcreator/creator-sharing-project-settings.html

      but the settings were not picked up.

      Kind regards
      Ben

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @BenjaminHabegger,

      AFAIK, the pro.shared was never not thought to share build-related settings, as that would require to have the same Kits on each installation.

      It may work nevertheless. Have you read the sentence "Note: You must always specify the ProjectExplorer.Project.Updater.FileVersion variable and use the same value for it as in the .pro.user file." from your shared doc page? Have you compared the FileVersion with your pro.user file?

      However, to solve your original problem, you can vote for QTCREATORBUG-18414.

      Qt has to stay free or it will die.

      1 Reply Last reply
      0

      • Login

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