Bug report #421

wrong path to GRASS headers

Added by superandrzej-epf-pl - almost 18 years ago. Updated over 17 years ago.

Status:Closed
Priority:Low
Assignee:Gary Sherman
Category:Build/Install
Affected QGIS version: Regression?:No
Operating System:Linux Easy fix?:No
Pull Request or Patch supplied: Resolution:wontfix
Crashes QGIS or corrupts data: Copied to github as #:10480

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>

History

#1 Updated by anonymous - almost 18 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed

#2 Updated by superandrzej-epf-pl - almost 18 years ago

  • Resolution deleted (worksforme)
  • Status changed from Closed to Feedback

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?

#3 Updated by Tim Sutton over 17 years ago

  • Resolution set to wontfix
  • Status changed from Feedback to 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.

Also available in: Atom PDF