August 23, 2010

kimf kimf
Lab Rat
18 posts

Program version

 

Hi

How do I set the program version in qt-creator ?

I have an application I want to distribute for linux (maemo), when I created the project I set the program version to 1.0, and the distribution (.deb) build is also of version 1.0.

Now I have made some changes, so now the version should be 1.1, but even though i have added the VERSION = 1.1.0 line to the .pro file, the distribution still is named TestProject_1.0_armel.deb !

By the way, are there any central place for the version number, I would like to only have to set the version once, and then being able to use this in the about text in the program, in the distribution package name and the distribution control file etc.

Thanks.

Kim Foder

5 replies

August 24, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

this is covered in this faq [developer.qt.nokia.com]

if that doesn’t work can u post you .pro file here

August 24, 2010

kandeler kandeler
Lab Rat
7 posts

The package version number can be set from the packaging widget (Creator 2.0: In the project’s build settings, master branch: in the run settings).
The VERSION string from the project file is NOT synchronized with the package version. Rationale: A Qt project can have several sub projects, each with their own version number (e.g. different libraries), but only one package will be created.

August 24, 2010

kimf kimf
Lab Rat
18 posts

this is covered in this faq

Unfortunately not, this faq is the one causing me to try and set the version = x.y.z parameter in the .pro file, and as zambesi writes this does not set the package version number.

Zambesi : I don’t see any place to set the version number (please see picture), can you explain some more, please ?

Kim

screenshot

August 24, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

give this link [wiki.maemo.org] a shot, there is also a link to the packaging guide there

August 25, 2010

kandeler kandeler
Lab Rat
7 posts

kimf wrote:

Zambesi : I don't see any place to set the version number (please see picture), can you explain some more, please ?

Whoops, looks like Creator 2.0 hardcodes the version number. Sorry about that, it’s not so easy to keep track of when what feature was added. Anyway, Creator 2.0.1, which is coming very soon, will let you set the package version. (It’s mostly a bugfix release, but it has some new features as well).

 
  ‹‹ .pro editor broken in Eclipse Helios      qt-creator and path to embedded toolchain ››

You must log in to post a reply. Not a member yet? Register here!