Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-sound/cantata not showing devices options
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 50

PostPosted: Sun Jan 24, 2016 5:36 pm    Post subject: media-sound/cantata not showing devices options Reply with quote

I am using funtoo, just to get that out of the way first of all, I hope this is the part of the forum I can post in to seek help.

Cantata has a feature which allows you to transfer music files over to devices, it there should be an icon for it on the left hand side and a context menu item for it when right clicking on an album/artist. As far as I know this is enabled by the 'udisks' and/or 'mtp' USE flags. I have built it with all flags enabled (except for irrelevant linguas) but I don't have the devices features.

I noticed on the project's sources that there was another version (1.5.2) so I version bumped it without any trouble but still no change.

I have built it with these flags:

Code:
 + + cdda            : Add Compact Disk Digital Audio (Standard Audio CD) support
 + + cddb            : Access cddb servers to retrieve and submit information about compact disks
 + + dynamic         : <unknown>
 + + http-server     : <unknown>
 - - kde             : Add support for KDE (K Desktop Environment)
 + + lame            : Prefer using LAME libraries for MP3 encoding support
 - - linguas_cs      : Czech locale
 - - linguas_de      : German locale
 + + linguas_en_GB   : English locale for Britain
 - - linguas_es      : Spanish locale
 - - linguas_hu      : Hungarian locale
 - - linguas_ko      : Korean locale
 - - linguas_pl      : Polish locale
 - - linguas_ru      : Russian locale
 - - linguas_zh_CN   : Chinese locale for Peoples Republic of China
 + + mtp             : Enable support for Media Transfer Protocol
 + + musicbrainz     : Lookup audio metadata using MusicBrainz community service (musicbrainz.org)
 + + online-services : <unknown>
 + + qt5             : Add support for the Qt 5 application and UI framework
 + + replaygain      : <unknown>
 + + streams         : <unknown>
 + + taglib          : Enable tagging support with taglib
 + + udisks          : Enable storage management support (automounting, volume monitoring, etc)


I wondered if udisks flags were the cause but I don't see anything there:

Code:
 - - cryptsetup    : Enable sys-fs/cryptsetup support
 - - debug         : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                     backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 + + gptfdisk      : Pull in sys-apps/gptfdisk for sgdisk command as used by partitioning functionality
 + + introspection : Use dev-libs/gobject-introspection for introspection


These got pulled in when enabled udisks and mtp so just for good measure:

Polkit USE flags

Code:
 - - examples      : Install examples, usually source code
 - - gtk           : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 - - introspection : Add support for GObject based introspection
 - - jit           : Enable just-in-time compilation for improved performance. May prevent use of some PaX
                     memory protection features in Gentoo Hardened.
 - - kde           : Add support for KDE (K Desktop Environment)
 + + nls           : Add Native Language Support (using gettext - GNU locale utilities)
 + + pam           : Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
 - - test          : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles
                     this internally, so don't set it in make.conf/package.use anymore


Consolekit USE flags

Code:
 + + acl           : Add support for Access Control Lists
 - - debug         : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                     backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc           : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package
                     instead of globally
 + + pam           : Add support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
 + + policykit     : Use the PolicyKit framework (sys-auth/polkit) to get authorization for suspend/shutdown.
 - - systemd-units : Install systemd unit files to replace the modern functionality of logind in
                     sys-apps/systemd. Not recommended.
 - - test          : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles
                     this internally, so don't set it in make.conf/package.use anymore



I'm not sure what else to look at, I used to have this working but I turned off the udisks and mtp flags because I wasn't using those features and now I can't seem to get them back.
Does anyone have any idea about what might be wrong here?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6312
Location: /usr/lib64/lv2

PostPosted: Tue Jan 26, 2016 4:34 pm    Post subject: Reply with quote

I'd like to follow this thread.

I just installed Cantata and the first thing I noticed is that mpd itself is not a dependency. Considering that Cantata's sole purpose is to interface with mpd, this should be filed as an ebuild bug.

EDIT:

