AstroSnail / apexctl

(Apache-2.0) Control SteelSeries Apex keyboards on GNU/Linux!
Apache License 2.0
28 stars 3 forks source link

I use it on Fedora without problem #2

Closed loa-in- closed 4 years ago

loa-in- commented 4 years ago

Hello, should I do a PR to README file just to say it works? Never had problems

AstroSnail commented 4 years ago

Hi, thanks for your input.

I think it should suffice just to add the command for installing the dependencies.
Am I correct in guessing it's yum install hidapi-devel pkgconf?
Does hidapi-devel also fetch hidapi? Does hidapi fetch libusb automatically?

AstroSnail commented 4 years ago

I've preemptively made a commit already. If I have made any errors, please don't hesitate to tell me.

ghost commented 4 years ago

Building fails on Fedora after installing all dependencies, after running make:

c99 -Werror=all -Wextra -Wpedantic -Os -DENABLE_CMD_PROBE=1 -DENABLE_DATA_PRINT=0 -DHIDAPI_LONG_INCLUDE=0 $(pkgconf --cflags hidapi-libusb) -s src/apexctl.c $(pkgconf --libs hidapi-libusb) -o apexctl
Package hidapi-libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `hidapi-libusb.pc'
to the PKG_CONFIG_PATH environment variable
Package 'hidapi-libusb', required by 'virtual:world', not found
Package hidapi-libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `hidapi-libusb.pc'
to the PKG_CONFIG_PATH environment variable
Package 'hidapi-libusb', required by 'virtual:world', not found
src/apexctl.c:28:10: fatal error: hidapi.h: No such file or directory
   28 | #include <hidapi.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:15: apexctl] Error 1

EDIT: Sorry, I didn't install hidapi-devel as it wasn't mentioned in the readme.