Installing OSPKit

From creative crowd wiki
Jump to navigation Jump to search

Installing OSPKit on Debian 11

June 15 2023

Following this README:


$ git clone

QTwebkit Install

To install Qt-WebKit 5.212, it’s easier to install the version shipped by the apt package manager, because building the OSP patch of Qt-WebKit 5.212 will take hours.

$ sudo apt search qt5 | grep webkit

gambas3-gb-qt5-webkit/oldstable 3.15.2-1 amd64
libqt5webkit5/oldstable 5.212.0~alpha4-11 amd64
libqt5webkit5-dev/oldstable 5.212.0~alpha4-11 amd64
python3-pyqt5.qtwebkit/oldstable 5.15.2+dfsg-3 amd64
python3-pyqt5.qtwebkit-dbg/oldstable 5.15.2+dfsg-3 amd64
qutebrowser-qtwebkit/oldstable 2.0.2-2 all

$ sudo apt install libqt5webkit5

OSPKit Install

$ cd src

$ qmake

bash: qmake: command not found

Hmm, how to install qmake?

$ sudo apt search qmake

qt5-qmake/oldstable 5.15.2+dfsg-9 amd64
Qt 5 qmake Makefile generator tool

$ sudo apt install qt5-qmake

$ qmake

Info: creating stash file /home/mb/Documents/clusters/onderzoek/OSP/tools.ospkit/src/.qmake.stash
Project ERROR: Unknown module(s) in QT: core gui printsupport widgets


Searching for this error brought me to Stack Overflow:

$ sudo apt-get install qtbase5-dev

$ qmake

No output… I guess that is a good sign.

$ make

In file included from mainwindow.cpp:2: ui_mainwindow.h:13:10:

fatal error: QtWebKitWidgets/QWebView: No such file or directory 13
| #include <QtWebKitWidgets/QWebView> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:390: mainwindow.o] Error 1

Hmm… it seems that the QtWebKitWidgets library is missing.

No idea how to continue, so I asked Alex ;).

We looked again at the qt5-webkit packages in apt, and saw the dev package.

sudo apt install libqt5webkit5-dev

And then back to the Makefile.


It worked! :)

It generated an executable file called OSPKit.

├── main.cpp
├── main.o
├── mainwindow.cpp
├── mainwindow.h
├── mainwindow.o
├── mainwindow.ui
├── Makefile
├── moc_mainwindow.cpp
├── moc_mainwindow.o
├── moc_predefs.h
├── OSPKit
└── ui_mainwindow.h

Use OSPKit

I copied the executable to the bin folder that I have in my home folder:

$ cp ./OSPKit ~/bin/

And now I can use it from anywhere on my system :).

$ OSPKit