`path` Error when making MuseScore
I am trying to set up a working dev environment. I am using macOS 12.7.6 on a Mac Studio M1. I have made some headway after discovering the wiki page for this (as opposed to following the instructions on the README.md at the GitHub repo.) But I am still getting an error that leaves me stumped. Here is a sample of one:
/usr/local/lib/QtCore.framework/Headers/qfile.h:192:16: error: '~path' is unavailable: introduced in macOS 10.15
return QtPrivate::toFilesystemPath(symLinkTarget());
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/filesystem:968:3: note: '~path' has been explicitly marked unavailable here
~path() = default;
^
I am attaching the full listing.
Attachment | Size |
---|---|
musescore_error3.txt | 28.5 KB |
Comments
After screwing around with it, I finally got to the root of the problem. I had a couple of homebrew-installed versions of Qt separate from the one installed by the Qt Maintenance installer. I had previously installed some other packages unrelated to MuseScore that depend on Qt.
The problem is that the MuseScore build puts the
CXX_FLAG
-I/usr/local/include/
ahead of any of the Qt framework includes. This causes the cpp compiler to find the Qt headers in/usr/local/include/
instead of the ones specified by theQTDIR
environment variable. And that was causing compiler errors.I see this as a problem in the MuseScore build. It should be possible to have brew-installed version(s) of Qt and not have them interfere with the MuseScore build.