rgerganov / footswitch

Command-line utility for PCsensor and Scythe foot switches
MIT License
414 stars 60 forks source link

Files missing when installing from command line #20

Open jamminjames opened 8 years ago

jamminjames commented 8 years ago

When following the command line installation instructions for Linux, I get the following error when I get to the 'make' command:

cc footswitch.c common.c debug.c -o footswitch -Wall pkg-config hidapi-libusb --libs footswitch.c:23:19: fatal error: stdio.h: No such file or directory

include

               ^

compilation terminated. common.c:23:19: fatal error: ctype.h: No such file or directory

include

               ^

compilation terminated. debug.c:22:19: fatal error: stdio.h: No such file or directory

include

               ^

compilation terminated. make: *\ [footswitch] Error 1

There seem to be missing files, how can I get them? Would really like to get this foot pedal working. Thanks!

rgerganov commented 8 years ago

Looks like you don't have a C compiler installed. If you are using Ubuntu, you can try this:

$ sudo apt-get install build-essential

jamminjames commented 8 years ago

Well, I ran: $ sudo apt-get install pkg-config libusb-dev ...and then the 'make' command worked. I guess I needed that library. But now if I use the 'footswitch -r' command, for example, I'm getting:

cannot find footswitch with VID:PID=c45:7403 [init(), footswitch.c:94]

... the address for the footswitch should be 0c45:7403, though, how is it getting c45:7403, and how can I fix that?

rgerganov commented 8 years ago

You need to either use 'sudo footswitch ...' or install the udev rules with 'sudo make install'

jamminjames commented 8 years ago

okay, i entered 'sudo make install', but still had to use sudo in the footswitch command anyway. Would I need to uninstall & reinstall to avoid using sudo everytime?

Anyway, at least I can get it to work now. Thank you very much!

jamminjames commented 8 years ago

How do you find the switches needed to program certain keystrokes, for example, I'd like a pedal to enter: arrow down; double click.

jamminjames commented 8 years ago

Found the hex code for arrow down, but can't find anything for touchpad double-click. unfortunately, just using ENTER won't work in this application, nor will Ctrl-O, as that opens a dialogue box instead of opening the selected file.

jamminjames commented 8 years ago

The equivalent of right-click, open would work too.