Am 24.10.2022 um 13:14 schrieb Martin Gansser:
when compiling QMPlay2-22.10.23 [1] on f35 and f36 i get this error
message:
[...]
In file included from
/home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.cpp:19:
/home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.hpp:74:53: error:
'std::shared_ptr' has not been declared
74 | static std::unique_lock<std::mutex>
ensure(std::shared_ptr<QMPlay2OSD> &osd);
| ^~~~~~~~~~
[...]
/home/martin/rpmbuild/BUILD/QMPlay2-22.10.23/src/qmplay2/QMPlay2OSD.hpp:30:1: note:
'std::shared_ptr' is defined in header '<memory>'; did you forget to
'#include <memory>'?
29 | #include <mutex>
+++ |+#include <memory>
[...]
How can I solve this ?
Hi Martin,
as supposed by the error message, the include statement
#include <memory>
is missing in header file QMPlay2OSD.hpp. It has recently been added to
the upstream repository too:
https://github.com/zaps166/QMPlay2/commit/def70bfd9c36a1b2982a4c0bc629a63...
Regards,
Martin