jgeumlek / MoltenGamepad

Flexible Linux input device translator, geared for gamepads
MIT License
280 stars 42 forks source link

Compiling errors #122

Open moltenaccount opened 1 year ago

moltenaccount commented 1 year ago

I've been trying to compile this on Linux Mint and I get a whole bunch of errors (pasted below). I have no idea what any of this means, any ideas what's going on here and how I might be able to get it to work? Thanks

make -f Makefile 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& slot); | ^~~~~~ source/core/uinput.h:34:43: error: expected ‘,’ or ‘...’ before ‘<’ token 34 | int watch_for_ff(int fd, std::shared_ptr& slot); | ^ source/core/uinput.h:40:22: error: ‘weak_ptr’ is not a member of ‘std’ 40 | std::map<int, std::weak_ptr> 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> 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> 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> ff_slots; | ^~ make: *** [Makefile:60: source/core/slot_manager.o] Error 1

qwertychouskie commented 1 year ago

https://github.com/jgeumlek/MoltenGamepad/pull/99