Created
November 23, 2020 22:02
-
-
Save tresf/565ebc689c735129be9eefd26346b9cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
pushd ~/Desktop | |
rm -rf llvm-mingw | |
rm -rf hidapi | |
mkdir -p llvm-mingw | |
wget -qO- https://github.com/mstorsjo/llvm-mingw/releases/download/20201020/llvm-mingw-20201020-msvcrt-ubuntu-18.04.tar.xz | tar xJvf - --strip 1 -C ./llvm-mingw | |
export PATH="$(pwd)/llvm-mingw/bin:$PATH" | |
git clone https://github.com/libusb/hidapi "$(pwd)/hidapi" | |
pushd "$(pwd)/hidapi" | |
./bootstrap | |
./configure --host=aarch64-w64-mingw32 | |
make | |
popd | |
popd |
Author
tresf
commented
Nov 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment