Skip to content

Commit 47f7ad1

Browse files
authored
Compilation script
Add compilation script for windows and linux for linux : - install cmake - install make - run compile.sh for windows: install cmake and mingw put mingw in the system path download libusb binaries and put the file in mingw (bin, include, lib) you can get make.exe build from this repo https://github.com/skeeto/w64devkit run compile.bat
1 parent d6821a5 commit 47f7ad1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

compile.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
mkdir build
3+
cd build
4+
cmake -G "MinGW Makefiles" ../ -DINSTALL_UDEV_RULES=ON
5+
make -j 3
6+
pause

compile.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
mkdir build
3+
cd build
4+
cmake ../ -DINSTALL_UDEV_RULES=ON
5+
make -j 3
6+
sudo make install
7+
sudo ldconfig
8+
sudo udevadm control -R
9+
sudo udevadm trigger

0 commit comments

Comments
 (0)