Skip to content

Installation

rossGardiner edited this page Mar 31, 2022 · 1 revision

Ubuntu packages for xenial, bionic and focal

Add this repository to your package manager:

sudo add-apt-repository ppa:berndporr/dsp
sudo apt-get update
sudo apt install fir1
sudo apt install fir1-dev

This adds fir1-dev and fir1 to your package list. The demo files are in /usr/share/doc/fir1-dev. Copy them into a working directory, type gunzip *.gz, cmake . and make.

MacOS packages (homebrew)

Make sure you have the homebrew package manager installed: https://brew.sh/

Add the homebrew tap:

brew tap berndporr/dsp

and then install the fir filter package with:

brew install fir

Linux / Unix / MACOSX: compilation from source

The build system is cmake. Install the library with the standard sequence:

cmake .
make
sudo make install
sudo ldconfig

or for debugging run cmake with: cmake -DCMAKE_BUILD_TYPE="Debug" . By default optimised release libraries are generated.

Windows

Under windows only the static library is generated which should be used for your code development.

cmake -G "Visual Studio 16 2019" -A x64 .

and then start Visual C++ and compile it. Usually you want to compile both the release and debug libraries because they are not compatible to each other under Windows.

Android / JAVA

The subdirectory firj contains an Android project. Load it into Android studio and build it either as a release or debug binary. This generates an Android aar which you import into your project. See the InstrumentedTest.java for an instructional example.

The pre-compiled libraries are here: Firj/firj/build/outputs/aar/firj-*.aar

Python

Installation from the python package index (PyPi)

Windows / Linux / Mac

    pip3 install fir1

under Windows it might be just pip for python3.

Installation from source

Windows / Linux / Mac: make sure that you have swig and a C++ compiler installed. Then type:

    python3 setup.py install

Clone this wiki locally