Replacing the Qt libraries
BeeBEEP is built on Qt and ships its libraries beside the program: where they are in each package, how to put your own in their place.
For: developers, administrators · From BeeBEEP 6.0.0 · Updated on
BeeBEEP is built on Qt, and every package carries the Qt libraries it was built with, as separate files beside the program. You may replace them with Qt libraries you built yourself, for example with a fix of your own. This page says what the licenses give you, where the libraries are in each package, and how to replace them.
What the licenses give you
BeeBEEP is free software under the GNU General Public License, version 3 (GPL-3.0-only). Qt is used under the GNU Lesser General Public License, version 3, except Qt HTTP Server, which is used under the GNU General Public License, version 3. The license texts are in the program's About and in the assets/licenses folder of the source.
- The source of BeeBEEP: the public repository and the source archive of each version,
beebeep-<version>-source.tar.gz, beside the packages. - The source of Qt: the exact version each BeeBEEP is built with,
qt-everywhere-src-6.x.y.tar.xz, in the Qt Project's archive of every release, download.qt.io/archive/qt (opens in a new tab). - Replacing Qt: in every desktop package the Qt libraries are files of their own, which you can change without touching BeeBEEP's program.
Which Qt version
The Qt version BeeBEEP runs on is in the first line of its log, after the word Qt, and in the support file (reporting a problem). This page writes it 6.x.y; <version> is BeeBEEP's own.
Qt's own build instructions are at doc.qt.io (opens in a new tab).
Windows
The setup and the MSI install BeeBEEP in C:\Program Files\BeeBEEP. In that folder:
| What | Where |
|---|---|
| The Qt libraries | Qt6*.dll beside beebeep.exe |
| Qt's plugins | the folders inside plugins, beside BeeBEEP's own call and screenshare: platforms, sqldrivers, tls, multimedia, networkinformation, imageformats and the others |
| Qt's QML modules | the qml folder |
- Quit BeeBEEP, also from the tray.
- Copy your files over the ones of the same name. In
C:\Program Filesit asks an administrator's permission. - Start BeeBEEP and check the version in its log.
Qt's libraries in the package carry The Qt Company's signature; yours need not be signed to load. Where an office lets only programs of known publishers run, its rules may refuse an unsigned library.
To put the original files back: a new install of the same setup, or for the MSI msiexec /fa beebeep-<version>-windows-x64.msi (a reinstall of every file). The Repair of Programs and Features keeps a file of the same version, so it keeps yours.
macOS
In BeeBEEP.app/Contents/:
| What | Where |
|---|---|
| The Qt libraries | Frameworks/ |
| Qt's plugins | PlugIns/ |
| Qt's QML modules | Resources/qml/ |
BeeBEEP is signed and notarized as it is downloaded. A changed library breaks that signature, and macOS then refuses to open the app. After replacing, sign again with a signature of your own: each framework or plugin you replaced, then the app itself. For example, for QtNetwork:
codesign --force --sign - /Applications/BeeBEEP.app/Contents/Frameworks/QtNetwork.framework
codesign --force --sign - /Applications/BeeBEEP.app
Do not use --deep: it would sign BeeBEEP's own plugins again, and BeeBEEP then refuses them as not its own, with no calls and no screen sharing.
The first time, macOS says it cannot check the app: open System Settings > Privacy & Security and choose Open Anyway for BeeBEEP. macOS asks for your login password once for the changed copy, and once more the first time you go back to the BeeBEEP you downloaded: allow it both times. Its data is the same. An update of BeeBEEP replaces the whole app, original libraries included.
Linux
| Package | Where |
|---|---|
| deb | /usr/lib/beebeep: lib/ for the libraries, plugins/ and qml/ |
| tar.gz | the same three folders, in the folder it unpacks into, beebeep-<version>-linux-x86_64 |
| AppImage | the same three folders, in squashfs-root/usr/lib/beebeep once unpacked (below) |
The program finds its libraries in its own lib/ folder, never in the system's, so the files there are the ones it uses (unless you set LD_LIBRARY_PATH, which comes first).
Each Qt library is one file named with its full version, such as libQt6Core.so.6.x.y, and a link to it, libQt6Core.so.6: replace the file, and leave the link as it is.
For the deb and the tar.gz:
- Quit BeeBEEP, also from the tray.
- Copy your files over the ones of the same name (for the deb, as root).
- Start BeeBEEP and check the version in its log.
For the deb, dpkg --verify beebeep lists the files that differ from the package's. An update of the deb, or the same version installed again (sudo apt install --reinstall beebeep), puts the original files back.
For the AppImage:
./BeeBEEP-<version>-x86_64.AppImage --appimage-extract
This makes a folder, squashfs-root. Replace the files in its usr/lib/beebeep/lib/, plugins/ and qml/, then start squashfs-root/AppRun, or pack the folder again into an AppImage with appimagetool:
appimagetool squashfs-root BeeBEEP-mine-x86_64.AppImage
A new version's AppImage carries its own original libraries.