Solved kodi error after upgrade to 12.2

hi, after upgrading to FreeBSD 12.2 from 12.0, I'm having trouble launching 'kodi', system complaining several missing objects which I had to install associated pkg manually,
libfmt
fstrcmp
libspdlog
spdlog
waylandpp

afterwards, kodi still couldn't launch, error is as follows:
$ kodi
ld-elf.so.1: /usr/local/lib/kodi/kodi.bin: Undefined symbol "_ZN2xg7newGuidEv"
$

any suggestion how to get over this?
 
Last edited:
Did you also subsequently upgrade packages?

Yes, I've upgraded packages.
#freebsd-version
12.2-RELEASE-p12
#uname -mrs
FreeBSD 12.2-RELEASE-p12 amd64

i reinstalled 'kodi', this time another shared object is missing, it seems that kodi installation through 'pkg' doesn't pull in all needed dependencies.
$ kodi
ld-elf.so.1: Shared object "libcec.so.6" not found, required by "kodi.bin"
 
Code:
% pkg provides libcec.so.6
Name    : libcec-6.0.2
Desc    : Library to control Pulse-Eight's HDMI-CEC adapter
Repo    : FreeBSD
Filename: usr/local/lib/libcec.so.6.0.2
          usr/local/lib/libcec.so.6
%
 
Code:
% pkg provides libcec.so.6
Name    : libcec-6.0.2
Desc    : Library to control Pulse-Eight's HDMI-CEC adapter
Repo    : FreeBSD
Filename: usr/local/lib/libcec.so.6.0.2
          usr/local/lib/libcec.so.6
%
thanks! below are the missing links, looks that I need to manually install the needed pkgs - no sure why pkg doesn't pull them in
root@freebsd:/usr/home/erdos # pkg check --shlibs -a
Checking all packages: 30%
(kodi-19.3_2) /usr/local/bin/TexturePacker - required shared library liblzo2.so.2 not found
(kodi-19.3_2) /usr/local/lib/kodi/kodi.bin - required shared library libcec.so.6 not found
(kodi-19.3_2) /usr/local/lib/kodi/kodi.bin - required shared library libcrossguid.so.0 not found
(kodi-19.3_2) /usr/local/lib/kodi/kodi.bin - required shared library liblzo2.so.2 not found
(kodi-19.3_2) /usr/local/lib/kodi/kodi.bin - required shared library libtag.so.1 not found
Checking all packages: 100%
$ pkg --version
1.17.5
 
Code:
% pkg provides liblzo2.so.2
Name    : lzo2-2.10_1
Desc    : Portable speedy, lossless data compression library
Repo    : FreeBSD
Filename: usr/local/lib/liblzo2.so.2.0.0
          usr/local/lib/liblzo2.so.2
% pkg provides libcrossguid.so.0
Name    : libcrossguid-0.2.2.52,1
Desc    : Minimal and cross platform C++ GUID library
Repo    : FreeBSD
Filename: usr/local/lib/libcrossguid.so.0.2.3
          usr/local/lib/libcrossguid.so.0
% pkg provides libtag.so.1
Name    : taglib-1.12
Desc    : Library for manipulating ID3 tags and Ogg comments
Repo    : FreeBSD
Filename: usr/local/lib/libtag.so.1.18.0
          usr/local/lib/libtag.so.1

Name    : plexmediaserver-plexpass-1.25.2.5319
Desc    : Plex Media Server component
Repo    : FreeBSD
Filename: usr/local/share/plexmediaserver-plexpass/lib/libtag.so.1

Name    : plexmediaserver-1.25.2.5319
Desc    : Plex Media Server component
Repo    : FreeBSD
Filename: usr/local/share/plexmediaserver/lib/libtag.so.1
%

Also FYI:

 
I installed the libraries modules manually and get kodi going.

However, whenever I tried to launch video add-ons from kodi, I got error saying 'Please check log for more info', without launching the apps

Add-on I installed:
The Crew
Oath
youtube

I looked at ~/.kodi folder but couldn't find the app logs.

Also tried to reinstall the Kodi to no avail.
 
Is anything logged? If not in Kodi's log, elsewhere?

here's the log file. I had to change the file extension from .log to .txt to be attached here.

One more thing i noticed in the log is that kodi is lookings for addons in /usr/local/lib/kodi/addons, that folder does not exist.
 

Attachments

I created the folder as suggested, and 'folder not found error is gone from log.

but addon still didn't launch and kodi log still had this nagging 'sqlite3' not found error
so I search for install Python packages.
$ pkg info -l python37
pkg: No package(s) matching python37
$ pkg info -l python38
indicates that I have python38 installed

Then look for correct version of sqlite3.
$ pkg search sqlite3
$ sudo pkg install py38-sqlite3
installed the missing 'py38-sqlite3' module, it seems sqlite3 varies for different version of python, and it doesn't get installed when I upgrade to 12.2.

After that, kodi addon works fine.

thanks!
 
Back
Top