[Qgis-developer] Compiling QGIS 2.4 with GCC 4.4 (debian squeeze)?
Luca Manganelli
luca76 at gmail.com
Thu Jun 19 07:02:37 PDT 2014
Hi,
I'm trying to compile QGIS git (after having success with 2.2) on
Debian Squeeze (6.0) which has GCC 4.4.2.
The compilations stops with an make error (see below for error trace).
In summary, GCC 4.4 doesn't like this line from
qgsvectorlayerfeatureiterator.cpp (line 87):
QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator(
QgsVectorLayerFeatureSource* source, bool ownSource,
const QgsFeatureRequest& request )
: QgsAbstractFeatureIteratorFromSource( source, ownSource, request )
, mEditGeometrySimplifier( 0 )
in the corresponding header .h file we have:
QgsVectorLayerFeatureIterator( QgsVectorLayerFeatureSource*
source, bool ownSource, const QgsFeatureRequest& request ) :
QgsAbstractFeatureIteratorFromSource( source, ownSource, request )
, mEditGeometrySimplifier( 0 );
it seems that the left part ( from ": QgsAbstractFeatureFromSource to
end) is missing, but adding it returns a preprocessing gcc error.
It's possible to fix this?
---------
[ 0%] Building CXX object
src/core/CMakeFiles/qgis_core.dir/qgsvectorlayerfeatureiterator.cpp.o
/home/trap/qgis-git/QGIS/src/core/qgsvectorlayerfeatureiterator.cpp:
In constructor ‘QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator(QgsVectorLayerFeatureSource*,
bool, const QgsFeatureRequest&)’:
/home/trap/qgis-git/QGIS/src/core/qgsvectorlayerfeatureiterator.cpp:87:
error: class ‘QgsVectorLayerFeatureIterator’ does not have any field
named ‘QgsAbstractFeatureIteratorFromSource’
/home/trap/qgis-git/QGIS/src/core/qgsvectorlayerfeatureiterator.cpp:88:
error: no matching function for call to
‘QgsAbstractFeatureIteratorFromSource<QgsVectorLayerFeatureSource>::QgsAbstractFeatureIteratorFromSource()’
/home/trap/qgis-git/QGIS/src/core/qgsfeatureiterator.h:113: note:
candidates are:
QgsAbstractFeatureIteratorFromSource< <template-parameter-1-1>
>::QgsAbstractFeatureIteratorFromSource(T*, bool, const
QgsFeatureRequest&) [with T = QgsVectorLayerFeatureSource]
/home/trap/qgis-git/QGIS/src/core/qgsfeatureiterator.h:111: note:
QgsAbstractFeatureIteratorFromSource<QgsVectorLayerFeatureSource>::QgsAbstractFeatureIteratorFromSource(const
QgsAbstractFeatureIteratorFromSource<QgsVectorLayerFeatureSource>&)
More information about the Qgis-developer
mailing list