Would love to try this, but I got stuck in step 1 - CMake cannot find Qt5Config.cmake, qt5-config.cmake or FindQt5.cmake. I could not locate any of them either (I have qt5 and qt5tools installed running 64 bit Haiku).
Works OK here (just build version 2.4 for gcc2h (stats up OK asking for Cliend ID and Client secret), if you are running gcc2hybrid, make sure you have Qt5 installed and switch gcc to gcc8 with “setarch x86” in Terminal
Thanks a lot. Never used haikuporter before, but managed to build it using your recipe.
Sadly, after pasting the initial spotify_qt output into otterbrowser (which gives the success message), spotify-qt crashes (segment violation) upon launch. Btw, I have Spotify Premium.
I have reported it there, but I am unsure if the author has a haiku test environment and is unable to trace the bug (speculation based on that I don’t see Haiku mentioned on the github page)
I managed to get the UI up by commenting out initialization of the playlist in createCentralWidget. But it seems the real issue is that spotifyd is not bundled with spotify-qt. So you need to build this first and then provide the path in the settings dialog of spotify-qt.
I have not tried to build Spotifyd (found at https://github.com/Spotifyd ), it seems to be built in Rust.
Interesting to see people trying to run the application under Haiku, I’m very happy to help out where I can. I’m unable to reproduce the issue myself, as it seems to work fine for me without any modifications from a clean install. If the issue is related to loading playlists, maybe the issue only occurs with certain playlist names? The QString related messages in the dumps seems to indicate something like that.
It also currently doesn’t provide an actual playback client, correct. I’m not sure if spotifyd works under Haiku, as Rust doesn’t seem very well supported there. I was thinking of using the Web Player API to provide a playback client in the application itself, but I felt like it kind of defeated the entire purpose of the app, being lightweight, so it didn’t make much sense. It also uses Widewine DRM, which is not very well supported. Spotifyd is the “officially supported” client, but any should work.
As for packaging the application, that’s very nice of you, I’ll make sure to add it in the readme. Just a few things though. Firstly, my name is spelled as “kraxarn” in all lowercase. Secondly, when calling cmake, please call it with -DCMAKE_BUILD_TYPE=Release unless you’re troubleshooting issues, and -DGIT_TAG=ver to make the current version registered in the application properly, replacing “ver” with the current version, like “v2.5”, so for example -DGIT_TAG=v2.5. CMake might fail to generate the necessary stuff otherwise. See my PKGBUILD on Arch for some info.
In my case, the crash happens as no playlists can be found. I added a check for sptPlaylists.count() > 0 to get around it:
// Load tracks in playlist
auto playlistId = settings.general.lastPlaylist;
// Default to first in list
if (playlistId.isEmpty() && sptPlaylists.count() > 0)
playlistId = sptPlaylists->at(0).id;