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

Andrea Peri aperi2007 at gmail.com
Fri Apr 27 15:03:50 PDT 2018


Hi,

The compile error is always here.
I tried also with the released package final-2_18_19.

This is the error I'm having.

---
[ 94%] Building CXX object
src/server/CMakeFiles/qgis_server.dir/qgssoaprequesthandler.cpp.o
[ 94%] Building CXX object
src/server/CMakeFiles/qgis_server.dir/qgsowsserver.cpp.o
In file included from
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/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/QGIS-final-2_18_19/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/QGIS-final-2_18_19/src/server/qgsowsserver.cpp:18:0:
/home/tomcat/software/30-qgis/QGIS-final-2_18_19/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'm using Debian stretch 64 bit.

A.



2018-04-27 14:12 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:

> Hi,
> Sorry, I do an error.
> Unavvertitelly I use the trunk instead of last release 2.18.17
>
> Sorry for noise.
> A.
>
>
> 2018-04-27 13:41 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
>
>> 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_ser
>> ver.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 àèìòù
>> -----------------
>>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>



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


More information about the Qgis-user mailing list