footswitch icon indicating copy to clipboard operation
footswitch copied to clipboard

Files missing when installing from command line

Open jamminjames opened this issue 8 years ago • 7 comments

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 <stdio.h> ^ compilation terminated. common.c:23:19: fatal error: ctype.h: No such file or directory #include <ctype.h> ^ compilation terminated. debug.c:22:19: fatal error: stdio.h: No such file or directory #include <stdio.h> ^ 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!

jamminjames avatar Jul 01 '16 08:07 jamminjames

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

rgerganov avatar Jul 01 '16 08:07 rgerganov

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?

jamminjames avatar Jul 01 '16 09:07 jamminjames

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

rgerganov avatar Jul 01 '16 09:07 rgerganov

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 avatar Jul 01 '16 09:07 jamminjames

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 avatar Jul 01 '16 09:07 jamminjames

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 avatar Jul 01 '16 09:07 jamminjames

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

jamminjames avatar Jul 01 '16 10:07 jamminjames