[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-bugs-dist
Subject:    [amarok] [Bug 486457] build of amarok3 crashes on starte
From:       "Tuomas Nurmi" <bugzilla_noreply () kde ! org>
Date:       2024-05-06 13:35:53
Message-ID: bug-486457-71684-IYUCgBU7Xw () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=486457

--- Comment #3 from Tuomas Nurmi <tuomas@norsumanageri.org> ---
Okay, thank you for the debug output!
There are multiple hints of path issues there, but especially this line is
quite telling:
amarok:         file  "/DefaultPlaylistLayouts.xml" does not exist

It should try to open something like
"/usr/share/amarok/data/DefaultPlaylistLayouts.xml", but it tries to search the
playlist layout file from system root instead - and probably other data, too.

in source code, the directory is constructed as follows:
const QString dataLocation =
QStandardPaths::locate(QStandardPaths::GenericDataLocation,                    
                              QStringLiteral("amarok/data"),
QStandardPaths::LocateDirectory);
QString configFile = dataLocation +
QStringLiteral("/DefaultPlaylistLayouts.xml");
The QStandardPaths::locate "Returns the absolute path to the first file or
directory found, otherwise returns an empty string." and
QStandardPaths::GenericDataLocation on Linux systems maps possibly to
"~/.local/share", "/usr/local/share", "/usr/share" according to Qt docs
(although they also note "The paths above should not be relied upon")

So it seems that /usr/share/amarok/data/ nor /usr/local/share/amarok/data/
don't exist. CMake installs the relevant data files under KDE_INSTALL_DATADIR,
which by default should be empty and default to /usr/share or /usr/local/share,
I think. Did you happen to use any exotic custom path settings when doing the
initial cmake configuration for the build?

Trying a new build from completely fresh build dir might be a good thing to try
(if you didn't already)
mkdir amarok-build-new && cd amarok-build-new && cmake ../amarok
-DCMAKE_INSTALL_PREFIX=`kf5-config --prefix && make && sudo make install

-- 
You are receiving this mail because:
You are the assignee for the bug.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic