-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
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.
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
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.
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.
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
Windows / Linux / Mac
pip3 install fir1
under Windows it might be just pip for python3.
Windows / Linux / Mac: make sure that you have swig and a C++ compiler installed. Then type:
python3 setup.py install