[GRASS-dev] Re: [GRASS GIS] #364: Compiling QGIS from svn has a compiler error related to GRASS api

GRASS GIS trac at osgeo.org
Mon Nov 17 00:46:39 EST 2008


#364: Compiling QGIS from svn has a compiler error related to GRASS api
----------------------+-----------------------------------------------------
  Reporter:  cgsbob   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  6.4.0                    
 Component:  default  |     Version:  svn-trunk                
Resolution:           |    Keywords:                           
  Platform:  Linux    |         Cpu:  x86-64                   
----------------------+-----------------------------------------------------
Comment (by hamish):

 Replying to [comment:4 glynn]:
 > Replying to [comment:3 neteler]:
 >
 > > A rather simple solution could be to test the version as already done
 in src/plugins/grass/qgsgrassnewmapset.cpp:
 > >
  {{{
  #if GRASS_VERSION_MAJOR == 6 && GRASS_VERSION_MINOR >= 4
  }}}
 >
 > That won't distinguish between 6.4 as of a week ago and 6.4 as of today.
 >
 > OTOH, it will work fine if external code only ever uses release
 versions.


 We can't be expected to guarantee that development snapshots will
 be free of changes, and folks who base stuff on random checkouts from dev
 branches should realize that.

 where do we have to test/warn? qgis-grass plugin and the
 gdal(ogr)-grass plugin?  jGRASS?

 +1 for
 {{{
 src/plugins/grass/qgsgrassnewmapset.cpp:
 #if GRASS_VERSION_MAJOR == 6 && GRASS_VERSION_MINOR >= 4
 }}}
 solution.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/364#comment:5>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list