Opened 17 years ago
Closed 17 years ago
#421 closed defect (wontfix)
wrong path to GRASS headers
Reported by: | Owned by: | gsherman | |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Build/Install | Version: | 0.7 |
Keywords: | grass headers | Cc: | |
Must Fix for Release: | Yes | Platform: | Linux |
Platform Version: | Awaiting user input: | no |
Description
during configure qgis assumes that path to grass installation is: /path/to/the/grass/include while in fact it is: /path/to/the/grass/include/grass
To following files need to be changed in order for configure and make to complete successfully:
in qgis-0.7.4/configure
there should be:
GISINC=ls $with_grass/include/grass/gis.h
instead of
GISINC=ls $with_grass/include/gis.h
in qgis-0.7.4/providers/grass/qgsgrass.h there should be: #include <grass/gis.h> #include <grass/form.h> instead of: #include <gis.h> #include <form.h>
in qgis-0.7.4/providers/grass/qgsgrassprovider.cpp there should be: #include <grass/gprojects.h> #include <grass/gis.h> #include <grass/dbmi.h> #include <grass/Vect.h> instead of: #include <gprojects.h> #include <gis.h> #include <dbmi.h> #include <Vect.h>
in qgis-0.7.4/providers/grass/provider.cpp there should be: #include <grass/gis.h> #include <grass/dbmi.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <dbmi.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassplugin.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassplugin.h there should be: #include <grass/gis.h> instead of: #include <gis.h>
in qgis-0.7.4/plugins/grass/qgsgrassselect.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassedit.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrasstools.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassmodule.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassattributes.cpp there should be: #include <grass/gis.h> #include <grass/Vect.h> instead of: #include <gis.h> #include <Vect.h>
in qgis-0.7.4/plugins/grass/qgsgrassregion.cpp there should be: #include <grass/gis.h> instead of: #include <gis.h>
Change History (3)
comment:1 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:3 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
There is no further work on 0.7 branch. There is no further work on automake build system as we are moving to cmake in trunk. Please test on trunk and report any errors you may find there.
Thank you for your interest.
I compiled grass-6.2.1 with --prefix=/usr option and headers are located in: /usr/grass-6.2.1/include/grass/ in that case qgis returns error during ./configure --with-grass=/usr/grass-6.2.1 You can bypass this error if headers are copied manually from /usr/grass-6.2.1/include/grass/ into /usr/grass-6.2.1/include but then during compilation you have another errors. Only changes that I mentioned above allow to conclude the ./configure and compilation without errors.
Where are your grass headers located?