JibbSmart / JoyShockMapper

A tool for PC gamers to play games with DualShock 4, DualSense, JoyCon, and Switch Pro Controllers. Gyro aiming, flick stick.
Other
801 stars 68 forks source link

Error when building on linux #159

Open linusrg1 opened 3 years ago

linusrg1 commented 3 years ago

cmake .. -DCMAKE_CXX_COMPILER=clang++ && cmake --build . -- Checking for one of the modules 'appindicator3-0.1' CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:707 (message): None of the required 'appindicator3-0.1' found Call Stack (most recent call first): cmake/LinuxConfig.cmake:7 (pkg_search_module) CMakeLists.txt:8 (include)

-- JSM version is vGIT-NOTFOUND.GIT-NOTFOUND.GIT-NOTFOUND -- CPM: adding package JoyShockLibrary@2.1.0 (v2.1.0) CMake Error at /usr/share/cmake-3.16/Modules/ExternalProject.cmake:2421 (message): error: could not find git for clone of joyshocklibrary-populate Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/ExternalProject.cmake:3236 (_ep_add_download_command) CMakeLists.txt:13 (ExternalProject_Add)

-- Configuring incomplete, errors occurred! See also "/home/linus/Downloads/JoyShockMapper-master/build/_deps/joyshocklibrary-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at /usr/share/cmake-3.16/Modules/FetchContent.cmake:903 (message): CMake step for joyshocklibrary failed: 1 Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate) cmake/CPM.cmake:454 (FetchContent_Populate) cmake/CPM.cmake:483 (FetchContent_MakeAvailable) cmake/CPM.cmake:345 (cpm_fetch_package) JoyShockMapper/CMakeLists.txt:159 (CPMAddPackage)

-- Configuring incomplete, errors occurred! See also "/home/linus/Downloads/JoyShockMapper-master/build/CMakeFiles/CMakeOutput.log". See also "/home/linus/Downloads/JoyShockMapper-master/build/CMakeFiles/CMakeError.log".

I installed libappindicator. I am on Ubuntu 21.04

TauAkiou commented 3 years ago

Use https://github.com/Electronicks/JoyShockMapper/. This repository hasn't been updated for months.

linusrg1 commented 3 years ago

Use https://github.com/Electronicks/JoyShockMapper/. This repository hasn't been updated for months. I just posted the error here bc the last version I tried was was this one. This happens with the latest version too. This happens every time with joyshock mapper. Idk why the devs even say it supports linux. They never test it on linux so they just assume it will work on linux, which is why most of the time it never does. Imo they should just remove linux as a supported platform if they're not serious about supporting it.

JibbSmart commented 3 years ago

@linusrg1 This page only started saying that JSM works on Linux when a Linux user got involved and got it working on Linux. It has since stopped working since the main devs don't use Linux and that contributor stopped being involved, but @TauAkiou has gotten involved on the up-to-date project and so it should work on Linux again.

Not this project, to be clear. The one @TauAkiou linked, which is where to go for all future updates.

TauAkiou commented 3 years ago

@linusrg1 The Linux version currently has one maintainer (me) and I'm not always around to provide changes.

I had to submit a small fix that is still awaiting merging at: https://github.com/Electronicks/JoyShockMapper/pull/19.

Additionally, JoyShockLibrary building is currently broken under Linux, and I recommend against using JSL anyway. Use the command:

cmake .. -DCMAKE_CXX_COMPILER=clang++ -DSDL=1 && cmake --build .

to build in SDL mode. Note that you will need development headers for libusb and hidapi.

I have pushed some additional information to README.md in the file for Linux on Electronick's branch as well.