## Install and use  [qwt](https://sourceforge.net/projects/qwt/) under macOS<sup>*</sup>:

After downloading it from here [https://sourceforge.net/projects/qwt/](https://sourceforge.net/projects/qwt/):

```sh
cd qwt-6.1.5
mkdir build && cd build
qmake ..
make -j4
sudo make install    # this command install stuff inside /usr/local/
```

then go build one of the example to make sure it's working. E.g.:
```sh
cd examples/bode
```

make sure the file `bode.pro` looks like something like this:
(I've added the first line and the `QT += printsupport`)
```cmake
include( /usr/local/qwt-6.1.5/features/qwt.prf ) # includes QWT libary into Project

TARGET       = bode

QT += printsupport

HEADERS = \
    mainwindow.h \
    plot.h \
    complexnumber.h \ 
    pixmaps.h

SOURCES = \
    plot.cpp \
    mainwindow.cpp \
    main.cpp
```

then copy the folder `qwt.framework` to the folder `/Library/Frameworks/`:
```sh
sudo cp -r /usr/local/qwt-6.1.5/lib/qwt.framework /Library/Frameworks/
```
otherwise you'd get this error when running the program: `dyld: Library not loaded: qwt.framework/Versions/6/qwt`.


Now you cant actually build the example:
```sh
mkdir build && cd build
qmake ..
make -j4
```
and run it:

```sh
./bode.app/Contents/MacOS/bode
```

---
<div style="text-align: right"><tt>Sun 25 Oct 2020 10:13:30 CET</tt></div>
<div style="text-align: right"><a href="https://github.com/urbanij/">@urbanij </a></div>


<sup>*</sup> Tested on macOS Mojave 10.14.6. Assuming your version or qwt is 6.1.5 otherwise change it accordingly.