[Qgis-user] Error compiling last released QGIS 2.18 for qgis-server

Andrea Peri aperi2007 at gmail.com
Fri Apr 27 04:41:01 PDT 2018


Hi,
I'm try.ing to compile the last relesed version of QGIS 2.18 as qgis-server
in Linux Debian.

But I'm having this error:

[ 94%] Building CXX object
src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o
In file included from
/home/tomcat/software/30-qgis/QuantumGIS_2.18/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QuantumGIS_2.18/src/server/qgsowsserver.h:84:40:
error: ‘QgsFeature’ does not name a type
     static QString featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes );
                                        ^~~~~~~~~~
/home/tomcat/software/30-qgis/QuantumGIS_2.18/src/server/qgsowsserver.cpp:68:9:
error: prototype for ‘QString QgsOWSServer::featureGmlId(const QgsFeature*,
const QgsAttributeList&)’ does not match any in class ‘QgsOWSServer’
 QString QgsOWSServer::featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes )
         ^~~~~~~~~~~~
In file included from
/home/tomcat/software/30-qgis/QuantumGIS_2.18/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QuantumGIS_2.18/src/server/qgsowsserver.h:84:20:
error: candidate is: static QString QgsOWSServer::featureGmlId(const int*,
const QgsAttributeList&)
     static QString featureGmlId( const QgsFeature* f, const
QgsAttributeList& pkAttributes );
                    ^~~~~~~~~~~~
src/server/CMakeFiles/qgis_server.dir/build.make:260: recipe for target
'src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o' failed
make[2]: *** [src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o]
Error 1
CMakeFiles/Makefile2:1829: recipe for target
'src/server/CMakeFiles/qgis_server.dir/all' failed
make[1]: *** [src/server/CMakeFiles/qgis_server.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

I don't understand what is the error.
Seem a compiler incompatibility ?

A.

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180427/14559369/attachment.html>


More information about the Qgis-user mailing list