Bug report #13850

compile error for qgis 2.8 (r60.g3667651) in file qgsdistancearea.cpp

Added by Donovan Cameron about 9 years ago. Updated about 9 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Build/Install
Affected QGIS version:2.8.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:Yes Copied to github as #:21874

Description

There's an error when trying to compile QGIS 2.8 (long term release) today. The file in question is "/core/CMakeFiles/qgis_core.dir/qgsdistancearea.cpp"

[ 5%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsdistancearea.cpp.o
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:462:8: error: prototype for ‘double QgsDistanceArea::measureLine(const QgsPoint&, const QgsPoint&)’ does not match any in class ‘QgsDistanceArea’
double QgsDistanceArea::measureLine( const QgsPoint &p1, const QgsPoint &p2 )
^
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:393:22: error: candidates are: const unsigned char* QgsDistanceArea::measureLine(const unsigned char*, double*, bool)
const unsigned char* QgsDistanceArea::measureLine( const unsigned char* feature, double* area, bool hasZptr )
^
In file included from /tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:28:0:
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.h:112:12: error: double QgsDistanceArea::measureLine(const QgsPoint&, const QgsPoint&, QGis::UnitType&) const
double measureLine( const QgsPoint& p1, const QgsPoint& p2, QGis::UnitType& units ) const;
^
In file included from /tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:28:0:
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.h:103:12: error: double QgsDistanceArea::measureLine(const QgsPoint&, const QgsPoint&) const
double measureLine( const QgsPoint& p1, const QgsPoint& p2 ) const;
^
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:420:8: error: double QgsDistanceArea::measureLine(const QList<QgsPoint>&)
double QgsDistanceArea::measureLine( const QList<QgsPoint> &points )
^
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp: In member function ‘double QgsDistanceArea::measureLine(const QgsPoint&, const QgsPoint&, QGis::UnitType&) const’
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:487:49: error: passing ‘const QgsDistanceArea’ as ‘this’ argument discards qualifiers [-fpermissive]
result = computeDistanceBearing( pp1, pp2 );
^
In file included from /tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:28:0:
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.h:143:12: note: in call to ‘double QgsDistanceArea::computeDistanceBearing(const QgsPoint&, const QgsPoint&, double*, double*)’
double computeDistanceBearing( const QgsPoint& p1, const QgsPoint& p2,
^
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:492:44: error: passing ‘const QgsDistanceArea’ as ‘this’ argument discards qualifiers [-fpermissive]
result = computeDistanceFlat( p1, p2 );
^
In file included from /tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.cpp:28:0:
/tmp/makepkg/qgis-ltr/src/qgis/src/core/qgsdistancearea.h:147:12: note: in call to ‘double QgsDistanceArea::computeDistanceFlat(const QgsPoint&, const QgsPoint&)’
double computeDistanceFlat( const QgsPoint& p1, const QgsPoint& p2 );
^
src/core/CMakeFiles/qgis_core.dir/build.make:2218: recipe for target 'src/core/CMakeFiles/qgis_core.dir/qgsdistancearea.cpp.o' failed
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgsdistancearea.cpp.o] Error 1
CMakeFiles/Makefile2:205: recipe for target 'src/core/CMakeFiles/qgis_core.dir/all' failed
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

History

#1 Updated by Nyall Dawson about 9 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Also available in: Atom PDF