dvswitch:ubuntu-16.04-master

Last commit made on 2018-02-06
Get this branch:
git clone -b ubuntu-16.04-master https://git.launchpad.net/dvswitch

Branch merges

Branch information

Name:
ubuntu-16.04-master
Repository:
lp:dvswitch

Recent commits

cc4a3e0... by walterav on 2018-02-06

 launchpad dvswitch snap runs on 16.04 and 17.10?

The installed snap now runs on Ubuntu 16.04 and Ubuntu 17.10 with png icons and tested video mixing, but I don't understand yet why it didn't before pixbuf/iconcache etc.

Is it the classic confinement, is it gsettings and or removing wayland&desktop plugs, or configflags or clearing each prime stage build pull or cmakelist usr/local?

9528642... by walterav on 2018-02-06

launchpad snapcraft build attempt 08c -local icon

Snap builds, installs with "--classic --dangerous" and dvswitch runs with icon png's and mixes video from dvswitch.dvsource-file on ubuntu 16.04 amd64 :-D!

107fa09... by walterav on 2018-02-06

launchpad snapcraft build attempt 08b -local png

Re-hardcode png sources, $SNAP/usr/share/dvswitch doesn't work

3ad5857... by walterav on 2018-02-06

launchpad snapcraft build attempt 08 /usr/ -local

For more compliance to snap change /usr/local to /usr

47e0b29... by walterav on 2018-01-17

launchpad snapcraft build attempt 07b hardcode png

This will break normal build procedures in favor of snap building until correct build flag parameter is found&used.

f7658c2... by walterav on 2018-01-17

 launchpad snapcraft build attempt 07

The following suggested yaml changes from daniel @ forum.snapcraft.io makes dvswitch gui app launch from snap on ubuntu 17.10 amd64 ( if png paths in "src/dv_selector_widget.cpp" are hardcoded).

Howver the app does crash as soon as you start to feed dv video from file or firewire, probably because at that moment it will draw the png's for the first time on the screen).

dvswitch -p 1234 -h 127.0.0.1

(process:2295): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"

(dvswitch:2295): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
ERROR: Couldn't recognize the image file format for file '/snap/dvswitch/current/usr/local/share/dvswitch/pri-video-source.png'

dvswitch -p 1234 -h 127.0.0.1
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
terminate called after throwing an instance of 'Gtk::IconThemeError'
Aborted (core dumped)

0a590ef... by walterav on 2018-01-14

launchpad snapcraft build attempt 06

dvswitch -p 1234 -h 127.0.0.1

(process:31968): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "canberra-gtk-module"
ERROR: Failed to open file '/usr/local/share/dvswitch/pri-video-source.png': No such file or directory

Adding a apps:&command: section to the snap yaml makes dvswitch/dvgrab/dvsource-files/dvsink-files/dvsource-firewire/dvsource-dvgrab run directly when called from terminal (when using dvswitch.dvgrab dvswitch.dvsource-files/etc).

For dvswitch it stops complaining about libboost.../libpng... missing, but will (still) refuse to find the DSHAREDIR /usr/local/share/dvswitch *.png and refuse to start even when those files are copied to the native host (which works if the dvswitch binary from the snap is run directly in shell with manually prelinking libraries, ugly but it works). Also manpages/docs are not linked but not necessary.

Good thing dvgrab within the dvswitch snap works and captures DV via firewire without any special privilege requirements directly to the host user/desktop folder.

The stage/prime folder and final snap of dvswitch does contain usr/local/share/dvswitch/*.png

3b65761... by walterav on 2018-01-13

 launchpad snapcraft build attempt 05

Try to fix execvp error when trying to use DV/FireWire 1394 video source!

Currently dvswitch runs on ubuntu 17.10 amd64 when manually linking library folder (lib png is now included) and adding /usr/local/share/dvswitch folder to the system for missing icons, also audio/videomixing works with dvsource-file and dvsource-firewire/dvgrab (if dvgrab packages is added to the system, else execvp error).

757ea29... by walterav on 2018-01-13

launchpad snapcraft build attempt 04

The snap builds successful on launchpad but with Ubuntu 17.10 amd64 it only installs with --devmode and than there is no library linking or packages are missing like libpng12-0. Also the /usr/local/share/dvswitch folder with icons is missing.

The snapcraft.yaml is probably missing a lot of things.

4b92281... by walterav on 2018-01-13

launchpad snapcraft build attempt 03