Commit Graph

211 Commits

Author SHA1 Message Date
Martin Pulec
74e5eab149 AppRun: fix lavc warnings on Tumbleweed
suppress ldd warnings:
<https://gist.github.com/MartinPulec/ae1dc6b6e0b88f3bd02bb47c1163fdf7>

when trying the the bundled libavcodec.so with system deps

Probably OK to silence - the system libva from the live OpenSUSE ISO
seem to be preloaded.
2026-01-06 14:23:47 +01:00
Martin Pulec
3720721836 create-appimage.sh: bundle decor if having vulkan
in additon to gl and sdl check, bundle also if having vulkan

This should be covered by the sdl case, anyways - vulkan display uses
sdl for window management so this usually implies that sdl display will
be present as well, unless explicitly disabled.
2026-01-06 14:23:47 +01:00
Martin Pulec
a44e42e520 AppImage: bundle libdecor
both GLFW and SDL load libdecor-0.so.0 by dlopen so it is not going to
be bundled...
2026-01-06 09:02:56 +01:00
Martin Pulec
b17135d8e4 AppImage: better handle libOpenGL.so.0
the previous actually didn't work properly, because uv-qt depend
on libQt6OpenGL.so.6 which in turn depend on libOpenGL.so.0. But
LD_LIBRARY_PATH is not set inside the AI so the transitive dep
is not handled and thus the preload is not applied.

Querying libQt6OpenGL.so.6 directly also don't work because it resolves
to the libOpenGL.so.0 in the same library, from which we cannot deduce
if its counterpart is inside the system.
2025-12-05 16:17:07 +01:00
Martin Pulec
656b0a7eeb AppImage: setup_wayland: handle SDL3 2025-12-05 16:17:02 +01:00
Martin Pulec
73e3a7ba84 rework macos-wrapper
generate the run-time dependency according to the build system, not
hard-coded

The advantage for CI is that it does no longer need to be upgraded every
time the GH runner was updated.

This also generalizes for non-CI builds, when the build macOS version
can obviously differ from the CI macos runner.

Do not use both Darwin and macOS version, use just macOS ver.
2025-12-05 12:28:40 +01:00
Martin Pulec
4d6ceb2e5e macos-wrapper: ensure os release according to arch
x86_64 now builds on macOS 13 while arm64 on macOS 14
2025-12-05 11:35:41 +01:00
Martin Pulec
b229c207a3 AppImage Firejail: make '-t file:help' run
(help for usage, not a regular file)
2025-11-26 11:58:50 +01:00
Martin Pulec
1f3438ec31 create-appimage.sh: generalize includes
(includes here are the exceptions from upstream/AppImage excludelist)
2025-11-25 09:33:12 +01:00
Martin Pulec
b9ce913b9d AppImage: include libOpenGL.so.0 fallback
Currently Ubuntu 25.10 live DVD (ubuntu-25.10-desktop-amd64.iso)
does not include the library, preventing the GUI from being
run.  On the other hand, if used unconditionally, it causes
the warning (even in the U25.10) for which it was removed:
<https://github.com/linuxdeploy/linuxdeploy/issues/152>

So preload the library if is in the system and use the bundled just as
a fallback.
2025-11-25 09:33:09 +01:00
Martin Pulec
ba0d897c50 replace vidcap_params_set_capture_filter with _add_
Improves the commint 4682cf65 (2024-08-19) allowing also the capture
filter to be specified both before and after the vcap (if only one
used), eg.  `-F flip -t testcard -F mirror`.
2025-11-14 10:35:04 +01:00
Martin Pulec
1f1505ab12 AppRun: another updates 2025-10-01 10:20:19 +02:00
Martin Pulec
9b635b5a84 AppImage Firejail: no disable-mnt for symlinks 2025-10-01 09:47:21 +02:00
Martin Pulec
5c379c8d60 AppRun: add --mk-symlinks for symlinks create
for convenience to allow uv/hd-rum-transcode normally
2025-09-30 14:45:54 +02:00
Martin Pulec
2ff0bd5c19 AppRun: allow running with symlinks
resolve tool from $APPIMAGE ($0; progname)

