Bug 106118

Summary: 0.64.0 build with qt5 fails
Product: poppler Reporter: ilovezfs
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description ilovezfs 2018-04-18 07:39:10 UTC
https://gist.github.com/ilovezfs/2b8f739409cf506277ce1cc6977adffc

[ 55%] Building CXX object qt5/src/CMakeFiles/poppler-qt5.dir/ArthurOutputDev.cc.o
cd /tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++  -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_XML_LIB -DUSE_OPENJPEG2 -Dpoppler_qt5_EXPORTS -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src/poppler-qt5_autogen/include -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0 -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/fofi -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/goo -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/poppler -I/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 -iframework /usr/local/opt/qt/lib -isystem /usr/local/opt/qt/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt/./mkspecs/macx-clang -isystem /usr/local/opt/qt/lib/QtGui.framework/Headers -isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers -isystem /usr/local/opt/qt/lib/QtXml.framework/Headers  -DNDEBUG -fPIC   -fPIC -std=c++11 -o CMakeFiles/poppler-qt5.dir/ArthurOutputDev.cc.o -c /tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src/ArthurOutputDev.cc
/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src/ArthurOutputDev.cc:830:35: error: implicit instantiation of undefined template 'std::__1::array<double, 257>'
  std::array<double, maxSplits+1> ta;
                                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:116:65: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array;
                                                                ^
/tmp/poppler-20180418-65546-1vzvgtp/poppler-0.64.0/qt5/src/ArthurOutputDev.cc:832:32: error: implicit instantiation of undefined template 'std::__1::array<int, 257>'
  std::array<int, maxSplits+1> next;
                               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:116:65: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array;
                                                                ^
2 errors generated.
make[2]: *** [qt5/src/CMakeFiles/poppler-qt5.dir/ArthurOutputDev.cc.o] Error 1
make[1]: *** [qt5/src/CMakeFiles/poppler-qt5.dir/all] Error 2
make: *** [all] Error 2
bash-3.2$
Comment 1 Albert Astals Cid 2018-04-18 20:32:08 UTC
You're on a mac, right?

Does adding
#include <array>
after
#include <QPicture>

help?
Comment 2 ilovezfs 2018-04-19 05:46:33 UTC
Yup!
Comment 3 Albert Astals Cid 2018-04-19 18:06:09 UTC
fixed in master

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.