Building 3.6.2 on Rapsberry Pi 400
Hi I've been trying to build musescore on my raspberrypi 400 with 64bit raspbian. I have worked my way through most of the dependency errors, but there is still one that is giving me trouble.
> Make Warning at build/FindQt5.cmake:42 (find_package):
> By not providing "FindQt5QuickTemplates2.cmake" in CMAKE_MODULE_PATH this
> project has asked CMake to find a package configuration file provided by
> "Qt5QuickTemplates2", but CMake did not find one.
>
> Could not find a package configuration file provided by
> "Qt5QuickTemplates2" with any of the following names:
>
> Qt5QuickTemplates2Config.cmake
> qt5quicktemplates2-config.cmake
>
> Add the installation prefix of "Qt5QuickTemplates2" to CMAKE_PREFIX_PATH or
> set "Qt5QuickTemplates2_DIR" to a directory containing one of the above
> files. If "Qt5QuickTemplates2" provides a separate development package or
> SDK, be sure it has been installed.
> Call Stack (most recent call first):
> CMakeLists.txt:84 (include)
Now it will build without this, but of course the Pallets menu will not work.
Thing is, after a bunch of searching, QT5QuickTemplates2 should have been part of
qtquickcontrols2-5-dev at least according to here - (https://packages.debian.org/sid/amd64/qtquickcontrols2-5-dev/filelist).
(Which I had already installed to fix the similar warning about qtquickcontrols)
Unless raspbian messed up the package somehow?
Does anyone have an idea for a workaround? Preferably without compiling the whole QT stack on my own
Side note I saw another thread where it was recommended to disable BUILD_WEBENGINE for raspberry pi
but as of now, it seems qtwebengine5-dev is an available package in raspbian, and seems to work just fine for its features.
Comments
I still don't know... any cmake gurus with some advice would be greatly appreciated.
I found the libQT5QuickTemplates2.so in the appropriate /usr/lib/aarch64-linux-gnu folder. And headers in the /usr/include/aarch64-linux-gnu/qt5 folder. So it looks like it installed correctly.
Is this some sort of bug with CMake? Any way for me to force it to find it?
I've tried
export CMAKE_MODULE_PATH=/usr/lib/aarch64-linux-gnu
but no luck
In reply to I still don't know... any… by Joshua Pettus
Looks like compiling for ARM is not the issue as this person has been trying to do the same for x86 linux.
https://musescore.org/en/node/298311
I assume it compiles on linux just fine, what gives?
In reply to Looks like compiling for ARM… by Joshua Pettus
Ugg... I finally find that there is an arm64 snap available for musescore (not really a fan of snap, but it's better than nothing). But whoever went through all the trouble of making it, ended up making a development build of 3.6.2.... (Not saying anyone here did that) but I mean why? Why go through all that effort, fail, then say, "That's good enough, my job is done," then walk away? Do they think people won't notice? Sorry, just a little frustrated...
In reply to Ugg... I finally find that… by Joshua Pettus
A new update in my little adventure. Tried to do the responsible thing and let snapcraft/canonical know their package was accidentally made as a release build and how to fix it. Only they pointed me back to here. But I know musescore only supports the appimage release, and it must have be made by someone at canonical. Unless I'm wrong about that... Somehow I don't think I'm going to get much headway there.
Which leads me back to my cmake problem. Has no one else hit this?
In reply to A new update in my little… by Joshua Pettus
One more little bump on a prayer as things get buried really quickly on this forum. In case that knowledgeable person does happen to see this. Maybe no one has any ideas. That's fair. But I'll hope one more time.
According to https://launchpad.net/musescore-snap the maintainer is Mark Peña aka "Pachulo"; but from his own post on the snapcraft forum he is no longer maintaining it and there was one other person that tried to re-build it but ran into snap issues.
So neither MuseScore nor Canonical made the snap; it was a community contribution which seems to be not maintained.
I gave this another try and finally got it to work
So it seems the could not find Qt5QuickTemplates2 was a red herring all this time...
When I ran mscore in a terminal I saw it couldn't open pallets because of control.module or something like that. Thing was I had QT5QuickControl2 already installed. Some digging arround the web pointed me to a whole new set of packages i needed:
qml-module-qtquick-controls2
qml-module-qtquick-templates2
qml-module-qtqml-models2
Then the pallet menu worked
In reply to I gave this another try and… by Joshua Pettus
Great, so does that you mean you got it working?
Meanwhile, there is now an unofficial 3.6.2 build for ARM you can get from https://drive.google.com/file/d/1a4s5vD9dWo2WK1dwipxCfNtxFVjt6eyY/view?…. Should be basically the same as your build but packages as an AppImage for easy installation (run with the "install" option).
In reply to Great, so does that you mean… by Marc Sabatella
Thanks Marc!
Lol figures...I can still give it a try if you like. Dunno if it supports it but Im on 64bit raspberry pi os which is in beta still. Still Musescore is not the easiest to compile, so a good app image would be great.
Anyway yes, i was successful on my end once i had the right packages
In reply to Thanks Marc! Lol figures...I… by Joshua Pettus
We can thank @ABL for that build, and it was only around a week or so ago that it came together. I was wanting it for ARM-based Chromebooks, but I assume it should work for a Pi as well - might be nice to get verification of that though.
In reply to We can thank @ABL for that… by Marc Sabatella
I finally was able to give it a try. Yup, it works great on a Raspberry Pi! He did a great job. Looks like it is indeed ARM64. As such, It should only work with the Raspberry Pi 4 and 400 with a 64bit OS installed. Still this is great!
In reply to I finally was able to give… by Joshua Pettus
There's a 32-bit version somewhere too, I just didn't put it on my page because as far as I know there are no Chromebooks using that type of architecture, and I'd have no way of testing it.
See https://musescore.org/en/node/306066#comment-1088959