#862808 libqglviewer-headers: wrong include in /usr/include/QGLViewer/vec.h, line 29

#862808#5
Date:
2017-05-17 11:07:45 UTC
From:
To:
Dear Maintainer,

trying to use #include<QGLViewer/qglviewer.h>
leads to compilation error:
        /usr/include/QGLViewer/vec.h:29:24: fatal error: QDomElement: No such
file or directory
        # include <QDomElement>

solved effectively by changind line 29 of /usr/include/QGLViewer/vec.h to:
        # include <QtXml/QDomElement>

Architecture: amd64

#862808#8
Date:
2026-03-03 17:21:45 UTC
From:
To:
You should only expect things to work when you are setting them up as
intended. The CFLAGS for your project should include the necessary -I
flag to point the preprocessor to the right place.

Maybe the libQGLViewer-qt5.prl needs to be changed to achieve this.
But for now you can work around by checking QtXml via pkgconf.
Does that work for you?