Skip to content

Commit 72564c9

Browse files
authored
add some help
Add somme helps of how to setup a working compilation environement
1 parent 0aa82b3 commit 72564c9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

compile.bat

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
@echo off
2+
set /p help=Do you want somme help for setup the compilation environement ? (1 = yes / 0 = no) :
3+
if %help% EQU 0 goto :compile
4+
echo if you have some error folow those steps for instaling all requiered tool for compiling:
5+
echo ----------------------------------------------------------------------------------------
6+
echo install cmake by downloading from here : "https://cmake.org/download/" (select "add variable to path" during instalation)
7+
echo for instaling mingw you can download mingw for windows here : https://winlibs.com/#download-release and add the binaries to the system path
8+
echo for instaling libusb download from here https://libusb.info/ latest windows binaries then copy the file folowing this rules :
9+
echo copy the content of the "libusb-Mingw-x64/libs" inside the folder "mingw64/libs"
10+
echo copy the file "libusb.h" from "libusb-Mingw-x64/include/libusb-1.0" inside the folder "mingw64/include"
11+
echo copy the file "msys-usb-1.0.dll" from "libusb-Mingw-x64/bin" inside the folder "mingw64/bin" then rename it "libusb-1.0.dll"
12+
echo download the lastest release from this repo https://github.com/skeeto/w64devkit and copy the file make.exe at the root of the project
13+
echo you should now be ready to compile
14+
pause
15+
16+
:compile
17+
218
mkdir build
319
cd build
420
cmake -G "MinGW Makefiles" ../ -DINSTALL_UDEV_RULES=ON

0 commit comments

Comments
 (0)