|
|
# for Ubuntu Linux on Intel x86 CPU
|
|
|
|
|
|
the installation methed on ubuntu linux is listed below:
|
|
|
|
|
|
### prepair dependency libs
|
|
|
|
|
|
```shell
|
|
|
sudo apt install \
|
|
|
libftdi1-2 \
|
|
|
libftdi1-dev \
|
|
|
libhidapi-hidraw0 \
|
|
|
libhidapi-dev \
|
|
|
libudev-dev \
|
|
|
zlib1g-dev \
|
|
|
cmake \
|
|
|
pkg-config \
|
|
|
make \
|
|
|
g++
|
|
|
```
|
|
|
|
|
|
### Then download source code and compile
|
|
|
|
|
|
```shell
|
|
|
git clone https://github.com/trabucayre/openFPGALoader
|
|
|
cd openFPGALoader
|
|
|
mkdir build
|
|
|
cd build
|
|
|
cmake .. # add -DBUILD_STATIC=ON to build a static version
|
|
|
# add -DENABLE_UDEV=OFF to disable udev support and -d /dev/xxx
|
|
|
# add -DENABLE_CMSISDAP=OFF to disable CMSIS DAP support
|
|
|
make -j16
|
|
|
|
|
|
```
|
|
|
|
|
|
# for MacOS on Intel x86 or Apple Silicon M1/M2
|
|
|
|
|
|
## First install "Homebrew" for MacOS
|
|
|
|
|
|
open Terminal and input following commands.
|
|
|
|
|
|
```shell
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
```
|
|
|
|
|
|
## Then using homebrew to install openfpgaloader, still in terminal:
|
|
|
|
|
|
```shell
|
|
|
brew install openfpgaloader
|
|
|
``` |
|
|
\ No newline at end of file |