Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » qmake + Incremented Builder Version Number » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page qmake + Incremented Builder Version Number
Author
Post « Previous Thread | Next Thread »
N1Rulez N1Rulez is a male
Coder


Registration Date: 09.04.2008
Posts: 16

Level: 8 [?]
Experience: 594
Next Level: 674

80 points of experience needed for next level

qmake + Incremented Builder Version Number Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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 time(s), it was last edited by N1Rulez: 09.05.2008 15:50.

09.05.2008 15:49 N1Rulez is offline Send an Email to N1Rulez Search for Posts by N1Rulez Add N1Rulez to your Buddy List
T.M.F. T.M.F. is a male
Chief Software Engineer


Registration Date: 21.11.2006
Posts: 140

Level: 24 [?]
Experience: 75,861
Next Level: 79,247

3,386 points of experience needed for next level

RE: qmake + Incremented Builder Version Number Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

In makefile you can run virtually every application you need. I don't know if it is possible using qmake script.
10.05.2008 21:14 T.M.F. is offline Send an Email to T.M.F. Homepage of T.M.F. Search for Posts by T.M.F. Add T.M.F. to your Buddy List
Nicolas SOUCHON
Wizard


Registration Date: 27.06.2007
Posts: 727

Level: 29 [?]
Experience: 235,832
Next Level: 242,754

6,922 points of experience needed for next level

RE: qmake + Incremented Builder Version Number Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
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
10.05.2008 23:34 Nicolas SOUCHON is online Send an Email to Nicolas SOUCHON Search for Posts by Nicolas SOUCHON Add Nicolas SOUCHON to your Buddy List
T.M.F. T.M.F. is a male
Chief Software Engineer


Registration Date: 21.11.2006
Posts: 140

Level: 24 [?]
Experience: 75,861
Next Level: 79,247

3,386 points of experience needed for next level

RE: qmake + Incremented Builder Version Number Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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.
11.05.2008 00:29 T.M.F. is offline Send an Email to T.M.F. Homepage of T.M.F. Search for Posts by T.M.F. Add T.M.F. to your Buddy List
N1Rulez N1Rulez is a male
Coder


Registration Date: 09.04.2008
Posts: 16

Level: 8 [?]
Experience: 594
Next Level: 674

80 points of experience needed for next level

Thread Starter Thread Started by N1Rulez
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
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 time(s), it was last edited by N1Rulez: Today, 14:37.

Today, 14:35 N1Rulez is offline Send an Email to N1Rulez Search for Posts by N1Rulez Add N1Rulez to your Buddy List
Nicolas SOUCHON
Wizard


Registration Date: 27.06.2007
Posts: 727

Level: 29 [?]
Experience: 235,832
Next Level: 242,754

6,922 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

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
Today, 15:09 Nicolas SOUCHON is online Send an Email to Nicolas SOUCHON Search for Posts by Nicolas SOUCHON Add Nicolas SOUCHON to your Buddy List
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Programming » qmake + Incremented Builder Version Number

views today: 9.933 | views yesterday: 17.520 | total views: 10.243.302


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich