tag:blogger.com,1999:blog-2149729862162628363.post5907059124950267223..comments2023-09-22T18:59:24.885+01:00Comments on Qt Creator Blog: Generating Automatic Version NumbersRob Caldecotthttp://www.blogger.com/profile/16139053405031925765noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-2149729862162628363.post-17845158404781421632013-07-04T09:42:44.146+01:002013-07-04T09:42:44.146+01:00Good for you.
Everyone else can find it here: http...Good for you.<br />Everyone else can find it here: http://qtcreator.blogspot.de/2010/01/code-to-generate-version-number-header.htmlAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-28075794121574258812010-01-15T04:54:59.770+00:002010-01-15T04:54:59.770+00:00Never mind, I found the version.cpp file... Thanks...Never mind, I found the version.cpp file... Thanks!<br /><br />JeffAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-5138325909485209012010-01-13T18:25:23.849+00:002010-01-13T18:25:23.849+00:00Rob, can you post the Qt program you wrote to gene...Rob, can you post the Qt program you wrote to generate the header?<br /><br />Thanks,<br /><br />JeffAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-72087549450418192612009-12-18T13:34:14.811+00:002009-12-18T13:34:14.811+00:00Hi, I am able to create the header file, but the p...Hi, I am able to create the header file, but the problem is this.<br /><br />I have project that the struct looks like this.<br />root<br />-SerialCom<br />--Dev1<br />--Dev2<br />-Ethernet<br />--App1<br />--App2<br /><br />so what i would like is if i modify the App1 but not Dev1 and Dev2 and so on the build number that is going to be update is just from App1 and no the others...<br /><br />Additional i am using mercurial(HG) for version control. so i have to add this line in the .pro file to ge the version.<br /><br />REV = $$system(hg id -n)<br /><br />well about the code it would be nice to see it, i also i can share mine if you want but i think is no the best solution.<br /><br />one more question where did you find information about this force i am trying to find something on internet but no results, or can you give some hints how to googled about this.<br /><br />And one more time, THANKS for such as useful utility. and as you said it can be used for other things(NICEEE ;))<br /><br />there is something else that came to my mind, what about when is a work group with the build number and the revision itself.<br /><br />I hope that this is not to crazy and you still would like to answer jejejeje..cafuhttps://www.blogger.com/profile/11730939630289684403noreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-35574237015183481292009-12-17T16:19:21.166+00:002009-12-17T16:19:21.166+00:00I increase the major and minor versions by hand (b...I increase the major and minor versions by hand (by changing the main .pro file). The other version number components (the SVN revision and build date) are changed automatically but the new version.h file only gets created if the version has actually changed.<br /><br />If you like I can post the source to the Qt console app I use to generate the version number.Rob Caldecotthttps://www.blogger.com/profile/16139053405031925765noreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-66545360285448701682009-12-17T14:59:28.069+00:002009-12-17T14:59:28.069+00:00one small question, how do you know when to increa...one small question, how do you know when to increase the build number since i am trying to use this code in a project with several folder and i would not like to update a build number if one folde that was not modifycafuhttps://www.blogger.com/profile/11730939630289684403noreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-8943582456257824272009-11-14T15:21:11.782+00:002009-11-14T15:21:11.782+00:00Thank you Rob! I was trying to do the exact same ...Thank you Rob! I was trying to do the exact same thing. Excellent work... :-) <br /><br />This is something that really should be better supported by qmake natively.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2149729862162628363.post-24543301536653692802009-10-12T15:38:51.866+01:002009-10-12T15:38:51.866+01:00thanks, this is extremely useful, I was wondering ...thanks, this is extremely useful, I was wondering how to accomplish this :-)<br /><br />ChrisAnonymousnoreply@blogger.com