Electronicks / JoyShockMapper

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

Not compiling on Arch Linux #91

Closed gustavolinux closed 1 year ago

gustavolinux commented 1 year ago
~/Downloads/JoyShockMapper-3.4.0/build
---[cmake .. -DCMAKE_CXX_COMPILER=clang++ && cmake --build .
-- JSM version is vHEAD-HASH-NOTFOUND.HEAD-HASH-NOTFOUND.HEAD-HASH-NOTFOUND
-- CPM: adding package SDL2@ (release-2.0.20)
-- dynamic libasound -> libasound.so.2
-- dynamic libjack -> libjack.so.0
-- dynamic libpipewire-0.3 -> libpipewire-0.3.so.0
-- dynamic libpulse-simple -> libpulse-simple.so.0
-- Checking for module 'esound'
--   Package 'esound', required by 'virtual:world', not found
-- dynamic libsndio -> libsndio.so.7
-- dynamic libsamplerate -> libsamplerate.so.0
-- Checking for modules 'bcm_host;brcmegl'
--   Package 'bcm_host', required by 'virtual:world', not found
--   Package 'brcmegl', required by 'virtual:world', not found
-- dynamic libX11 -> libX11.so.6
-- dynamic libXext -> libXext.so.6
-- dynamic libXcursor -> libXcursor.so.1
-- dynamic libXinerama -> libXinerama.so.1
-- dynamic libXi -> libXi.so.6
-- dynamic libXfixes -> libXfixes.so.3
-- dynamic libXrandr -> libXrandr.so.2
-- dynamic libXrender -> libXrender.so.1
-- dynamic libXss -> libXss.so.1
-- dynamic libXxf86vm -> libXxf86vm.so.1
-- dynamic libdrm -> libdrm.so.2
-- dynamic libgbm -> libgbm.so.1
-- dynamic libwayland-client -> libwayland-client.so.0
-- dynamic libwayland-egl -> libwayland-egl.so.1
-- dynamic libwayland-cursor -> libwayland-cursor.so.0
-- dynamic libxkbcommon -> libxkbcommon.so.0
-- dynamic libdecor-0 -> libdecor-0.so.0
-- dynamic libusb-1.0 -> libusb-1.0.so.0
-- 
-- SDL2 was configured with the following options:
-- 
-- Platform: Linux-6.3.1-zen1-1-zen
-- 64-bit:   TRUE
-- Compiler: /usr/bin/cc
-- Revision: 
-- 
-- Subsystems:
--   Atomic:    ON
--   Audio: ON
--   Video: ON
--   Render:    ON
--   Events:    ON
--   Joystick:  ON
--   Haptic:    ON
--   Hidapi:    ON
--   Power: ON
--   Threads:   ON
--   Timers:    ON
--   File:  ON
--   Loadso:    ON
--   CPUinfo:   ON
--   Filesystem:    ON
--   Dlopen:    ON
--   Sensor:    ON
--   Locale:    ON
-- 
-- Options:
--   SDL_3DNOW                   (Wanted: ON): ON
--   SDL_ALSA                    (Wanted: ON): ON
--   SDL_ALSA_SHARED             (Wanted: ON): ON
--   SDL_ALTIVEC                 (Wanted: ON): OFF
--   SDL_ARMNEON                 (Wanted: OFF): OFF
--   SDL_ARMSIMD                 (Wanted: OFF): OFF
--   SDL_ARTS                    (Wanted: ON): OFF
--   SDL_ARTS_SHARED             (Wanted: ON): OFF
--   SDL_ASAN                    (Wanted: OFF): OFF
--   SDL_ASSEMBLY                (Wanted: ON): ON
--   SDL_ASSERTIONS              (Wanted: auto): auto
--   SDL_BACKGROUNDING_SIGNAL    (Wanted: OFF): OFF
--   SDL_CLOCK_GETTIME           (Wanted: ON): ON
--   SDL_COCOA                   (Wanted: OFF): OFF
--   SDL_DIRECTFB                (Wanted: OFF): OFF
--   SDL_DIRECTFB_SHARED         (Wanted: OFF): OFF
--   SDL_DIRECTX                 (Wanted: OFF): OFF
--   SDL_DISKAUDIO               (Wanted: ON): ON
--   SDL_DUMMYAUDIO              (Wanted: ON): ON
--   SDL_DUMMYVIDEO              (Wanted: ON): ON
--   SDL_ESD                     (Wanted: ON): OFF
--   SDL_ESD_SHARED              (Wanted: ON): OFF
--   SDL_FOREGROUNDING_SIGNAL    (Wanted: OFF): OFF
--   SDL_FUSIONSOUND             (Wanted: OFF): OFF
--   SDL_FUSIONSOUND_SHARED      (Wanted: OFF): OFF
--   SDL_GCC_ATOMICS             (Wanted: ON): ON
--   SDL_HIDAPI_JOYSTICK         (Wanted: ON): ON
--   SDL_JACK                    (Wanted: ON): ON
--   SDL_JACK_SHARED             (Wanted: ON): ON
--   SDL_KMSDRM                  (Wanted: ON): ON
--   SDL_KMSDRM_SHARED           (Wanted: ON): ON
--   SDL_LIBC                    (Wanted: ON): ON
--   SDL_LIBSAMPLERATE           (Wanted: ON): ON
--   SDL_LIBSAMPLERATE_SHARED    (Wanted: ON): ON
--   SDL_METAL                   (Wanted: OFF): OFF
--   SDL_MMX                     (Wanted: ON): ON
--   SDL_NAS                     (Wanted: ON): OFF
--   SDL_NAS_SHARED              (Wanted: ON): OFF
--   SDL_OFFSCREEN               (Wanted: OFF): OFF
--   SDL_OPENGL                  (Wanted: ON): ON
--   SDL_OPENGLES                (Wanted: ON): ON
--   SDL_OSS                     (Wanted: ON): ON
--   SDL_PIPEWIRE                (Wanted: ON): ON
--   SDL_PIPEWIRE_SHARED         (Wanted: ON): ON
--   SDL_PTHREADS                (Wanted: ON): ON
--   SDL_PTHREADS_SEM            (Wanted: ON): ON
--   SDL_PULSEAUDIO              (Wanted: ON): ON
--   SDL_PULSEAUDIO_SHARED       (Wanted: ON): ON
--   SDL_RENDER_D3D              (Wanted: OFF): OFF
--   SDL_RENDER_METAL            (Wanted: OFF): OFF
--   SDL_RPATH                   (Wanted: ON): ON
--   SDL_RPI                     (Wanted: ON): OFF
--   SDL_SNDIO                   (Wanted: ON): ON
--   SDL_SNDIO_SHARED            (Wanted: ON): ON
--   SDL_SSE                     (Wanted: ON): ON
--   SDL_SSE2                    (Wanted: ON): ON
--   SDL_SSE3                    (Wanted: ON): ON
--   SDL_SSEMATH                 (Wanted: ON): ON
--   SDL_STATIC_PIC              (Wanted: OFF): OFF
--   SDL_TEST                    (Wanted: OFF): OFF
--   SDL_VIRTUAL_JOYSTICK        (Wanted: ON): ON
--   SDL_VIVANTE                 (Wanted: ON): OFF
--   SDL_VULKAN                  (Wanted: ON): ON
--   SDL_WASAPI                  (Wanted: OFF): OFF
--   SDL_WAYLAND                 (Wanted: ON): ON
--   SDL_WAYLAND_LIBDECOR        (Wanted: ON): ON
--   SDL_WAYLAND_LIBDECOR_SHARED (Wanted: ON): OFF
--   SDL_WAYLAND_QT_TOUCH        (Wanted: ON): ON
--   SDL_WAYLAND_SHARED          (Wanted: ON): ON
--   SDL_X11                     (Wanted: ON): ON
--   SDL_X11_SHARED              (Wanted: ON): ON
--   SDL_X11_XCURSOR             (Wanted: ON): ON
--   SDL_X11_XDBE                (Wanted: ON): ON
--   SDL_X11_XFIXES              (Wanted: ON): ON
--   SDL_X11_XINERAMA            (Wanted: ON): ON
--   SDL_X11_XINPUT              (Wanted: ON): ON
--   SDL_X11_XRANDR              (Wanted: ON): ON
--   SDL_X11_XSCRNSAVER          (Wanted: ON): ON
--   SDL_X11_XSHAPE              (Wanted: ON): ON
--   SDL_X11_XVM                 (Wanted: ON): ON
--   SDL_XINPUT                  (Wanted: OFF): OFF
-- 
--  CFLAGS:         -idirafter "/home/gustavo/Downloads/JoyShockMapper-3.4.0/build/_deps/sdl2-src/src/video/khronos" -I/usr/include/libusb-1.0 -DHAVE_LINUX_VERSION_H
--  EXTRA_CFLAGS:  -I/usr/include/libdrm -I/usr/include -D_REENTRANT -I/usr/include/spa-0.2 -I/usr/include/pipewire-0.3 -msse3 -msse2 -msse -m3dnow -mmmx -Wshadow -fvisibility=hidden -Wdeclaration-after-statement -Werror=declaration-after-statement -fno-strict-aliasing -Wall 
--  EXTRA_LDFLAGS: -Wl,--no-undefined;-pthread
--  EXTRA_LIBS:    m;dbus-1;ibus-1.0;gio-2.0;gobject-2.0;glib-2.0;unwind;unwind-generic;rt
-- 
--  Build Shared Library: ON
--  Build Static Library: ON
--  Build Static Library with Position Independent Code: OFF
-- 
-- If something was not detected, although the libraries
-- were installed, then make sure you have set the
-- CFLAGS and LDFLAGS environment variables correctly.
-- 
-- CPM: adding package magic_enum@0 (47e34ada93e0bf70dcea551636755cd66d893768)
-- CPM: adding package pocket_fsm@0 (e447ec24c7a547bd1fbe8d964baa866a9cf146c8)
-- CPM: adding package GamepadMotionHelpers@ (main)
-- Configuring done (1.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/gustavo/Downloads/JoyShockMapper-3.4.0/build
[ 48%] Built target SDL2
[ 48%] Building CXX object JoyShockMapper/CMakeFiles/JoyShockMapper.dir/src/main.cpp.o
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:660:12: warning: 65 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:832:12: warning: 110 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_THRESHOLD', 'MAX_GYRO_THRESHOLD'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:902:12: warning: 113 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:926:12: warning: 111 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2127:10: warning: enumeration values 'FORWARD', 'JOYCON_SIDEWAYS', and 'INVALID' not handled in switch [-Wswitch]
        switch (controllerOrientation)
                ^~~~~~~~~~~~~~~~~~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2465:3: warning: expression result unused [-Wunused-value]
                touch_last_cal;
                ^~~~~~~~~~~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:3032:10: warning: enumeration value 'INVALID' not handled in switch [-Wswitch]
        switch (gyro.ignore_mode)
                ^~~~~~~~~~~~~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:3321:12: warning: enumeration values 'JOYCON_SIDEWAYS' and 'INVALID' not handled in switch [-Wswitch]
                        switch (controllerOrientation)
                                ^~~~~~~~~~~~~~~~~~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:3532:11: error: use of undeclared identifier 'strchr'
        if ((p = strchr(string, '\n')) != NULL)
                 ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:492:7: note: in instantiation of function template specialization 'JoyShock::getSetting<Switch>' requested here
                if (getSetting<Switch>(SettingID::RUMBLE) == Switch::ON)
                    ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:1869:30: note: in instantiation of function template specialization 'JoyShock::getSetting<GyroOutput>' requested here
        GyroOutput gyroOutput = jc->getSetting<GyroOutput>(SettingID::GYRO_OUTPUT);
                                    ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:1983:32: note: in instantiation of function template specialization 'JoyShock::getSetting<FlickSnapMode>' requested here
                                auto flick_snap_mode = jc->getSetting<FlickSnapMode>(SettingID::FLICK_SNAP_MODE);
                                                           ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2442:26: note: in instantiation of function template specialization 'JoyShock::getSetting<RingMode>' requested here
        RingMode ringMode = js->getSetting<RingMode>(SettingID::TOUCH_RING_MODE);
                                ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2443:28: note: in instantiation of function template specialization 'JoyShock::getSetting<StickMode>' requested here
        StickMode stickMode = js->getSetting<StickMode>(SettingID::TOUCH_STICK_MODE);
                                  ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2444:52: note: in instantiation of function template specialization 'JoyShock::getSetting<ControllerOrientation>' requested here
        ControllerOrientation controllerOrientation = js->getSetting<ControllerOrientation>(SettingID::CONTROLLER_ORIENTATION);
                                                          ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2531:18: note: in instantiation of function template specialization 'JoyShock::getSetting<TouchpadMode>' requested here
        auto mode = js->getSetting<TouchpadMode>(SettingID::TOUCHPAD_MODE);
                        ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2836:28: note: in instantiation of function template specialization 'JoyShock::getSetting<GyroSpace>' requested here
        GyroSpace gyroSpace = jc->getSetting<GyroSpace>(SettingID::GYRO_SPACE);
                                  ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:2839:31: note: in instantiation of function template specialization 'JoyShock::getSetting<GyroAxisMask>' requested here
                int mouse_x_flag = (int)jc->getSetting<GyroAxisMask>(SettingID::MOUSE_X_FROM_GYRO_AXIS);
                                            ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:3290:42: note: in instantiation of function template specialization 'JoyShock::getSetting<JoyconMask>' requested here
          (jc->controller_split_type & (int)jc->getSetting<JoyconMask>(SettingID::JOYCON_MOTION_MASK)) == 0)
                                                ^
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:547:12: warning: 92 enumeration values not handled in switch: 'INVALID', 'MIN_GYRO_SENS', 'MAX_GYRO_SENS'... [-Wswitch]
                        switch (index)
                                ^~~~~
/home/gustavo/Downloads/JoyShockMapper-3.4.0/JoyShockMapper/src/main.cpp:3408:60: note: in instantiation of function template specialization 'JoyShock::getSetting<TriggerMode>' requested here
                jc->handleTriggerChange(ButtonID::ZL, ButtonID::ZLF, jc->getSetting<TriggerMode>(SettingID::ZL_MODE), lTrigger, jc->left_effect);
                                                                         ^
20 warnings and 1 error generated.
make[2]: *** [JoyShockMapper/CMakeFiles/JoyShockMapper.dir/build.make:76: JoyShockMapper/CMakeFiles/JoyShockMapper.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:174: JoyShockMapper/CMakeFiles/JoyShockMapper.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Electronicks commented 1 year ago

Linux is not officially supported but you can find help at the Community discord Gyro Gaming.