Electronicks / JoyShockMapper

A tool for PC gamers to play games with DualShock 4s, JoyCons, and Pro Controllers. Gyro aiming, flick stick.
Other
343 stars 20 forks source link

Cannot compile master on Fedora 35 #52

Closed dhalucario closed 11 months ago

dhalucario commented 2 years ago

My Setup: OS: Fedora 35 Clang: clang version 13.0.0 (Fedora 13.0.0-3.fc35) Make: GNU Make 4.3 cmake: cmake version 3.22.1

I get the following errors (trimmed the path for readability):

JoyShockMapper/src/main.cpp:4038:32: error: no viable conversion from '<overloaded function type>' to 'JSMVariable<AdaptiveTriggerSetting>::FilterDelegate' (aka 'function<AdaptiveTriggerSetting (AdaptiveTriggerSetting, AdaptiveTriggerSetting)>')
        left_trigger_effect.SetFilter(&filterInvalidValue);

JoyShockMapper/src/main.cpp:4039:33: error: no viable conversion from '<overloaded function type>' to 'JSMVariable<AdaptiveTriggerSetting>::FilterDelegate' (aka 'function<AdaptiveTriggerSetting (AdaptiveTriggerSetting, AdaptiveTriggerSetting)>')
        right_trigger_effect.SetFilter(&filterInvalidValue);

You can reproduce it in a docker container: Start the docker container docker run -it --rm fedora bash Then run:

sudo dnf install -y \
    git cmake clang libdecor-devel SDL2-devel libappindicator-gtk3-devel \
    libevdev-devel gtk3-devel libusb-devel hidapi-devel
git clone https://github.com/Electronicks/JoyShockMapper.git
cd JoyShockMapper
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++
cmake --build .
TauAkiou commented 2 years ago

looks like something broke. i'll take a look at it.

TauAkiou commented 2 years ago

see PR #55