My bad! I missed the "Ubuntu" in there somewhere. (In fact, I
dislike snaps enough that I am looking for another distro for my
wife's laptop, which has been running Ubuntu for a long, long time.)
> On my oPi Ubuntu system, apt says 64bit, but is installing a 32bit
> snap Chromium.
>
> Secondly, the apt libwidevinecdm0 apt install is rPi specific, from an
> rPi repo. Maybe the rPi install of Chromium is tailored to it.
Quite possibly.
Is it possible to install chromium from the raspbian repos on your
Ubuntu system? (And, I wonder, if so, would it run?)
> I do have a rPi 4 which I could test on, if I get desperate enough.
> Currently, I'm having other problems with the oPi, which may mean
> the oPi isn't currently a viable HTPC even if I could view Amazon
> Prime Video.
Too bad.
> I did a Chromium install on an Ubuntu Intel VM. I can see that it
> installs libwidevinecdm.so + related files into a folder structure
> under: $HOME/snap/chromium/common/chromium/WidevineCdm. I tried to
> duplicate this on the oPi, but Chromium didn't load files as expected.
I don't know whether this will provide any useful information to you
or not, but when I do
strings /usr/lib/chromium-browser/chromium-browser-v7
on a 32-bit raspberry pi OS system, I get
useWideViewport
Media.EME.Widevine.VideoCapability.HasEmptyRobustness
application_x-ppapi-widevine-cdm
Widevine enabled but no library found
wideViewportQuirkEnabled
../../chrome/browser/component_updater/widevine_cdm_component_installer.cc
Widevine CDM v1.0
Failed to update Widevine CDM hint path.
Installed Widevine CDM component is incompatible.
WideView Technology Inc.
Registering component updated Widevine
Registering bundled Widevine
Updating hint file with Widevine CDM
Widevine Content Decryption Module
com.widevine.alpha
com.widevine.alpha
Widevine
WidevineCdm
Widevine Content Decryption Module
widevinecdm
widevinecdm
WidevineCdm
latest-component-updated-widevine-cdm
.@com.widevine.alpha
com.widevine.alpha
com.widevine.alpha
com.widevine.alpha
If you run "strings" on the chromium browser you installed and grep
the output as above, do you get anything? This might indicate whether
or not your chromium has been compiled to know about widevine,
> I don't understand the relevance of depmod.
None whatsoever. (Mea culpa!) I meant to type "ldconfig", just in
case the installation of widevine via apt didn't cache the location of
the library. And this is just in case your one of your system's
/etc/ld.so.conf files points at
/opt/WidevineCdm/_platform_specific/linux_arm/ (admittedly a long
shot) and your chromium only looks there, rather than under $HOME
(also a long shot).
> I did think about some utility tool to build a linkage dependency
> tree for libwidevinecdm.so, but I have used strace to see that oPi
> Chromium isn't even attempting to open libwidevinecdm.so, so a
> missing dependency isn't the problem.
Indeed!
I doubt I've been much help here, but if you do try to install the
chromium from the rPi repo, or do that strings|grep command, I'd be
interested in knowing what you discover.
Good luck!
Jim