Install Blink Qt locally ------------------------ # Install Xcode from Apple # Install MacPorts from https://www.macports.org # Install python from https://www.python.org To install blink-qt and its dependencies: bash macos/install_blink.sh Everything is installed into a dedicated virtualenv: ~/work/sipsimple-python---env This is the same environment used by the python3-sipsimple build scripts, so a SIP SIMPLE SDK that was already built there is reused instead of being recompiled. On subsequent runs the (slow) PJSIP build is skipped whenever an importable sipsimple of a sufficient version is already present. The SIP SIMPLE SDK (>= 5.6.0) is built by python3-sipsimple's own mac/ scripts from a checkout at ~/work/python3-sipsimple (cloned from GitHub if absent; override with SIPSIMPLE_SRC=...). Those handle universal MacPorts libraries, ffmpeg pinned to 4.4.5 (do NOT `port install ffmpeg`, pjmedia needs 4.x), the optional G.729 codec and PJSIP 2.17 (PJSIP_VERSION=2.12 for the legacy series). FORCE_SDK=1 rebuilds it even if a sufficient version is installed. The Python libraries (macos/python-requirements.txt, macos/sipsimple-requirements.txt, macos/requirements-osx.txt) are refreshed on every run, and install_blink.sh ends with a report of which optional features (QtMultimedia, QtPdf, QtPositioning, PyNaCl, segno, GStreamer...) are usable. To only update the Python packages of an existing environment: source ./macos/activate_venv.sh pip3 install -r macos/requirements-osx.txt To run Blink in place: sh run To run Blink from the virtualenv, activate it and run blink: source ./macos/activate_venv.sh blink Making Blink Qt app ------------------- Activate the virtualenv first so pyinstaller can find PyQt6, the SIP SIMPLE SDK and blink: source ./macos/activate_venv.sh Generate a spec file used by pyinstaller using make_spec.sh script. The resulting file must be tweaked, see the modified blink.specs file. Copy blink.spec in the main source directory, edit it and set codesign_identity to your Developer id. pyinstaller blink.spec -y The generated app can then be found in dist/ folder (Blink-Qt.app). Note that dist/Blink.app, if present, is the separate Cocoa version of Blink. sudo port install create-dmg To generate a .dmg run: bash macos/create_dmg.sh Note. The resulting DMG has a very large size due to bundling of all system installed Qt6 frameworks and Python packages. This can be optimized by removing unused libraries during building the app stage. Local storage ------------- Blink Qt configuration and data is stored inside the folder: ~/Library/Application\ Support/Blink-Qt/ Qt6 notes --------- Running on MacOS https://stackoverflow.com/questions/33090346/is-there-any-way-to-use-qtwebengine-without-opengl export QMLSCENE_DEVICE=softwarecontext install_name_tool -add_rpath /Users/adigeo/.venv/blinqt5-windows/lib/python3.9/site-packages/PyQt5/Qt/lib /Users/adigeo/.venv/blinqt5-windows/lib/python3.9/site-packages/PyQt5/QtWebKit.so install_name_tool -add_rpath /Users/adigeo/.venv/blinqt5-windows/lib/python3.9/site-packages/PyQt5/Qt/lib /Users/adigeo/.venv/blinqt5-windows/lib/python3.9/site-packages/PyQt5/QtWebKitWidgets.so