Bug report #4697

qtcreator driven builds fail to update qgsversion.h

Added by Richard Duivenvoorde almost 13 years ago. Updated almost 13 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Build/Install
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:14582

Description

I'm a rather new qtcreator user (just following Tim's blog pages :-( ).

But doing some commits myself in a branch, and switching to master (after 'git pull --rebase qgis master') and build this in qtcreator (just hitting 'debug build button'. The window title still shows me my old commit id (not the newer ones I retrieved from master).

From strk on irc I understand that this version is in qgsversion.h which is supposed to be updated ...


git branch -v | grep master
Redmine_feed: Bug #4428 (Closed): Diagram overlays not displaying when render caching is on <http://hub.qgis.o
* master               98f93ff fix #3185 and #4689
git status | grep branch
# On branch master

in qgsversion.h still:
#define QGSVERSION "ccfad5d" 

Not sure if I just do not use qtcreator's make system in the way I should, or it is a small bug in the qgis make files...

History

#1 Updated by Richard Duivenvoorde almost 13 years ago

  • Status changed from Open to Closed

ah... just running cmake via the 'project properties'/Build Settings/Reconfigure project fixes this.

So (my) conclusion: just do 'Run cmake' after you do a 'git pull --rebase qgis master'

(thanks strk for insights)

FYI: in the file CmakeLists.txt there is some code for creating the qgsversion.h file

Also available in: Atom PDF