Git Product home page Git Product logo

Comments (8)

silkentrance avatar silkentrance commented on June 14, 2024 1

@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.

dylanjewel avatar dylanjewel commented on June 14, 2024

~/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.

dylanjewel avatar dylanjewel commented on June 14, 2024

~/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.

dylanjewel avatar dylanjewel commented on June 14, 2024

ratslap command still doesn't work

from ratslap.

dylanjewel avatar dylanjewel commented on June 14, 2024

no help? i'm noob i know but i need this thing

from ratslap.

opensiriusfox avatar opensiriusfox commented on June 14, 2024

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.

tillcash avatar tillcash commented on June 14, 2024

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.

opensiriusfox avatar opensiriusfox commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.