This allows running the reflector with just `hd-rum-transcode` if
symlinked with that name.
2025-09-30 12:17:51 +02:00
Martin Pulec
4357452c32 move soundfont to shared + always install
This simplifies things a bit at the expense that the soundfont is always
included/installed (91 kB).

Added get_data_path() function for generic handling the path to common
data (eg. /usr/local/share/ultragrid if installed). The idea is to catch
all cases - installed (run with absolute or relative path) or run from
inside the source directory in one place.
2025-09-03 16:42:28 +02:00
Martin Pulec
517f47ec7e create_appimage.sh: fix missing $
The excludelist was not applied for arm64 (used x86 instead)? Currently
excluded was just ld-linux-aarch64.so.1 but it may cause problems...
2025-08-29 12:33:38 +02:00
Martin Pulec
2ae0eee190 excludelist.local.x86: disable also libgdk-3.so.0
Not tested but trivially, libgdk-3.so.0 from (build) Ubuntu 22.04
should not be incompatible when running on the  same distro.

This is not known to cause issues but better to remove this since it
the original use case seem no longer being valid. Track just the
excludelist from AppImage creator.
2025-08-29 12:16:05 +02:00
Martin Pulec
2a34727449 excludelist.local.x86: disable libgdk_pixbuf-2.0.so.0
commented out libgdk_pixbuf-2.0.so.0

Normal build no longer runs on Rocky Linux 9 but alternative build (built
on centos 7) does. But conversly excluding the files causes dependency
problems for vcap/file vcomp/lavc, vdisp.file, vdisp/gl. Tested on Alma
9.6, which shuld be basically the same as Rocky. After re-adding the
problem disappears.
2025-08-29 12:02:01 +02:00
Martin Pulec
aa6be6b1a4 create-appimage.sh: ship soundfont also for fluidsynth
not only sdl_mixer
2025-08-27 09:30:35 +02:00
Martin Pulec
4a8c12f416 add .sh suffix to hd-rum-av
This is more convenient and allow the users that honor that behave more
correctly, eg. he macOS legacy compat wrapper in Makefile adding -real
to executable binaries.
2025-08-14 09:08:28 +02:00
Martin Pulec
c67610c527 macos_bundle_libs.sh: avoid otool on dir
eg. uv.dSYM
2025-08-14 08:28:11 +02:00
Martin Pulec
61261a39df create-appimage.sh: try curl prior to wget
In CI, the attempt to download mkappimage sometimes fail with some cryptic:
```
ERROR 403: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature..
```
2025-07-17 15:32:31 +02:00
Martin Pulec
f043f10a9e fix data/scripts/macos_bundle_libs.sh
the former failed on Mac OS X 10.11 with:
`sed: 1: "/LC_RPATH/,+2p": expected context address`.

The '+2' address seem to be GNU extension, although supported by current
macOSes (and busybox).

see also
<https://stackoverflow.com/questions/26124650/sed-use-expected-context-address>
2025-05-20 11:07:51 +02:00
Martin Pulec
26031495f4 macos_bundle_libs.sh: skip scripts for dylibbundle
do not run dylibbundler on shell scripts
2025-05-06 12:27:58 +02:00
Martin Pulec
3edee950bf create-appimage.sh: silence tput err msgs
tput is just a pretty-printer, suppress the errs like `tput: unknown
terminal "unknown"` in CI (not relevant at all, just to make it clear)
2025-04-15 09:40:22 +02:00
Martin Pulec
8c73534128 create-appimages.sh: print errors bold/red
The errors are not fatal unless in CI but user should be notified.
2025-04-04 22:42:44 +02:00
Martin Pulec
05187ea56d AppImage: bundle aux data for IM magickwand 2025-04-04 22:42:41 +02:00
Martin Pulec
c84422ab84 AppImage Firejail: suppress private-tmp in config
Upstream Firejail (0.9.75) has now private-tmp enabld by default in
default.profile, which breaks run from the nounted AppImage.
2025-03-26 14:25:35 +01:00
Martin Pulec
6bcac129b7 macOS lib bundle: move from Makefile to a script
Extend the script added by previous commit to one handling the entire
bundling from Makefile.

