<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">​FYI​</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><br><div class="gmail_quote"><div dir="ltr">---------- Forwarded message ---------<br>From: Eoin O'Neill <<a href="mailto:eoinoneill1991@gmail.com">eoinoneill1991@gmail.com</a>><br>Date: Thu, 7 Jun 2018 at 09:32<br>Subject: Difficulties Building From Source Code<br>To:  <<a href="mailto:amarok@kde.org">amarok@kde.org</a>><br></div><br><br><div dir="ltr"><div>So I've recently been trying to build amarok (master branch) from source and I've come across a lot of roadblocks along the way. I've been receiving a lot of help on IRC thanks to the user heirecka, but I thought I would share some places where I had (and continue to have) difficulties when it comes to building from source. <br></div><div><br></div><div>
<div>I'm running Kubuntu 18.04 (KDE environment) and <a href="https://community.kde.org/Amarok/Development/Development_HowTo" target="_blank">I've been following this guide</a> which resulted in a few roadblocks along the way. Firstly, some dependencies labeled there have either changed names or are no longer the correct version. With regards to CMake, there are issues where the option parameters no longer match the current build's CMAKE options. Specifically, options such as '
KDE4_BUILD_TESTS=ON ' are now renamed to '-DBUILD_TESTING=ON'. There are also issues regarding the directory to put your shell scripts in and also the environment variables you need to export. For instance, the documentation says you need to do something like the following:</div><div>
<pre>mkdir ~/.kde/env  # okay if it exists
echo 'export KDEDIR=$HOME/kde' >> $HOME/.kde/env/myenv.sh
echo 'export KDEDIRS=$KDEDIR' >> $HOME/.kde/env/myenv.sh</pre>

However, this seems to be with KDE4 in mind. Modernly, it seems you need to do something more like the following:</div><div><br></div><div><span style="font-family:monospace,monospace">mkdir ~/.config/plasma-workspace/env</span></div><div><span style="font-family:monospace,monospace">echo 'export QT_PLUGIN_PATH="${HOME}/kde/lib/target/plugins/:${QT_PLUGIN_PATH}"' >> 
 ~/.config/plasma-workspace/env/myenv.sh</span><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">
echo 'export LD_LIBRARY_PATH="${HOME}/kde/lib/target/:${LD_LIBRARY_PATH}"'

>> 
~/.config/plasma-workspace/env/myenv.sh</span></div><div><span style="font-family:monospace,monospace">
echo 'export XDG_DATA_DIRS="${HOME}/kde/share/:${XDG_DATA_DIRS}"'

>> 
~/.config/plasma-workspace/env/myenv.sh <br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"></span>Now with those changes in mind, I was able to get a version of amarok built and running. <br></div><div><br></div><div>However, I continue to have a few problems regarding qml widgets. I keep getting errors regarding missing /kpackage directory which makes it so that many of the dockable elements are missing or not working as intended. Also, my current build will no longer work properly if I try to run gmock testing (-DBUILD_TESTING=ON) despite having the source code on my system.<br></div></div><div><br></div><div>Many other guides on the internet aren't much better at giving build instructions as they date back to 2009. I think Amarok has a potentially strong future, but it would actually help to have an up to date build guide written by someone familiar with the requirements needed to build modern Amarok from source. <br></div></div>
</div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div style="text-align:left">Proud member of the Amarok and KDE Community</div><div style="text-align:left">Protect your freedom and join the Fellowship of FSFE:</div><div style="text-align:left"><a href="http://www.fsfe.org" target="_blank">http://www.fsfe.org</a><a href="http://www.fsfe.org" target="_blank"><br></a></div><div style="text-align:left">Please don't send me proprietary file formats,</div><div style="text-align:left">use ISO standard ODF instead (ISO/IEC 26300)</div></div></div></div></div>