Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Jessie] HowTo: Install and run Yarock Player

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

[Jessie] HowTo: Install and run Yarock Player

#1 Post by cra1g321 »

[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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#2 Post by stevepusser »

Is there a reason not to compile it against Qt 5?
MX Linux packager and developer

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

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

#3 Post by cra1g321 »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#4 Post by stevepusser »

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.
MX Linux packager and developer

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

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

#5 Post by cra1g321 »

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 :?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

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

#6 Post by kedaha »

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
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

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

#7 Post by cra1g321 »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#8 Post by stevepusser »

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
MX Linux packager and developer

User avatar
cra1g321
Posts: 241
Joined: 2011-01-20 23:03

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

#9 Post by cra1g321 »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

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

#10 Post by stevepusser »

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
MX Linux packager and developer

Post Reply