[Jessie] HowTo: Install and run Yarock Player

Share your own howto's etc. Not for support questions!

[Jessie] HowTo: Install and run Yarock Player

Postby cra1g321 » 2016-01-30 22:03

[Jessie] HowTo: Install and run Yarock Player

This how-to will provide you with the steps needed to install Yarock Player on Debian Jessie.
More info about Yarock Player: https://seb-apps.github.io/yarock/


NOTES -
These steps worked for me fine without any issues, i can't gurantee the same for everyone.
These steps will compile Yarock will all available audio back-ends (MPV, Phonon, VLC) if you only want to use one then just adjust the steps to your preference.
For example if you want to only use the VLC back-end, then don't install libmpv-dev or libphonon-dev then during compile step, only do -DENABLE_VLC=ON


1. ADD THE DEPENDENCIES REQUIRED & BUILD-ESSENTIAL & CHECKINSTALL PACKAGES

1A. Add dependencies required & build-essential package
Code: Select all
aptitude install cmake qt4-dev-tools libqjson-dev libtag1-dev libhtmlcxx-dev libqt4-sql-sqlite libvlc-dev libphonon-dev libmpv-dev build-essential checkinstall


2. DOWNLOAD THE SOURCE PACKAGE

2A. To use wget from terminal (note at the time of writing this HowTo, 1.1.5 was the latest stable version)
Code: Select all
wget https://launchpad.net/yarock/1.x/1.1.5/+download/Yarock_1.1.5_source.tar.gz

Or to download from website
https://launchpad.net/yarock/+download


3. COMPILE YAROCK PLAYER

3A. Extract the cotents of the source file
Code: Select all
tar -xzvf Yarock_1.1.5_source.tar.gz

3B. Change directory into the build folder
Code: Select all
cd Yarock_1.1.5_source/build/

3C.Compile with all audio backends (MPV, Phonon, VLC) And without QT5
Code: Select all
cmake ..  -DENABLE_VLC=ON -DENABLE_MPV=ON -DENABLE_PHONON=ON -DENABLE_QT5=OFF

3D. Create a Deb file using checkinstall (as root or sudo user)
Code: Select all
checkinstall

Follow along the checkinstall steps, personally i used the following info:

Code: Select all
0 -  Maintainer: [ cra1g321@Jessie ]
1 -  Summary: [ Yarock Music Player ]
2 -  Name:    [ yarock ]
3 -  Version: [ 1.1.5 ]
4 -  Release: [ 1 ]
5 -  License: [ GPLv3 ]
6 -  Group:   [ Multimedia ]
7 -  Architecture: [ amd64 ]
8 -  Source location: [ build ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ yarock ]
12 - Conflicts: [  ]
13 - Replaces: [  ]

You should now have Yarock Player installed on your Debian Jessie system.
If you ever wish to remove it simply do
Code: Select all
aptitude remove yarock
Last edited by cra1g321 on 2016-01-31 00:40, edited 6 times in total.
User avatar
cra1g321
 
Posts: 241
Joined: 2011-01-20 23:03

Re: [Jessie] HowTo: Install and run Yarock Player

Postby stevepusser » 2016-01-30 22:11

Is there a reason not to compile it against Qt 5?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11233
Joined: 2009-10-06 05:53

Re: [Jessie] HowTo: Install and run Yarock Player

Postby cra1g321 » 2016-01-30 22:14

stevepusser wrote:Is there a reason not to compile it against Qt 5?


Well Jessie still uses QT4 libraries as far as i know.
Edit - Oh it seems all the QT5 packages it needs are in the Jessie repos, i guess you could compile it with QT5, i'm going to try now.
User avatar
cra1g321
 
Posts: 241
Joined: 2011-01-20 23:03

Re: [Jessie] HowTo: Install and run Yarock Player

Postby stevepusser » 2016-01-30 22:23

cra1g321 wrote:
stevepusser wrote:Is there a reason not to compile it against Qt 5?


Well Jessie still uses QT4 libraries as far as i know.
Edit - Oh it seems all the QT5 packages it needs are in the Jessie repos, i guess you could compile it with QT5, i'm going to try now.


It'll work with Qt 5, I've already done deb packages for MX 15. It will even work on Wheezy with the Qt 5 in wheezy-backports. I'm pretty sure you get the same tablet-like GUI with Qt 4 or 5, so what you use comes down to personal preference.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11233
Joined: 2009-10-06 05:53

Re: [Jessie] HowTo: Install and run Yarock Player

Postby cra1g321 » 2016-01-30 22:25

stevepusser wrote:It'll work with Qt 5, I've already done deb packages for MX 15. It will even work on Wheezy with the Qt 5 in wheezy-backports. I'm pretty sure you get the same tablet-like GUI with Qt 4 or 5, so what you use comes down to personal preference.


OK, i will update the HowTo to include how to use QT5 packages also.

