Error while installing openboard

The following error shows up (using both yay and pamac)

...
g++ -c -pipe -std=c++11 -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -std=gnu++1y -w -D_REENTRANT -fPIC -DNO_THIRD_PARTY_WARNINGS -DUBVERSION="\"1.6.1."\" -DUBVERSION_RC=1,6,1,240,0309 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -Isrc -Isrc/web/browser -Isrc/qtsingleapplication/src -Isrc/pdf-merger -Iplugins/cffadaptor/src -I/usr/include/QuaZip-Qt5-1.2/quazip -I/usr/include/poppler -I/usr/include/qt -I/usr/include/qt/QtWebKitWidgets -I/usr/include/qt/QtWebKit -I/usr/include/qt/QtSvg -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtMultimediaWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtGui -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtXml -I/usr/include/qt/QtCore -Ibuild/linux/release/moc -Ibuild/linux/release/ui -I/usr/lib/qt/mkspecs/linux-g++ -o build/linux/release/objects/GraphicsPDFItem.o src/pdf/GraphicsPDFItem.cpp
g++ -c -pipe -std=c++11 -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -std=gnu++1y -w -D_REENTRANT -fPIC -DNO_THIRD_PARTY_WARNINGS -DUBVERSION="\"1.6.1."\" -DUBVERSION_RC=1,6,1,240,0309 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_UITOOLS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -Isrc -Isrc/web/browser -Isrc/qtsingleapplication/src -Isrc/pdf-merger -Iplugins/cffadaptor/src -I/usr/include/QuaZip-Qt5-1.2/quazip -I/usr/include/poppler -I/usr/include/qt -I/usr/include/qt/QtWebKitWidgets -I/usr/include/qt/QtWebKit -I/usr/include/qt/QtSvg -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtMultimediaWidgets -I/usr/include/qt/QtPrintSupport -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtGui -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtXml -I/usr/include/qt/QtCore -Ibuild/linux/release/moc -Ibuild/linux/release/ui -I/usr/lib/qt/mkspecs/linux-g++ -o build/linux/release/objects/PDFRenderer.o src/pdf/PDFRenderer.cpp
In file included from /usr/include/poppler/PDFDoc.h:61,
                 from src/pdf/XPDFRenderer.h:51,
                 from src/pdf/PDFRenderer.cpp:35:
/usr/include/poppler/Form.h:320:10: error: ‘optional’ in namespace ‘std’ does not name a template type
  320 |     std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
      |          ^~~~~~~~
/usr/include/poppler/Form.h:320:5: note: ‘std::optional’ is only available from C++17 onwards
  320 |     std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
      |     ^~~
/usr/include/poppler/Form.h:611:10: error: ‘optional’ in namespace ‘std’ does not name a template type
  611 |     std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
      |          ^~~~~~~~
/usr/include/poppler/Form.h:611:5: note: ‘std::optional’ is only available from C++17 onwards
  611 |     std::optional<GooString> getCheckedSignature(Goffset *checkedFileSize);
      |     ^~~
make[1]: *** [Makefile.Release:6092: build/linux/release/objects/PDFRenderer.o] Error 1
make[1]: Leaving directory '/home/shirshendu/.cache/yay/openboard/src/OpenBoard-1.6.1'
make: *** [Makefile:42: release] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: openboard

It is fixed. Wait till the package is updated in the AUR:

2 Likes

Thanks a lot.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.