Friday, July 4th 2008, 11:36pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, May 9th 2008, 2:49pm

qmake + Incremented Builder Version Number

Hey @all,

is there a way to increment the/a build version when running make/qmake?
or can i run an application when the build procress starts?

Regards
N1Rulez

This post has been edited 1 times, last edit by "N1Rulez" (May 9th 2008, 2:50pm)

  • Go to the top of the page

2

Saturday, May 10th 2008, 8:14pm

RE: qmake + Incremented Builder Version Number

In makefile you can run virtually every application you need. I don't know if it is possible using qmake script.
  • Go to the top of the page

3

Saturday, May 10th 2008, 10:34pm

RE: qmake + Incremented Builder Version Number

Quoted

Originally posted by N1Rulez
is there a way to increment the/a build version when running make/qmake?
or can i run an application when the build procress starts?

I don't exactly understand the question
Nicolas
  • Go to the top of the page

4

Saturday, May 10th 2008, 11:29pm

RE: qmake + Incremented Builder Version Number

Nicolas, I think that the problem is how to automatically increase build number of your application. It's not easy to do if you are not using something like cvs or svn.
  • Go to the top of the page

5

Friday, May 16th 2008, 1:35pm

Ok,

i use SVN but how can I do so, that if the program is newly compiled. That the Program has the new version?

Example:

Source code

1
2
3
4
5
6
7
8
1.) Version is 1.0.0.101          => Version 1 Build 101
1.1) qmake (but this is optional)
2.) Make code changes
3.) Compile program (make, mingw32-make, ...)
4.) Version is now 1.0.0.102          => Version 1 Build 102
5.) Start program:

MyApp (1.0.0.102) (C) by SomeName 2008



Regards N1Rulez

This post has been edited 1 times, last edit by "N1Rulez" (May 16th 2008, 1:37pm)

  • Go to the top of the page

6

Friday, May 16th 2008, 2:09pm

I don't understand why you want the version to be automaticaly changed at each build
if it's only to prevent writing an executing file, use install and only run installed program and libraries
when you really want to change versionning for your app/lib, change value of VERSION qmake variable in .pro/.prf files
Nicolas
  • Go to the top of the page

Rate this thread