Updated documentation for Windows installation
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Blocked by required conditions Details
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Has been cancelled Details

This commit is contained in:
Anne de Jong 2024-04-05 15:49:20 +02:00
parent 1f7deca3fd
commit 0bf621e45c
2 changed files with 36 additions and 30 deletions

View File

@ -1,4 +1,5 @@
# Library for Acoustic Signal Processing Library for Acoustic Signal Processing
======================================
Welcome to LASP: Library for Acoustic Signal Processing. LASP is a C++ library Welcome to LASP: Library for Acoustic Signal Processing. LASP is a C++ library
@ -45,17 +46,14 @@ If you have any question(s), please feel free to contact us: [email](info@ascee.
# Installation - Linux (Ubuntu-based) # Installation - Linux (Ubuntu-based)
## From wheel (recommended for non-developers) ## Prerequisites
### Prerequisites
Run the following on the command line to install all prerequisites on Run the following on the command line to install all prerequisites on
Debian-based Linux: Debian-based Linux:
- `sudo apt install python3-pip libfftw3-3 libopenblas-base libusb-1.0-0 - `sudo apt install python3-pip libfftw3-3 libopenblas-base libusb-1.0-0 libpulse0`
libpulse0`
### Download and install LASP ## Installation from wheel (recommended for non-developers)
Go to: [LASP releases](https://code.ascee.nl/ASCEE/lasp/releases/latest/) and Go to: [LASP releases](https://code.ascee.nl/ASCEE/lasp/releases/latest/) and
download the latest `.whl`. Then run: download the latest `.whl`. Then run:
@ -84,35 +82,43 @@ If building RtAudio with the Jack Audio Connection Kit (JACK) backend, you will
- `$ cd lasp` - `$ cd lasp`
- `pip install -e .` - `pip install -e .`
# Installation - (x86_64) Windows (with WinPython), build with MSYS2 (NOT YET UPDATED!!) # Installation - (x86_64) Windows (with WinPython), build with MSYS2
## Prerequisites ## Prerequisites
- Download and install [WinPython](https://winpython.github.io) - Download and install [WinPython](https://winpython.github.io)
## From wheel
- Download latest wheel from [LASP releases](https://code.ascee.nl/ASCEE/lasp/releases/latest/) and
download the latest `.whl`. Then install with `pip`.
## From source
- Download and install [MSYS2](https://msys2.org). Make sure to install the - Download and install [MSYS2](https://msys2.org). Make sure to install the
x86_64 version. x86_64 version.
- Download and install [Git for Windows](https://git-scm.com)
- When unzipping WinPython, make sure to choose a proper and simple path, i.e. - When unzipping WinPython, make sure to choose a proper and simple path, i.e.
C:\winpython C:\winpython
- Append C:\winpython\ to the PATH environment variable. - Download and install [Git for Windows](https://git-scm.com)
- Run Python and install Pybind11 - Open an MSYS2 **MINGW64** terminal, and install some tools we require:
- `python -m pip install pybind11` - `$ pacman -S git`
- Create a new virtualenv:
- `$ /c/winpython/<py-distr-dir>/python.exe -m venv venv`
- Open a msys2 **MINGW64** terminal. And run: - Add the venv-python to the path (eases a lot of commands)
- `$ export PATH=$PATH:~/venv/Scripts`
- `pacman -S git` - Install `build`:
- `$ pip install build`
- Then clone the LASP repo: - Clone LASP:
- `$ git clone --recurse-submodules https://code.ascee.nl/ascee/lasp && cd lasp`
- `git clone https://code.ascee.nl/ascee/lasp` - If run for the first time, we have to install the libraries we depend on in
- `cd lasp` MSYS2 (this only has to be done on a fresh MSYS2 installation):
- `$ scripts/install_msys2_builddeps.sh`
- Configure MSYS2 further, and run cmake: - Copy over required DLL's to be included in distribution:
- `scripts/copy_windows_dlls.sh`
- `scripts/install_msys2_buiddeps.sh` - And... build!
- `scripts/configur_cmake_msys2.sh` - `pyproject-build`
- Lastly: the generated wheel can be installed in the current virtualenv:
- `pip install dist/lasp*.whl`
# Documentation # Documentation
@ -121,7 +127,7 @@ If building RtAudio with the Jack Audio Connection Kit (JACK) backend, you will
[Online LASP documentation](https://lasp.ascee.nl/). [Online LASP documentation](https://lasp.ascee.nl/).
## In directory ## In directory (Linux/Debian)
`$ sudo apt install doxygen graphviz` `$ sudo apt install doxygen graphviz`
`$ pip install doxypypy` `$ pip install doxypypy`

@ -1 +1 @@
Subproject commit daaf637f6f9fce670031221abfd7dfde92e5cce3 Subproject commit 88ab584e7bf4358599744cd662cfbc978f41efbf