Comments (8)
@dylanjewel I ran these apt-get commands and then make and everything worked except for the interface number, which defaults to 1 but had to be 0 on my system and which resulted in the fact that the kernel driver could not be detached.
sudo apt-get install build-essential pkg-config linux-headers-amd64 libusb-1.0-0-dev
from ratslap.
~/ratslap $ make
Generating tags file...
RatSlap
Pulling from origin...
Already up-to-date.
Generating Changelog...
Generating git header file...
Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found
gcc -march=native -O2 -pipe -Wall -Werror -ggdb -DDEBUG -DINFO -c main.c -o main.o
main.c:30:31: fatal error: libusb-1.0/libusb.h: No such file or directory
compilation terminated.
Makefile:195: recipe for target 'main.o' failed
make: *** [main.o] Error 1
from ratslap.
~/ratslap $ make
Generating tags file...
RatSlap
Pulling from origin...
Already up-to-date.
Generating Changelog...
Generating git header file...
Linking ratslap...
gcc -o "ratslap" -march=native -O2 -pipe -Wall -Werror -ggdb -I/usr/include/libusb-1.0 -DDEBUG -DINFO log.o main.o -lusb-1.0
BUILD COMPLETE: RatSlap (ratslap) v0.2.1-1-gd6b9714
from ratslap.
ratslap command still doesn't work
from ratslap.
no help? i'm noob i know but i need this thing
from ratslap.
To execute a command post build you need to either (1) add the directory path to your environment PATH variable or (2) execute the command directly from an out-of-path location by running ./ratslap from within the project directory, or using the absolute path of the binary.
Your problems are fundamentally basic Linux/Unix problems. Please attempt to be more considerate of developers who often don't have time to hand hold new users through introductory concepts in Linux. Beginner's frustration is understandable, but your problems are thus far not related to ratslap. Information on the PATH variable is widespread, but a basic overview is available here.
The step-by-step to use solution (2) as described above is the following:
$ git clone https://github.com/krayon/ratslap
$ cd ratslap
$ make
$ ./ratslap <flags as you want>
from ratslap.
To execute a command post build you need to either (1) add the directory path to your environment PATH variable or (2) execute the command directly from an out-of-path location by running ./ratslap from within the project directory, or using the absolute path of the binary.
Your problems are fundamentally basic Linux/Unix problems. Please attempt to be more considerate of developers who often don't have time to hand hold new users through introductory concepts in Linux. Beginner's frustration is understandable, but your problems are thus far not related to ratslap. Information on the PATH variable is widespread, but a basic overview is available here.
The step-by-step to use solution (2) as described above is the following:
$ git clone https://github.com/krayon/ratslap $ cd ratslap $ make $ ./ratslap <flags as you want>
Getting below result while executing the command directly from the directory. Any suggestion to fix the this?
$ ./ratslap -h
./ratslap: symbol lookup error: ./ratslap: undefined symbol: libusb_set_option
from ratslap.
Sounds like a missing library, which is really strange if you managed to build it. I really can't say much more without context.
from ratslap.
Related Issues (20)
- Make permissions permanent HOT 2
- All buttons with "tab" doesn't work anymore HOT 5
- Media Commands HOT 4
- Help needs priority HOT 8
- Error with 'LeftCtrl+Num+' key HOT 2
- Open Calculator with mouse HOT 1
- How to assign multiple keypresses HOT 3
- RatSlapWrap - wrapper for triggering combos
- interface number wrong HOT 5
- LGTM scan HOT 2
- dpishift: Unrecognised options: 500 HOT 1
- Any way of directly entering RGB values for the led? HOT 1
- Error [compiling] HOT 2
- libusb couldn't open USB device /dev/bus/usb/001/004: Permission denied
- Duplicate modifier when assigning to a button HOT 1
- Key+Button possible? HOT 2
- G300s - no right or left mouse clicks (not related to ratslap code) HOT 3
- How does this project relate to libratbag? HOT 1
- Button5 cannot be assigned to G5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratslap.