JoyShockMapper icon indicating copy to clipboard operation
JoyShockMapper copied to clipboard

Error when building on linux

Open linusrg1 opened this issue 3 years ago • 4 comments

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 [email protected] (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

linusrg1 avatar Jun 26 '21 11:06 linusrg1

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

TauAkiou avatar Jun 30 '21 19:06 TauAkiou

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.

linusrg1 avatar Jul 01 '21 19:07 linusrg1

@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.

JibbSmart avatar Jul 02 '21 02:07 JibbSmart

@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.

TauAkiou avatar Jul 02 '21 05:07 TauAkiou