Update install.rst

Build instructions from source for debian-based distros fixed

- apt install line was broken, missing a `\`, 
- a git clone line was added to clarify when and where source should be
- Build directory also created beside tree rather than inside, and the cmake line fixed to match
- tested on Debian GNU/Linux 11 (bullseye) / WSL2
This commit is contained in:
RGD2 2021-12-05 13:36:21 +11:00 committed by GitHub
parent f404199e25
commit 15811188a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@ This application uses ``libftdi1``, so this library must be installed (and, depe
.. code-block:: bash
apt-get install
sudo apt install \
libftdi1-2 \
libftdi1-dev \
libhidapi-hidraw0 \
@ -82,11 +82,12 @@ To build the app:
.. code-block:: bash
git clone https://github.com/trabucayre/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
cmake ../openFPGALoader # 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
cmake --build .
# or
make -j$(nproc)