[Qgis-user] Problems building QGIS: "error: variable ‘Q_XML_EXPORT QDomImplementation’ has initializer but incomplete type"

Hernán De Angelis dhdeangelis at gmail.com
Thu Feb 8 02:38:46 PST 2018


Hi

I recently updated my operative system (openSuSE Leap 42.3) and I am now
having problems building QGIS (2.18.16).

The error is the following:

[ 72%] Building CXX object src/plugins/georeferencer/
CMakeFiles/georefplugin.dir/qgsgcpcanvasitem.cpp.o
In file included from /usr/include/QtXml/QDomDocument:1:0,
                 from /usr/local/src/qgis-2.18.16/
src/plugins/georeferencer/../../core/qgsexpression.h:23,
                 from /usr/local/src/qgis-2.18.16/
src/plugins/georeferencer/../../core/qgsexpressioncontext.h:23,
                 from /usr/local/src/qgis-2.18.16/
src/plugins/georeferencer/../../gui/qgsmapcanvas.h:23,
                 from /usr/local/src/qgis-2.18.16/src/plugins/georeferencer/
qgsgcpcanvasitem.h:19,
                 from /usr/local/src/qgis-2.18.16/src/plugins/georeferencer/
qgsgcpcanvasitem.cpp:16:
/usr/include/QtXml/qdom.h:99:20: error: variable ‘Q_XML_EXPORT
QDomImplementation’ has initializer but incomplete type
 class Q_XML_EXPORT QDomImplementation

To my knowledge the Qt5 environment is properly installed, with all the
corresponding devel packages and including the Qt XML libraries. I saw this
thread (*) in which it is concluded that cleaning the build directory
solved the problem, but it wasn't the solution in my case.

(*)
http://osgeo-org.1560.x6.nabble.com/Error-in-compiling-current-master-td5310725.html

I understand this is most probably not related to QGIS but to the building
environment. In any case I wonder if someone here can have a hint on how to
overcome this.

Regards,

H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180208/0078661c/attachment.html>


More information about the Qgis-user mailing list