It is nicer having the scripting outside the Makefile, anyways, and the
bundle LC_RPATH fix workaround closly relates to bundling.
2025-03-25 14:12:43 +01:00
Martin Pulec
641df59fcd fix macOS 15.4 beta crashes due to LC_RPATH dups
Fixes the UG crashes caused by the multiplication of
"@executable_path/../libs/" caused by replacing multiple (originally
distinct) LC_RPATH values with this one.

+ removed invalid comment from Makefile (actually was related to
"bundle-nolib" target that is no longer present)

closes GH-436
2025-03-19 10:46:30 +01:00
Martin Pulec
7e1cbf8c6d AppRun Firejail fixes
- setup_firejail was not passed the whole command-line as the fucnction
(and subsequently called ones) expected
- omit adding --read-only=/tmp fixed - now paths are "-enclosed, handle
eventual mutliplied leading / and evental trailing one and don't assume
space after (not needed now, " delimits that)
2025-03-12 12:32:10 +01:00
Martin Pulec
b7fddb8725 AppImage Firajail: drop --ipc-namespace
breaks display vulkan_sdl2 with x11 driver (but not wayland!)
2025-02-06 13:57:14 +01:00
Martin Pulec
2e321f6511 AppImage: disable signing again
Validation with:
<https://github.com/AppImageCommunity/AppImageUpdate/releases/download/continuous/validate-x86_64.AppImage>

fails, which eg. prevents the AppImage update. Perhaps problem in
AppImageUpdate upstream (the sign reenablement is quite new - see the
link referenced in 9a6f0796).
2025-01-21 09:36:27 +01:00
Martin Pulec
9a6f07964a AppImage CI: reenable signing
Adapted to the new (proposed) way of signing:
<https://github.com/probonopd/go-appimage/issues/318>. It is possible
that it this is not final implementation in the go-appimage.
2025-01-13 14:28:29 +01:00
Martin Pulec
6ebeec3e28 AppRun: if update is due, touch first
If ULTRAGRID_AUTOUPDATE is set and the update is due, touch the AppImage
first. This is convenient if user wants to skip the update eg. by pressing
Ctrl-C, next run will not enforce the update becauuse the date of the file
is reset. User can run then run the AppImage by issuing the command again
without the update.

+ notice that updating because of ULTRAGRID_AUTOUPDATE is set
+ rename handle_updates to handle_autopudates (the normal update by -u is
not handled by that function at all)
2025-01-09 12:25:27 +01:00
Martin Pulec
a544fee812 AppImage: set debug if $ULTRAGRID_VERBOSE
If $ULTRAGRID_VERBOSE is set and $APPIMAGE_DEBUG is undefined, set
APPIMAGE_DEBUG to value of ULTRAGRID_APPIMAGE.
2024-09-25 09:15:48 +02:00
Martin Pulec
b644147807 AppImage AppRun: in debug print that no upd. avail
If $APPIMAGE_DEBUG print explicitly that no updates are
available. (`appimageupdatetool -j` really returns 0 when no updates
available, otherwise 1 or a different value on error).
2024-09-25 09:15:48 +02:00
Martin Pulec
e1c747e966 CI mac: use macos-13
macOS 12 is no longer supported and as Homebrew has a policy, that it
compiles packages from sources on unsupported macOSes, it is needed to
switch to newer macOS to keep reasonable build times.
2024-09-19 16:18:59 +02:00
Martin Pulec
77d243f931 AppRun: fix libwayland* not found condition
(commit HEAD^^^)
2024-09-17 15:07:41 +02:00
Martin Pulec
0b261533c8 AppRun: added APPIMAGE_DEBUG + use for libwayland*
Replace FIREJAIL_DEBUG with APPIMAGE_DEBUG and use it to debug printf
that we are using bundled libwayland*.
2024-09-17 14:09:10 +02:00
Martin Pulec
8a58843b7c AppRun: use bundled libwayland* only if needed
Besides the original check (-n $WAYLAND_DISPLAY), do not use the bundled
libraries also when there are the libwayland* in system (so not needed).

This allows `uv -d sdl:driver=KMSDRM` even from console when
WAYLAND_DISPLAY is not defined but Wayland is run in a different session.

If the WAYLAND_DISPLAY is defined but the not all libwayland* are found
in the system, now the bundled version is used (changed- was not
previously).
2024-09-17 13:59:21 +02:00
Martin Pulec
4b449c5917 create-appimage.sh: do not exclude libpipewire-0.3.so.0
ilibpipewire-0.3.so.0 was added to excludelist causing the distcheck fail,
see [1]

We do not need to exclude the lib, because we already handle the preload
in data/scripts/Linux-AppImage/AppRun:282 (the case is similar as for
libjack.so.0 as also mentioned in the related AppImage issue).

[1]:
04af461f47
2024-08-28 13:29:49 +02:00
Martin Pulec
81691c2199 AppRun: removed unused code
not run in MSW, C&P
2024-07-30 08:39:11 +02:00
Martin Pulec
e412845740 data/scripts/build_aja_lib_win64.sh: absolute path
Use absolute path for libajantv2 library.

The relative path was used as for now, which is true in the CI (libajantv2
is extracted to .) but is less eligible for interactive use.
2024-07-26 09:35:42 +02:00
Martin Pulec
a893667a52 CI Win AJA: built libajantv2 rename
Built libajantv2 has now a different name:
```
2024-07-25T10:26:49.7807780Z      Creating library D:/a/UltraGrid/UltraGrid/libajantv2/build/ajantv2/Release/ajantv2_vs143_MT.lib and object D:/a/UltraGrid/UltraGrid/libajantv2/build/ajantv2/Release/ajantv2_vs143_MT.exp
2024-07-25T10:26:50.0519395Z   ajantv2.vcxproj -> D:\a\UltraGrid\UltraGrid\libajantv2\build\ajantv2\Release\ajantv2_vs143_MT.dll
```
2024-07-25 15:02:00 +02:00
Martin Pulec
f3d67249b7 AppImage custom excludelist x86: removed gnutls
Doesn't seem to be required and nwo (since the new PPA use) causes following error:
```
ultragrid_vidcap_rtsp.so: /lib/x86_64-linux-gnu/libgnutls.so.30: undefined symbol: nettle_siv_gcm_aes256_decrypt_message, version NETTLE_8
``
(obviously) when libgnutls30 is not installed, eg. in Ubuntu 24.04.
2024-07-18 10:49:28 +02:00
Martin Pulec
417497b406 AppRun: check system libva
Check if bundled libavcodec has all dependencies satisfied from system
libva, if not do not use the system ones.

Fixes the error message:
```
undefined symbol: vaMapBuffer2  (./squashfs-root/usr/lib/libavutil.so.59)
```

on (some) current Ubuntu 22.04 with current continuous AI.
2024-07-17 16:07:12 +02:00
Martin Pulec
89b173ba2b AppImage: option --ug-help for UG help
If run from within the AppImage, -h shows help of the AppImage wrapper
itself, not the one of UltraGrid. So add --ug-help as an alternative for
`-o uv -h`.

First considered was a shortopt -H, but this is currently mapped by UG
for --full-help (which can be used directly), so keep the long variant
in order not to make it confusing.
2024-07-09 09:27:19 +02:00
Martin Piatka
2f601f5ccd CI Win: Dependencies for screen capture 2024-07-08 16:04:20 +02:00