UPDATE
- it compiled fine but it won't play any file :?
User avatar
cra1g321
 
Posts: 241
Joined: 2011-01-20 23:03

Re: [Jessie] HowTo: Install and run Yarock Player

Postby kedaha » 2016-01-30 23:16

Thanks cra1g321 for the post.
cra1g321 wrote:3C. Install (as root)
Code: Select all
 make install

Yarock Player should now be installed on your Debian Jessie system 8)

Just to comment that it'd be better to build a DEB package & install that rather than using make install as advised, for example, in this old forum howto
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 3002
Joined: 2008-05-24 12:26

Re: [Jessie] HowTo: Install and run Yarock Player

Postby cra1g321 » 2016-01-30 23:21

kedaha wrote:Just to comment that it'd be better to build a DEB package & install that rather than using make install as advised, for example, in this old forum howto


I've very little experience compiling and have never attempted to create a deb package before. But maybe i will give it a try :)
Thanks for mentioning it.
User avatar
cra1g321
 
Posts: 241
Joined: 2011-01-20 23:03

Re: [Jessie] HowTo: Install and run Yarock Player

Postby stevepusser » 2016-01-30 23:53

Hmmm--I haven't sent 1.1.5 to the MX repos yet, because 1.1.4 would crash for me, and I really didn't like the minimized interface that 1.1.5 changed to.

The build-depends used for the Qt 5 packages were

Code: Select all
debhelper (>= 8.0),
 cmake (>= 2.8.6),
 libqt5x11extras5-dev,
 libqt5sql5-sqlite,
 qtbase5-private-dev,
 libphonon4qt5-dev,
 qt5-default,
 qttools5-dev,
 libtag1-dev,
 libechonest-dev,
 pkg-config,
 libx11-dev,
 libhtmlcxx-dev,
 libqjson-dev,
 libmpv-dev,
 libvlc-dev


You can see that that all three backends were enabled. However, the 1.1.3 version in the repo was built against Qt 4 and depends on:

Code: Select all
libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libhtmlcxx3 (>= 0.83), libmpv1 (>= 0.4.0), libphonon4 (>= 4:4.2.0), libqjson0 (>= 0.7.1), libqt4-dbus (>= 4:4.8), libqt4-network (>= 4:4.8), libqt4-sql (>= 4:4.8), libqt4-xml (>= 4:4.8), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libstdc++6 (>= 4.9), libtag1c2a (>= 1.7), libx11-6, phonon, phonon-backend-gstreamer | phonon-backend-vlc
Recommends: gstreamer1.0-plugins-good, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-ugly
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11233
Joined: 2009-10-06 05:53

Re: [Jessie] HowTo: Install and run Yarock Player

Postby cra1g321 » 2016-01-31 00:41

I updated the HowTo with step on using checkinstall, meaning the user can easily remove the player using aptitude remove or apt-get remove.
User avatar
cra1g321
 
Posts: 241
Joined: 2011-01-20 23:03

Re: [Jessie] HowTo: Install and run Yarock Player

Postby stevepusser » 2016-01-31 03:43

Checkinstall is a sort of halfway good deb packager, but it's actually easier to build proper debs if you have already debianized source:

Here's another rather unknown Qt-based music player called Sayonara, and how to make it into proper debs from debianized source.

First install the packaging tools metapackage:
Code: Select all
su -c 'apt-get install packaging-dev'


Then get the debianized Sayonara source here: https://copy.com/KDHoYscCGWnQmpKg
Put the tarball in a build folder with no spaces in the PATH to it, and extract it.
Enter the new sayonara-source folder and extract the two tarballs inside it.
Place the new debian folder inside the new sayonara-0.8.1 folder, then enter that source folder.
Open a terminal there, and for safety, check you don't have a autoremovable system due to some metapackage mess, since the pbuilder command will remove those.

Code: Select all
su -c 'apt-get -s autoremove'
If you're good, then run

Code: Select all
su -c '/usr/lib/pbuilder/pbuilder-satisfydepends'


which will automagically install the build-depends listed in /debian/control.

When done, execute:

Code: Select all
debuild -uc -us -jN
replace N with the number of processor cores you want the compile process to use, so if you want to use a quad-core to the max, use -j4. (may stress your cooling system!)

and when it's done, you have a installable sayonara_0.8.1-0 deb in /sayonara-source, which will automatically pull in any missing dependencies if you install it with gdebi.

The same general procedure can be applied to just about any already debianized source from upstream repositories or PPA repos, as long as the build and package dependencies are available in your sources.

Here's a debian folder that can be used for yarock-1.1.5, as long as you rename your downloaded yarock source tarball to yarock_1.1.5.orig.tar.xz, in order to satisfy the strict packaging naming requirements.

https://copy.com/Cv6ZCbU9qDa8FFQa
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11233
Joined: 2009-10-06 05:53


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable