mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Updated readme for better linux instructions
This commit is contained in:
@@ -122,15 +122,37 @@ Building will require MSVC 2017 version 15.7 or newer and CMake to be installed.
|
|||||||
### macOS
|
### macOS
|
||||||
Getting the dependencies is easiest with the Homebrew package manager. You will also need XCode installed. You can then install CMake, an up-to-date version of GCC or Clang, and `libusb-1.0`.
|
Getting the dependencies is easiest with the Homebrew package manager. You will also need XCode installed. You can then install CMake, an up-to-date version of GCC or Clang, and `libusb-1.0`.
|
||||||
### Linux
|
### Linux
|
||||||
The dependencies are as follows
|
#### General Dependencies
|
||||||
- CMake 3.12 or above
|
- CMake 3.12 or above
|
||||||
- GCC 7 or above
|
- GCC 7 or above
|
||||||
- `libusb-1.0-0-dev`
|
- `libusb-1.0-0-dev`
|
||||||
- `libpcap0.8-dev`
|
- `libpcap0.8-dev`
|
||||||
- `build-essential` is recommended
|
- `build-essential` is recommended
|
||||||
|
|
||||||
If you'd like to be able to run programs that use this library without being root, consider using the included udev rules
|
#### Fedora
|
||||||
|
```
|
||||||
|
sudo dnf install git @development-tools gcc-c++ libpcap-devel libusb1-devel cmake
|
||||||
|
```
|
||||||
|
#### Debian
|
||||||
|
```
|
||||||
|
su -c "apt install git build-essential libpcap0.8-dev libusb-1.0-0-dev cmake"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Building
|
||||||
|
```
|
||||||
|
git clone https://github.com/intrepidcs/libicsneo
|
||||||
|
cd libicsneo
|
||||||
|
cmake -S . -B build
|
||||||
|
cd build
|
||||||
|
make -j$((`nproc`+1))
|
||||||
|
# Optional: Install globally:
|
||||||
|
su -c "cp *.so /usr/local/lib/"
|
||||||
|
```
|
||||||
|
|
||||||
|
#### udev
|
||||||
|
If you'd like to be able to run programs that use this library without being root, consider using the included udev rules:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ sudo cp 99-intrepidcs.rules /etc/udev/rules.d/
|
su -c "cp 99-intrepidcs.rules /etc/udev/rules.d/"
|
||||||
|
su -c "udevadm control --reload-rules && udevadm trigger"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user