Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify plugin still requires QtCore 4 to be installed #6106

Open
2 of 3 tasks
origintopleft opened this issue Jul 20, 2018 · 7 comments
Open
2 of 3 tasks

Spotify plugin still requires QtCore 4 to be installed #6106

origintopleft opened this issue Jul 20, 2018 · 7 comments

Comments

@origintopleft
Copy link

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

  • I checked the issue tracker for similar issues
  • I checked the changelog if the issue is already resolved
  • I tried the latest Clementine build from here

System information

Please provide information about your system and the version of Clementine used.

  • Operating System: Gentoo Linux ~amd64
  • Clementine version: 1.3.1_p20180523 (c01b7bc)

Expected behaviour / actual behaviour

I removed Qt4 from my system this week because Gentoo's dropping support for it entirely and nothing seemed to actually be using it anymore anyway. Then Spotify support broke.

/home/lavacano/.config/Clementine/spotifyblob/version16-64bit/blob: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory

Steps to reproduce the problem (only for bugs)

  1. Uninstall Qt4.
@origintopleft origintopleft changed the title Spotify plugin apparently still requires QtCore 4 to be installed Spotify plugin still requires QtCore 4 to be installed Jul 20, 2018
@origintopleft
Copy link
Author

(on reread, "apparently" sounded overly snarky, my bad)

@origintopleft
Copy link
Author

Uninstalling the version managed by Gentoo's Portage and building my own from git (qt5 branch, cmake -DHAVE_SPOTIFY_BLOB=1 ..) appears to fix it (but man, it's difficult finding a libspotify download nowadays). Qt4 remains uninstalled.

@ghost
Copy link

ghost commented Jul 28, 2019

Nice @lavacano201014, how did you bypass:

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1324 (message):
Found unsuitable Qt version "5.12.4" from /usr/bin/qmake, this code
requires Qt 4.x

When compiling from source to get it working properly on your Gentoo setup? I really want my clementine to support spotify on my gentoo setup, using clementine in wine atm and that sucks!

@ghost
Copy link

ghost commented Jul 28, 2019

This is what I have tried:

 cd /usr/portage/media-sound/clementine
 sed -i '133 i -DHAVE_SPOTIFY_BLOB=1' clementine-9999.ebuild
 sed -i 's/-DENABLE_SPOTIFY_BLOB=OFF/-DENABLE_SPOTIFY_BLOB=ON/g' clementine-9999.ebuild
 ebuild /usr/portage/media-sound/clementine/clementine-9999.ebuild clean manifest merge

This failed cause:

  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files: PROTOBUF_STATIC_LIBRARY
  linked by target "clementine-spotifyblob" in directory /tmp/portage/media-sound/clementine-   9999/work/clementine-9999/ext/clementine-spotifyblob

Then I did

   git clone https://github.com/clementine-player/Clementine
   cp -r Clementine/ext/clementine-spotifyblob/ /tmp/portage/media-sound/clementine-9999/work/clementine-9999/ext/
   ebuild /usr/portage/media-sound/clementine/clementine-9999.ebuild merge

Then it failed cause:

-- Checking for module 'libspotify>=12.1.45'
-- No package 'libspotify' found

Then I did:

eselect repository list|grep palmer
eselect repository set 274
eix-sync; eix-update
emerge =dev-libs/libspotify-12.1.51
ebuild /usr/portage/media-sound/clementine/clementine-9999.ebuild merge

And now I am stuck and curios how I can continue from here:

-- Checking for module 'libspotify>=12.1.45'
--   Found libspotify, version 12.1.51
-- Using system taglib library
CMake Error at ext/clementine-spotifyblob/CMakeLists.txt:31 (qt4_wrap_cpp):
 Unknown CMake command "qt4_wrap_cpp".

EDIT:

Finally could merge the ebuild, but now I am stuck again with:

~/Clementine/spotifyblob/version16-64bit/blob: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory

When I am trying to log in on spotify.

@gbrauen
Copy link

gbrauen commented Jul 17, 2020

This is an old issue but I just upgraded to Ubuntu 20.04 which has removed libQTCore.so.4 from repository. There is a PPA that lets you install it.

How-to: install libQTCore.so.4 on Ubuntu 20.04

@gyu-don
Copy link

gyu-don commented Apr 26, 2021

The latest repository seems not dependent on Qt4, however, when downloading the Spotify plugin from "Configure", the blob still requires Qt4.

I tried build from source and copy the Spotify plugin to $HOME/.config/Clementine/spotifyblob/version16-64bit/blob. It worked well. However, it's not an easy way. I'm grad if downloading from Configure works well.

@Trojan295
Copy link

I can confirm that building the spotifyblob from source using libspotify from https://github.com/mopidy/libspotify-archive works on Ubuntu 21.04. Just download the libspotify from this repo and make install should install it. Then compile and install Clementine and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants