jgeumlek/MoltenGamepad

Unable to compile

LiamDawe opened this issue · 0 comments

Hi, so trying the basic instructions from the GitHub, trying make doesn't seem to go through:

compiling source/core/slot_manager.cpp...
In file included from source/core/slot_manager.h:8,
from source/core/slot_manager.cpp:1:
source/core/uinput.h:34:33: error: ‘std::shared_ptr’ has not been declared
34 | int watch_for_ff(int fd, std::shared_ptr<virtual_device>& slot);
| ^~~~~~~~~~
source/core/uinput.h:34:43: error: expected ‘,’ or ‘...’ before ‘<’ token
34 | int watch_for_ff(int fd, std::shared_ptr<virtual_device>& slot);
| ^
source/core/uinput.h:40:22: error: ‘weak_ptr’ is not a member of ‘std’
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~
source/core/uinput.h:16:1: note: ‘std::weak_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
15 | #include
+++ |+#include
16 |
source/core/uinput.h:40:22: error: ‘weak_ptr’ is not a member of ‘std’
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~
source/core/uinput.h:40:22: note: ‘std::weak_ptr’ is defined in header ‘’; did you forget to ‘#include ’?
source/core/uinput.h:40:31: error: template argument 2 is invalid
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~~~~~~~~~~~~~
source/core/uinput.h:40:31: error: template argument 4 is invalid
source/core/uinput.h:40:45: error: expected unqualified-id before ‘>’ token
40 | std::map<int, std::weak_ptr<virtual_device>> ff_slots;
| ^~
make: *** [Makefile:60: source/core/slot_manager.o] Error 1

This is on an up to date Arch Linux.