I see the device icon on the left. Here is my emerge info for Cantata:

Code:

[ebuild   R   ~] media-sound/cantata-1.5.1:4::gentoo  USE="cdda cddb lame musicbrainz taglib udisks (-aqua) -dynamic -http-server -kde -mtp -online-services -qt5 -replaygain -streams" LINGUAS="-cs -de -en_GB -es -hu -ko -pl -ru -zh_CN" 0 KiB

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
amair
n00b
n00b


Joined: 12 Aug 2003
Posts: 54

PostPosted: Wed Jan 27, 2016 7:30 am    Post subject: Reply with quote

Hi,
audiodef wrote:
I'd like to follow this thread.

I just installed Cantata and the first thing I noticed is that mpd itself is not a dependency. Considering that Cantata's sole purpose is to interface with mpd, this should be filed as an ebuild bug.

you don't have to use a local MPD, you can also control a MPD server in your network. I'd suggest a USE flag for it.

Regards,
Andreas
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6312
Location: /usr/lib64/lv2

PostPosted: Thu Jan 28, 2016 11:20 pm    Post subject: Reply with quote

amair wrote:

you don't have to use a local MPD, you can also control a MPD server in your network. I'd suggest a USE flag for it.


That's a good idea. :)
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 50

PostPosted: Fri Jan 29, 2016 2:22 am    Post subject: Reply with quote

I think it is possible to use it without mpd at all by using the personal collection feature.

Still no joy in devices for me. I noticed there has been a v2.0 release just a few days ago, I built it manually and it shows the devices icon so I'm really stumped. I tried to build the version in portage manually too but that didn't have the devices. I have no idea what's causing this but for now I'll just have to transfer files using the v2 when it need to.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6312
Location: /usr/lib64/lv2

PostPosted: Fri Jan 29, 2016 2:02 pm    Post subject: Reply with quote

I'm trying to tweak the ebuild for Cantata 2.0. Do you have a direct src_uri?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 50

PostPosted: Fri Jan 29, 2016 2:09 pm    Post subject: Reply with quote

audiodef wrote:
I'm trying to tweak the ebuild for Cantata 2.0. Do you have a direct src_uri?

It would be one of these I suppose https://github.com/CDrummond/cantata/releases

It seems to need vlc now, or at least a lib from it, just in case you get build failures.
I'm also missing some icons so I'm not sure if I'm missing a dependency or it's a bug, I'd be very interested in the updated ebuild if you can get it working.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6312
Location: /usr/lib64/lv2

PostPosted: Sat Jan 30, 2016 1:12 am    Post subject: Reply with quote

No build failures dropping the new SRC_URI into the existing ebuild. :)

Just name the ebuild cantata-2.0.0.ebuild.

Code:

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

KDE_REQUIRED="optional"
PLOCALES="cs de en_GB es hu ko pl ru zh_CN"
inherit kde4-base l10n

DESCRIPTION="Featureful and configurable Qt client for the music player daemon (MPD)"
HOMEPAGE="https://github.com/cdrummond/cantata"
SRC_URI="https://github.com/CDrummond/cantata/releases/download/v${PV}/${P}.tar.bz2"
#SRC_URI="https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60UktwaTRMTjRIUW8 -> ${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="cddb cdda dynamic http-server kde lame mtp musicbrainz online-services qt5 replaygain streams taglib udisks"
REQUIRED_USE="
   cddb? ( cdda taglib )
   cdda? ( udisks || ( cddb musicbrainz )  )
   lame? ( cdda taglib )
   mtp? ( taglib udisks )
   musicbrainz? ( cdda taglib )
   online-services? ( taglib )
   qt5? ( !kde )
   replaygain? ( taglib )
"

