You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile fails with Qt enabled with this error. After searching, it appears std::exchange was introduced in c++14 although RetroArch seems to use c++11 by default.
/usr/include/qt/QtCore/qsharedpointer_impl.h: In function ‘std::shared_ptr<_Tp> qobject_pointer_cast(std::shared_ptr<_Tp>&&)’:
/usr/include/qt/QtCore/qsharedpointer_impl.h:1019:40: error: ‘exchange’ is not a member of ‘std’
1019 | return std::shared_ptr<X>(std::exchange(src, nullptr), castResult);
| ^~~~~~~~
CXX ui/drivers/qt/qt_options.cpp
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtCore/qdebug.h:54,
from /usr/include/qt/QtCore/qcborcommon.h:45,
from /usr/include/qt/QtCore/qcborvalue.h:45,
from /usr/include/qt/QtCore/qcborarray.h:43,
from /usr/include/qt/QtCore/QtCore:38,
from /usr/include/qt/QtWidgets/QtWidgetsDepends:3,
from /usr/include/qt/QtWidgets/QtWidgets:3,
from ui/drivers/ui_qt.cpp:19:
/usr/include/qt/QtCore/qsharedpointer_impl.h: In function ‘std::shared_ptr<_Tp> qobject_pointer_cast(std::shared_ptr<_Tp>&&)’:
/usr/include/qt/QtCore/qsharedpointer_impl.h:1019:40: error: ‘exchange’ is not a member of ‘std’
1019 | return std::shared_ptr<X>(std::exchange(src, nullptr), castResult);
| ^~~~~~~~
In file included from /usr/include/qt/QtCore/qsharedpointer.h:48,
from /usr/include/qt/QtGui/qpixmap.h:48,
from /usr/include/qt/QtGui/qbrush.h:52,
from /usr/include/qt/QtGui/qpalette.h:46,
from /usr/include/qt/QtWidgets/qwidget.h:48,
from /usr/include/qt/QtWidgets/qdialog.h:44,
from /usr/include/qt/QtWidgets/qprogressdialog.h:45,
from /usr/include/qt/QtWidgets/QProgressDialog:1,
from ui/drivers/qt/qt_downloads.cpp:3:
Expected behavior
Qt bits compile
Actual behavior
Qt bits don't compile and abort entire build
Steps to reproduce the bug
Compile RetroArch on defaults
Observe error
Version/Commit
You can find this information under Information/System Information
Description
Compile fails with Qt enabled with this error. After searching, it appears std::exchange was introduced in c++14 although RetroArch seems to use c++11 by default.
Expected behavior
Qt bits compile
Actual behavior
Qt bits don't compile and abort entire build
Steps to reproduce the bug
Version/Commit
You can find this information under Information/System Information
Environment information
qt5-base 5.15.2+kde+r209-1
The text was updated successfully, but these errors were encountered: