Opened 15 years ago
Last modified 13 years ago
#1735 assigned bug
Support newer GRASS version (modules directories)
Reported by: | cgsbob | Owned by: | rugginoso |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.7.0 |
Component: | GRASS | Version: | Trunk |
Keywords: | GRASS module reorganize | Cc: | grass-dev@… |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | yes |
Description
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.
Change History (9)
comment:1 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 15 years ago
Awaiting user input: | set |
---|
comment:3 by , 15 years ago
Cc: | added |
---|
I've cc'd grass-dev@… since there might be some interest in this bug.
comment:4 by , 15 years ago
Milestone: | → Version 1.2.0 |
---|
comment:5 by , 15 years ago
Component: | Build/Install → GRASS |
---|---|
Summary: | cmake error caused by recent GRASS Plugin changes. → Support newer GRASS version (modules directories) |
comment:6 by , 14 years ago
Platform: | Debian → All |
---|
Still the case as of HEAD r12852:
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.
comment:7 by , 14 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.
comment:8 by , 14 years ago
Milestone: | Version 1.5.0 → Version 1.6.0 |
---|
Could you list me the modules that don't work with grass-6.5 (and maybe 7.0) so I will create the right directories with right module definitions in them?