RDEPEND="
   sys-libs/zlib
   x11-libs/libX11
   kde-frameworks/oxygen-icons
   cdda? ( media-sound/cdparanoia )
   cddb? ( media-libs/libcddb )
   kde? ( $(add_kdeapps_dep kwalletd) )
   lame? ( media-sound/lame )
   mtp? ( media-libs/libmtp )
   musicbrainz? ( media-libs/musicbrainz:5 )
   qt5? (
      dev-qt/qtconcurrent:5
      dev-qt/qtcore:5
      dev-qt/qtdbus:5
      dev-qt/qtgui:5
      dev-qt/qtnetwork:5
      dev-qt/qtsvg:5
      dev-qt/qtwidgets:5
      dev-qt/qtxml:5
   )
   !qt5? (
      dev-libs/qjson
      dev-qt/qtcore:4
      dev-qt/qtdbus:4
      dev-qt/qtgui:4
      dev-qt/qtsvg:4
   )
   replaygain? (
      media-sound/mpg123
      virtual/ffmpeg
   )
   taglib? (
      media-libs/taglib[asf,mp4]
      media-libs/taglib-extras
      !kde? ( udisks? ( sys-fs/udisks:2 ) )
   )
"
DEPEND="${RDEPEND}
   sys-devel/gettext
   qt5? ( dev-qt/linguist-tools:5 )
"
RDEPEND="${RDEPEND}
   dynamic? (
      dev-lang/perl[ithreads]
      dev-perl/URI
   )
"

# cantata has no tests
RESTRICT="test"

src_prepare() {
   kde4-base_src_prepare

   rm -rf 3rdparty/qtsingleapplication/ || die
   # qjson ebuild does not support Qt5 yet
   use qt5 || { rm -rf 3rdparty/qjson/ || die ;}
   use kde && { rm -rf 3rdparty/solid-lite/ || die ;}

   l10n_find_plocales_changes 'po' '' '.po'
}

src_configure() {
   local langs="$(l10n_get_locales)"

   local mycmakeargs=(
      -DCANTATA_TRANSLATIONS="${langs// /;}"
      $(cmake-utils_use_enable cdda CDPARANOIA)
      $(cmake-utils_use_enable cddb)
      $(cmake-utils_use_enable dynamic)
      $(cmake-utils_use_enable http-server HTTP_SERVER)
      $(cmake-utils_use_enable kde)
      $(cmake-utils_use_enable kde kwallet)
      $(cmake-utils_use_enable lame)
      $(cmake-utils_use_enable mtp)
      $(cmake-utils_use_enable musicbrainz)
      $(cmake-utils_use_enable online-services ONLINE_SERVICES)
      $(cmake-utils_use_enable streams)
      $(cmake-utils_use_enable qt5)
      $(cmake-utils_use_enable replaygain FFMPEG)
      $(cmake-utils_use_enable replaygain MPG123)
      $(cmake-utils_use_enable taglib)
      $(cmake-utils_use_enable taglib TAGLIB_EXTRAS)
      $(cmake-utils_use_enable udisks DEVICES_SUPPORT)
      -DENABLE_HTTP_STREAM_PLAYBACK=OFF
      -DENABLE_REMOTE_DEVICES=OFF
      -DENABLE_UDISKS2=ON
      -DUSE_SYSTEM_MENU_ICON=OFF
   )

   kde4-base_src_configure
}

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
spectromas
n00b
n00b


Joined: 13 Jul 2014
Posts: 50

PostPosted: Sat Jan 30, 2016 2:16 pm    Post subject: Reply with quote

Thanks audiodef, that's perfect! So weird that when I built it manually it was asking for libvlc but doesn't seem to need it now with the ebuild. It also doesn't have a problem with missing icons either now.
If this eventually gets an official version bump I think the qt5 flag needs to be removed and added as a dependency instead, I forgot that I had that disabled and it failed to build (unless I'm missing something for qt4 somewhere).
Thank you very much though, really appreciate you sharing that.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6312
Location: /usr/lib64/lv2

PostPosted: Sat Jan 30, 2016 2:31 pm    Post subject: Reply with quote

You're welcome! I didn't do anything other than drop in a new SRC_URI, so it might need work based on 2.0's actual requirements. It might actually need libvlc for certain features, and other things as well. But it worked for both of us, so it's a good start. :)
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum