cross-compile/macosx: Set DYLD_LIBRARY_PATH After a prior change to the dynamic library path location users have reported issues of nightly builds crashing on MacOS: - #1633 - #1627 - #1651 - #1744 This change, mentioned by Andrea Leofreddi in #1633, hints PulseView and sigrok-cli as to the correct location of dynamic libraries through the addition of an environment variable to the startup script.
macosx: create_dmg: also install the C language IRMP shared library Have the install_name_tool also massage the libirmp.la build output and thus have the shared library added to the resulting package. It was missing before and the Python part of IR_IRMP failed to load. Add a comment for developers' awareness, the application's executable and the data files are handled in a different section of the script than the shared libraries were. Drop trailing whitespace from a text line.
sigrok-native-macosx: Add sigrok-cli DMG creation support.
sigrok-native-macosx: Fix Homebrew package paths Use a more reliable method of determining paths to Homebrew formula prefixes, `brew --prefix`. Use this to find pkg-config files for keg-only formulae, now including libffi, which is required for glibmm. This fixes bug #1367.
macosx: Hardcode the Qt version to 5.5 for now. The latest Qt version available in Homebrew is 5.11.x currently, but this version no longer supports older Mac OS X versions: https://doc.qt.io/qt-5/supported-platforms-and-configurations.html In order for the DMG build to remain compatible with some more older Mac OS X versions, we hardcode the scripts to use Qt 5.5 for now. This requires the following on the build box: $ brew install qt@5.5 $ brew unlink qt $ brew link --force qt@5.5 With this change the DMG should work on at least Mac OS X 10.8, 10.9, and 10.10 according to Qt docs (only tested on 10.11.6 / El Capitan). The DMG also currently uses Python 3.7, which should work fine for Mac OS X 10.9 (Mavericks) and later, according to Python docs (again, only tested on 10.11.6 / El Capitan).
macosx: Refine pulseview executable invocation in wrapper script. Cope with whitespace in e.g. pathnames that get passed to the script and then forwarded to the executable. Prefix the invocation of the external binary with 'exec' as there is no need to return to the script after the last line finished executing.
macosx: Set $SIGROK_FIRMWARE_DIR environment variable. This allows the .app/DMG to properly find its firmware files. In addition to the files it ships with, libsigrok will still search all the usual paths for firmware files (if needed). I.e., the user can place additional firmware files in local paths (see libsigrok's README.devices).