-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling QGIS with GRASS 7 support #19018
Comments
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Tobias Schneider (Tobias Schneider) I don't know if this is of any help, but Synaptic tells me that the Grass70 package is defective. |
Author Name: Giovanni Manghi (@gioman) AFAIK QGIS is not prepared to support GRASS 7 through the QGIS/GRASS plugin. On the other hand the Processing toolbox already have support for GRASS 7 modules, but for that I don't think that QGIS needs to be compiled with GRASS.
|
Author Name: pvanbosgeo - (pvanbosgeo -) It would maybe be good what is holding back the support of GRASS through the QGIS GRASS plugin. Is it a problem with gdal (or the gdal-grass plugin) or rather a QGIS problem. This will also determine whether it is of any use to try to get this higher on the agenda of the GRASS or GDAL developers. On the other hand, if it is a QGIS issue, this can be changed to a feature request? As for the processing toolbox, it doesn't work for me either. It tells me GRASS GIS 7 is missing or not correctly configured. It is however running without problems, and as I don't see how otherwise I can configure it to work with QGIS I am at a loss here too. @tobias: I compiled grass7 from source. If you see it in synaptic, did you install it through a ppa? |
Author Name: Giovanni Manghi (@gioman) pvanbosgeo - wrote:
there is a long discussion here http://lists.osgeo.org/pipermail/qgis-developer/2014-April/032305.html but to resume the problem is also (beside de technical issues) that there is basically no one interested in investing keeping the qgis/grass plugin up to date and bug free. on the other hand the Processing toolbox already works with GRASS 7, it is just a matter to configure it correctly in the proper QGIS menu (maybe you may want to wait for this fix too #1487 ). |
Author Name: pvanbosgeo - (pvanbosgeo -) Thanks for the feedback and links. As for the processing toolbox, if you are on Linux, there does not seem to be much to configure from within QGIS. To quote from the manual, 'If you are running Linux, you just have to make sure that GRASS is correctly installed, and that it can be run without problem from a console'. Which it does in my case. But I still get the message that grass 7 is not installed or correctly configured. |
Author Name: Giovanni Manghi (@gioman) pvanbosgeo - wrote:
I haven't tested on Linux yet because it is too boring for me to compile a large package as GRASS. On the other hand on Windows with osgeo4w (that includes grass 7) the paths are configurable and Processing works fine (tested a few modules). you may want to file a ticket against Processing/GRASS 7 on Linux. |
Author Name: pvanbosgeo - (pvanbosgeo -) I'll do that... although I got one step further. When compiling GRASS master the name of the executable is grass71 while the toolbox is (apparently) looking for grass70. Creating a link grass70 to grass71 solves that problem. But then there are other errors, which I will report in a new ticket. Thanks. |
Author Name: Saber Razmjooei (@saberraz) I am having similar problems with GRASS 7.2.1 (svn revision 70792) with both QGIS master and 2.18 branch.
|
Author Name: Saber Razmjooei (@saberraz) Seems to be working with the latest stable GRASS
|
Author Name: pvanbosgeo - (pvanbosgeo -)
Original Redmine Issue: 10614
Affected QGIS version: 2.18.4
Redmine category:grass
I am trying to compile QGIS with GRASS7 support (using GDAL build with GRASS7 support - I did the 3-step approach, compiling gdal without grass, than grass and than gdal again, but with grass support), but it doesn't work. Because QGIS compiles fine without grass support, this may be related to problems with the gdal-grass integration. On the other hand, gdal compiled without problems and I can read grass raster and vector layers directly with gdal.
[ 24%] Built target gpxprovider
Scanning dependencies of target crssync
[ 24%] Building CXX object src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.cpp.o
[ 24%] Generating qrc_images.cxx
[ 24%] Building CXX object src/crssync/CMakeFiles/crssync.dir/main.cpp.o
Linking CXX executable ../../output/bin/crssync
[ 24%] Generating moc_qgshelpviewer.cxx
[ 24%] Generating ui_qgshelpviewerbase.h
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrass.cpp: In static member function ‘static void QgsGrass::setLocation(QString, QString)’:
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrass.cpp:381:35: error: ‘G_available_mapsets’ was not declared in this scope
char **ms = G_available_mapsets();
^
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrass.cpp: In static member function ‘static void QgsGrass::setMapset(QString, QString, QString)’:
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrass.cpp:400:35: error: ‘G_available_mapsets’ was not declared in this scope
char **ms = G_available_mapsets();
^
Scanning dependencies of target qgis_help
[ 44%] Built target qgis_gui
[ 44%] Building CXX object src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrassfeatureiterator.cpp.o
make[2]: *** [src/providers/grass/CMakeFiles/qgisgrass.dir/qgsgrass.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object src/helpviewer/CMakeFiles/qgis_help.dir/main.cpp.o
[ 44%] Building CXX object src/python/CMakeFiles/qgispython.dir/qgispython.cpp.o
[ 44%] Built target crssync
[ 44%] Generating analysis/sip_analysispart0.cpp, analysis/sip_analysispart1.cpp, analysis/sip_analysispart2.cpp, analysis/sip_analysispart3.cpp
[ 44%] Building CXX object src/python/CMakeFiles/qgispython.dir/qgspythonutilsimpl.cpp.o
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrassfeatureiterator.cpp: In constructor ‘QgsGrassFeatureSource::QgsGrassFeatureSource(const QgsGrassProvider*)’:
/home/paulo/Software/spatial/Quantum-GIS/src/providers/grass/qgsgrassfeatureiterator.cpp:619:7: warning: unused variable ‘layerId’ [-Wunused-variable]
int layerId = QgsGrassProvider::openLayer( p->mGisdbase, p->mLocation, p->mMapset, p->mMapName, p->mLayerField );
^
make[1]: *** [src/providers/grass/CMakeFiles/qgisgrass.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] [ 44%] Building CXX object src/helpviewer/CMakeFiles/qgis_help.dir/qgshelpviewer.cpp.o
Building CXX object src/helpviewer/CMakeFiles/qgis_help.dir/moc_qgshelpviewer.cxx.o
Linking CXX shared library ../../output/lib/libqgispython.so
[ 44%] [ 44%] Built target qgispython
Building CXX object src/helpviewer/CMakeFiles/qgis_help.dir/qrc_images.cxx.o
Linking CXX executable ../../output/lib/qgis/qgis_help
[ 44%] Built target qgis_help
Scanning dependencies of target python_module_qgis__analysis
[ 44%] [ 44%] [ 44%] [ 44%] Building CXX object python/CMakeFiles/python_module_qgis__analysis.dir/analysis/sip_analysispart0.cpp.o
Building CXX object python/CMakeFiles/python_module_qgis__analysis.dir/analysis/sip_analysispart2.cpp.o
Building CXX object python/CMakeFiles/python_module_qgis__analysis.dir/analysis/sip_analysispart1.cpp.o
Building CXX object python/CMakeFiles/python_module_qgis__analysis.dir/analysis/sip_analysispart3.cpp.o
Linking CXX shared library ../output/python/qgis/_analysis.so
[ 44%] Built target python_module_qgis__analysis
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: