[Qgis-developer] cmake variable WITH_GRASS broken?

Vaclav Petras wenzeslaus at gmail.com
Sat Oct 6 08:20:08 PDT 2012


Hi,

I'm compiling QGIS without GRASS. So I set cmake variable WITH_GRASS
to OFF. But qgis grass code is still running.

When I start QGIS I get this output:
...
Debug: src/providers/grass/qgsgrass.cpp: 128: (init) GRASS gisBase
from GISBASE env var is:
Debug: src/providers/grass/qgsgrass.cpp: 289: (isValidGrassBaseDir)
isValidGrassBaseDir()
Debug: src/providers/grass/qgsgrass.cpp: 133: (init) GRASS gisBase
from QSettings is:
Debug: src/providers/grass/qgsgrass.cpp: 289: (isValidGrassBaseDir)
isValidGrassBaseDir()
Debug: src/providers/grass/qgsgrass.cpp: 148: (init) GRASS gisBase
from configure is: /usr/lib64/grass64
Debug: src/providers/grass/qgsgrass.cpp: 289: (isValidGrassBaseDir)
isValidGrassBaseDir()
Debug: src/providers/grass/qgsgrass.cpp: 199: (init) Valid GRASS
gisBase is: /usr/lib64/grass64
Debug: src/providers/grass/qgsgrass.cpp: 230: (init) set PATH:
/usr/lib64/grass64/bin:/usr/lib64/grass64/scripts:MY_QGIS_SRC_PATH/grass/scripts/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
Debug: src/providers/grass/qgsgrass.cpp: 237: (init) set PYTHONPATH:
/usr/lib64/grass64/etc/python:
Segmentation fault

This is after make and running QGIS from build/output/bin.

I'm compiling QGIS with latest GDAL so I cannot link to my GRASS
system installation and I don't want to compile GRASS now.

I had similar problem on some other computer with WITH_GRASS set to
OFF. The compilation was broken because it was still linking to grass.
But in this case I thought that it is my problem with some configure
and clean combinations.

Vaclav


More information about the Qgis-developer mailing list