Bug 97843 - poppler-0.47.0 fails to compile with poppler-qt5 enabled on centos-7.2.1511-x86_64. Qt version is Qt5.7.0
Summary: poppler-0.47.0 fails to compile with poppler-qt5 enabled on centos-7.2.1511-x...
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: qt frontend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-17 13:46 UTC by yashtr
Modified: 2017-01-16 16:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description yashtr 2016-09-17 13:46:29 UTC
poppler-0.47.0 fails to compile on centos-7.2.1511 x86_64 with poppler-qt5 enabled, qt5 version is Qt5.7.0 . Compile errors are,

/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qmatrix.h:66:32: error: expected ‘,’ or ‘...’ before ‘&&’ token
     QMatrix &operator=(QMatrix &&other) Q_DECL_NOTHROW // = default

                                ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qmatrix.h:69:21: error: expected ‘,’ or ‘...’ before ‘&&’ token
     QMatrix(QMatrix &&other) Q_DECL_NOTHROW // = default

                     ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qmatrix.h:69:28: error: invalid constructor; you probably meant ‘QMatrix (const QMatrix&)’
     QMatrix(QMatrix &&other) Q_DECL_NOTHROW // = default

                            ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qmatrix.h: In member function QMatrix& QMatrix::operator=(QMatrix)’:
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qmatrix.h:67:21: error: ‘other’ was not declared in this scope
     { memcpy(this, &other, sizeof(QMatrix)); return *this; }

                     ^
In file included from /usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qimage.h:47:0,
                 from /usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/QImage:1,
                 from poppler-page.cc:40:
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h: At global scope:
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h:79:38: error: expected ‘,’ or ‘...’ before ‘&&’ token
     QTransform &operator=(QTransform &&other) Q_DECL_NOTHROW // = default

                                      ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h:82:27: error: expected ‘,’ or ‘...’ before ‘&&’ token
     QTransform(QTransform &&other) Q_DECL_NOTHROW // = default

                           ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h:82:34: error: invalid constructor; you probably meant ‘QTransform (const QTransform&)’
     QTransform(QTransform &&other) Q_DECL_NOTHROW // = default

                                  ^
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h: In member function ‘QTransform& QTransform::operator=(QTransform)’:
/usr/local/Qt5.7.0/5.7/gcc_64/include/QtGui/qtransform.h:80:21: error: ‘other’ was not declared in this scope
     { memcpy(this, &other, sizeof(QTransform)); return *this; }
Comment 1 Albert Astals Cid 2016-09-27 21:51:01 UTC
hmmm, Qt 5.7 needs C++11 support, i guess we need to detect such qt and enable that if present.

Anyone has time to work on that?
Comment 2 Albert Astals Cid 2016-09-30 22:17:22 UTC
Actually this just works fine for me on Arch Linux, are you sure your gcc is actually supported by Qt 5.7?


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.