Hi all,
I am trying to package Omnissa (formerly VMWare) Horizon Client but having issues with referencing external libraries.
Here is my yaml
---
app-id: com.omnissa.HorizonClient
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
command: horizon-client
finish-args:
- --share=network
- --socket=wayland
- --socket=pulseaudio
- --device=all
- --env=GTK_THEME=Adwaita
- --persist=.omnissa
modules:
- name: omnissa-horizon-client
buildsystem: simple
sources:
- type: file
url: https://download3.omnissa.com/software/CART26FQ2_LIN_2506_TARBALL/Omnissa-Horizon-Client-Linux-2506-8.16.0-16536624989.tar.gz
sha256: 5515e79188e2605ced5a95c3a3829865b567be5d7a8de00a57455f7b5b2ae392
dest-filename: Omnissa-Horizon-Client-Linux.tar.gz
build-commands:
- mkdir Extracted
- tar -xf Omnissa-Horizon-Client-Linux.tar.gz -C Extracted --strip-components 1
- tar -xf Extracted/x64/Omnissa-Horizon-Client-2506-8.16.0-16536624989.x64.tar.gz -C /app/ --strip-components 1
- tar -xf Extracted/x64/Omnissa-Horizon-PCoIP-2506-8.16.0-16536624989.x64.tar.gz -C /app/ --strip-components 1
- mkdir -p "/app/share/icons/hicolor/64x64/apps/"
- mv "/app/usr/share/icons/horizon-client.png" "/app/share/icons/hicolor/64x64/apps/com.omnissa.HorizonClient.png"
- mkdir -p "/app/share/applications/"
- mv "/app/usr/share/applications/horizon-client.desktop" "/app/share/applications/com.omnissa.HorizonClient.desktop"
- sed -i 's+/usr/share/icons/horizon-client.png+com.omnissa.HorizonClient+' "/app/share/applications/com.omnissa.HorizonClient.desktop"
- mkdir /app/bin/
- mv /app/usr/bin/* /app/bin
- mkdir /app/lib/
- mv /app/usr/lib/* /app/lib
- for f in `find /app/bin/ -not -type d`; do sed -i 's+/usr+/app+' "$f"; done
- for f in `find /app/lib/omnissa/ -not -type d`; do sed -i 's+/usr+/app+' "$f"; done
- ln -s /lib/x86_64-linux-gnu/libxml2.so.2 /app/lib/libxml2.so.2
The last line is setting up a symbolic link to a system library (libxml2.so.2) and I can see the link looks fine in build-dir/lib but, when I try to run the installed app, I get the error
/app/lib/omnissa/horizon/bin/horizon-client: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
Any ideas?
If linking to external libs is a nono can I instead link to the equivalent lib in the runtime? How would I do that?
TIA