Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building on linux #159

Open
linusrg1 opened this issue Jun 26, 2021 · 4 comments
Open

Error when building on linux #159

linusrg1 opened this issue Jun 26, 2021 · 4 comments

Comments

@linusrg1
Copy link

linusrg1 commented Jun 26, 2021

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

@TauAkiou
Copy link
Contributor

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

@linusrg1
Copy link
Author

linusrg1 commented Jul 1, 2021

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
Copy link
Owner

@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
Copy link
Contributor

TauAkiou commented Jul 2, 2021

@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: Electronicks#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants