Bug report #1735
Support newer GRASS version (modules directories)
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||11795|
When I compile QGIS I get this error:
CMake Error at src/plugins/grass/CMakeLists.txt:2 (SUBDIRS): subdirs Incorrect SUBDIRS command. Directory: modules-6.5 does not exists.
With a little research, I notice that the grass plugin module directory has been reorganized. I see that the changes make at [http://trac.osgeo.org/qgis/changeset?new=trunk%2Fqgis%2Fsrc%2Fplugins%2Fgrass%2FCMakeLists.txt%4010908&old=trunk%2Fqgis%2Fsrc%2Fplugins%2Fgrass%2FCMakeLists.txt%4010893] is not compatible with grass svn.
As a temporarily fixed, I did this:
ln -s /home/bobm/src/gis/qgis_svn/build/modules-6.4 /home/bobm/src/gis/qgis_svn/build/modules-6.5
I'm guessing that there are differences between the modules in GRASS 6.4 vs GRASS svn, so this is not an optimal solution.
#3 Updated by Maciej Sieczka - over 10 years ago
Still the case as of HEAD :
CMake Error at src/plugins/grass/CMakeLists.txt:8 (MESSAGE): Your GRASS version is not supported (/home/zxc/src/straight/qgis-trunk/src/plugins/grass/modules-6.5 is not found). CMake Error at src/plugins/grass/CMakeLists.txt:11 (MESSAGE): Your GRASS version is not supported (/home/zxc/src/straight/qgis-trunk/src/plugins/grass/modules-6.5 is not a Directory). CMake Error at src/plugins/grass/CMakeLists.txt:14 (SUBDIRS): subdirs Incorrect SUBDIRS command. Directory: modules-6.5 does not exists.
Symlink works for the compilation.
#4 Updated by Redmine Admin about 10 years ago
Because current modules-x.x system requires duplication of data and in general is not very flexible, I would suggest to replace it with additional attributes in qgm config files for min/max version of GRASS an option is valid for, for example:
<option key="map" until="6.0"> <option key="vectormap" since="6.1" until="6.3"> <option key="vector" since="6.4">
Similarly for whole modules.