what qt software do I need to compile MuseScore

• Jul 15, 2016 - 09:40

I'm trying to compile MuseScore on my work computer (which is a macbook pro). I installed the dev environment long ago on my home computer, but I've forgotten the details.

What part of qt do I need to install?

I found this comment on https://musescore.org/en/developers-handbook/compilation/compile-instru…
Is it still up to date?

> Qt 5.6 is shipped as a online installer, suitable for 10.7+.
> Download, open the DMG and run the online installer. By default it
> will install Qt 5.6 in your home directory.


Comments

In reply to by jim.newton.562

hmmm. I seem to get the same error with Qt 5.6 as with 5.7, perhaps it is not related to Qt.

[johan:~/OpenSource/MuseScore] jnewton% make clean
rm -rf build.debug build.release
rm -rf win32build win32install
[johan:~/OpenSource/MuseScore] jnewton% make -f Makefile.osx release
mkdir build.release; \
cd build.release; \
cmake -DCMAKE_INSTALL_PREFIX="../applebuild" -DCMAKE_BUILD_TYPE=RELEASE \
.. -G Xcode; \
xcodebuild -project mscore.xcodeproj -target lrelease; \
xcodebuild -project mscore.xcodeproj -configuration Release -target ALL_BUILD ; \

-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
CMake Warning at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:179 (message):
Ignoring CMAKE_OSX_SYSROOT value:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

because the directory does not exist.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:20 (project)

-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "gl.h" in
"/System/Library/Frameworks/OpenGL.framework/Headers;/System/Library/Frameworks/AGL.framework/Headers".
Call Stack (most recent call first):
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:144 (include)
build/FindQt5.cmake:30 (find_package)
CMakeLists.txt:54 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/jnewton/OpenSource/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66
[johan:~/OpenSource/MuseScore] jnewton%

In reply to by jim.newton.562

There does not seem to be a file named Headers, neither in /System/Library/Frameworks/AGL.framework nor in /System/Library/Frameworks/OpenGL.framework

[johan:/System/Library/Frameworks] jnewton% pwd
pwd
/System/Library/Frameworks
[johan:/System/Library/Frameworks] jnewton% ls -l AGL.framework OpenGL.framework
ls -l AGL.framework OpenGL.framework
AGL.framework:
total 16
lrwxr-xr-x 1 root wheel 20 May 18 10:53 AGL -> Versions/Current/AGL
lrwxr-xr-x 1 root wheel 26 May 18 10:53 Resources -> Versions/Current/Resources
drwxr-xr-x 4 root wheel 136 May 18 10:56 Versions

OpenGL.framework:
total 24
lrwxr-xr-x 1 root wheel 26 May 18 10:53 Libraries -> Versions/Current/Libraries
lrwxr-xr-x 1 root wheel 23 May 18 10:53 OpenGL -> Versions/Current/OpenGL
lrwxr-xr-x 1 root wheel 26 May 18 10:53 Resources -> Versions/Current/Resources
drwxr-xr-x 4 root wheel 136 May 18 10:55 Versions
[johan:/System/Library/Frameworks] jnewton%

In reply to by schepers

OK, I ran Xcode, and indeed it wanted to install a bunch of stuff, indicating to me that I had not yet run Xcode on this mac since I installed the OS some time ago. Cool.

Just to make sure I also did "git pull origin master" before recompiling.

Now when try to remake MuseScore, it claims "-- Check for working C compiler using: Xcode -- works", but the compilation still fails because of the missing gl.h file.

Here is the output:

[johan:~/OpenSource/MuseScore] jnewton% make clean
rm -rf build.debug build.release
rm -rf win32build win32install
[johan:~/OpenSource/MuseScore] jnewton% make -f Makefile.osx release
mkdir build.release; \
cd build.release; \
cmake -DCMAKE_INSTALL_PREFIX="../applebuild" -DCMAKE_BUILD_TYPE=RELEASE \
.. -G Xcode; \
xcodebuild -project mscore.xcodeproj -target lrelease; \
xcodebuild -project mscore.xcodeproj -configuration Release -target ALL_BUILD ; \

-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
CMake Warning at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:179 (message):
Ignoring CMAKE_OSX_SYSROOT value:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

because the directory does not exist.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:20 (project)

-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "gl.h" in
"/System/Library/Frameworks/OpenGL.framework/Headers;/System/Library/Frameworks/AGL.framework/Headers".
Call Stack (most recent call first):
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:144 (include)
build/FindQt5.cmake:30 (find_package)
CMakeLists.txt:54 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/jnewton/OpenSource/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66
[johan:~/OpenSource/MuseScore] jnewton%

In reply to by ABL

It indeed appears that step had been omitted.
So I went back and did it. "xcode-select --install". This claimed to be installing several things.

However, when I try to make again, I seem to advance to the next error. Do I need to set CMAKE_OSX_SYSROOT or CMAKE_OSX_DEPLOYMENT_TARGET before running make, or is the makefile supposed do do this itself?

CMake Error at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:211 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.7' but CMAKE_OSX_SYSROOT:

   ""

  is not set to a MacOSX SDK with a recognized version.  Either set
  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
  empty.

------------ here is the entire log----------------


[johan:~/OpenSource/MuseScore] jnewton% make clean
rm -rf build.debug build.release
rm -rf win32build win32install
[johan:~/OpenSource/MuseScore] jnewton% make -f Makefile.osx release
mkdir build.release;                               \
    cd build.release;                                  \
    cmake -DCMAKE_INSTALL_PREFIX="../applebuild" -DCMAKE_BUILD_TYPE=RELEASE \
          .. -G Xcode; 			       \
    xcodebuild -project mscore.xcodeproj -target lrelease;                            \
		 xcodebuild -project mscore.xcodeproj -configuration Release -target ALL_BUILD ;    \

-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
CMake Warning at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:179 (message):
  Ignoring CMAKE_OSX_SYSROOT value:

   /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

  because the directory does not exist.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:20 (project)


-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- ALSA support disabled
-- PulseAudio support disabled
-- Found lame: /usr/local/Cellar/lame/3.99.5/lib/libmp3lame.dylib
-- JACK (Jack Audio Connection Kit) >= 0.98.0 found. jack support enabled.
-- PortAudio found. PortAudio support enabled. INCDIR /usr/local/Cellar/portaudio/19.20140130/include, LIBDIR /usr/local/Cellar/portaudio/19.20140130/lib, LIB -L/usr/local/Cellar/portaudio/19.20140130/lib -lportaudio -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
libvorbis detected /usr/local/Cellar/libvorbis/1.3.5/include /usr/local/Cellar/libvorbis/1.3.5/lib -L/usr/local/Cellar/libvorbis/1.3.5/lib -lvorbis
libogg detected /usr/local/Cellar/libogg/1.3.2/include /usr/local/Cellar/libogg/1.3.2/lib -L/usr/local/Cellar/libogg/1.3.2/lib -logg
libsndfile detected /usr/local/Cellar/libsndfile/1.0.26/include /usr/local/Cellar/libsndfile/1.0.26/lib -L/usr/local/Cellar/libsndfile/1.0.26/lib -lsndfile
-- Creating directory /Users/jnewton/OpenSource/MuseScore/build.release/include/freetype/config
-- Creating file /Users/jnewton/OpenSource/MuseScore/build.release/include/freetype/config/ftconfig.h
-- Looking for unistd.h
CMake Warning at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:143 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.7' but the matching SDK does not exist
  at:

   "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"

  Instead using SDK:

   "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"

  matching the host OS X version.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:3 (project)


CMake Error at /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/Platform/Darwin.cmake:211 (message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.7' but CMAKE_OSX_SYSROOT:

   ""

  is not set to a MacOSX SDK with a recognized version.  Either set
  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
  empty.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.0.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:3 (project)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!
See also "/Users/jnewton/OpenSource/MuseScore/build.release/CMakeFiles/CMakeOutput.log".
xcodebuild: error: 'mscore.xcodeproj' does not exist.
xcodebuild: error: 'mscore.xcodeproj' does not exist.
make: *** [release] Error 66
[johan:~/OpenSource/MuseScore] jnewton% 

In reply to by jim.newton.562

i tried "brew upgrade cmake" and it did update the version apparently to 3.6.0


[johan:~/OpenSource/MuseScore] jnewton% brew upgrade cmake
==> Upgrading 1 outdated package, with result:
cmake 3.6.0_1
==> Upgrading cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.6.0_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.6.0_1.el_capitan.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary

In reply to by jim.newton.562

And now when I recompile MuseScore, I think it gets much further before failing to compile.


In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:508:14: error: use of undeclared identifier 'Q_NULLPTR'
    { return Q_NULLPTR; }
             ^
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:679:33: error: use of undeclared identifier 'Q_NULLPTR'
        : m_type(typ), m_object(Q_NULLPTR)
                                ^
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:717:54: error: no type named 'State' in 'QAccessible'; did you mean
      'QState'?
    inline QAccessibleStateChangeEvent(QObject *obj, QAccessible::State state)
                                                     ^~~~~~~~~~~~~~~~~~
                                                     QState
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:3:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGuiDepends:3:
In file included from /usr/local/include/QtCore/QtCore:9:
/usr/local/include/QtCore/qstate.h:61:21: note: 'QState' declared here
class Q_CORE_EXPORT QState : public QAbstractState
                    ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:722:69: error: no type named 'State' in 'QAccessible'; did you mean
      'QState'?
    inline QAccessibleStateChangeEvent(QAccessibleInterface *iface, QAccessible::State state)
                                                                    ^~~~~~~~~~~~~~~~~~
                                                                    QState
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:3:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGuiDepends:3:
In file included from /usr/local/include/QtCore/QtCore:9:
/usr/local/include/QtCore/qstate.h:61:21: note: 'QState' declared here
class Q_CORE_EXPORT QState : public QAbstractState
                    ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:729:5: error: no type named 'State' in 'QAccessible'; did you mean
      'QState'?
    QAccessible::State changedStates() const {
    ^~~~~~~~~~~~~~~~~~
    QState
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:3:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGuiDepends:3:
In file included from /usr/local/include/QtCore/QtCore:9:
/usr/local/include/QtCore/qstate.h:61:21: note: 'QState' declared here
class Q_CORE_EXPORT QState : public QAbstractState
                    ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:734:5: error: no type named 'State' in 'QAccessible'; did you mean
      'QState'?
    QAccessible::State m_changedStates;
    ^~~~~~~~~~~~~~~~~~
    QState
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:3:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGuiDepends:3:
In file included from /usr/local/include/QtCore/QtCore:9:
/usr/local/include/QtCore/qstate.h:61:21: note: 'QState' declared here
class Q_CORE_EXPORT QState : public QAbstractState
                    ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:975:24: error: token is not a valid binary operator in a
      preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 0)
    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:5:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessiblebridge.h:62:56: error: use of undeclared identifier 'Q_NULLPTR'
    explicit QAccessibleBridgePlugin(QObject *parent = Q_NULLPTR);
                                                       ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:6:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessibleobject.h:52:25: error: expected ';' at end of declaration list
    bool isValid() const Q_DECL_OVERRIDE;
                        ^
                        ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.

** BUILD FAILED **


The following build commands failed:
	ProcessPCH++ /var/folders/ry/dmz1d8k97sv7hlfy0fr7zcnc0000gq/C/com.apple.DeveloperTools/6.4-6E35b/Xcode/SharedPrecompiledHeaders/all-bmhgvxpyyicglmbwncifpjmotwbc/all.h.pch build.release/all.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65
[johan:~/OpenSource/MuseScore] jnewton% 

In reply to by jim.newton.562

I also tried to brew upgrade all: "brew upgrade". It did indeed upgrade lots and lots of things. Then after running make again I still get compilation errors.

                                                   ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:6:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessibleobject.h:52:25: error: expected ';' at end of declaration list
    bool isValid() const Q_DECL_OVERRIDE;
                        ^
                        ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

** BUILD FAILED **


The following build commands failed:
	ProcessPCH++ /var/folders/ry/dmz1d8k97sv7hlfy0fr7zcnc0000gq/C/com.apple.DeveloperTools/6.4-6E35b/Xcode/SharedPrecompiledHeaders/all-ayqwsjxjhehoffbbhdkdnhqliwkl/all.h.pch build.release/all.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65
[johan:~/OpenSource/MuseScore] jnewton% 

In reply to by [DELETED] 5

hmmm, good question. Do you see a clue of that in the output?

Looks like you may be right.

[johan:~/OpenSource/MuseScore] jnewton% brew info qt
qt: stable 4.8.7 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt/4.8.6 (2,811 files, 111.1M)
  Poured from bottle on 2014-05-07 at 09:31:41
/usr/local/Cellar/qt/4.8.7_2 (2,815 files, 113.0M) *
  Poured from bottle on 2016-07-19 at 16:11:59
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt.rb
==> Dependencies
Required: openssl ✔
Optional: dbus ✘, mysql ✘, postgresql ✘
==> Options
--with-dbus
	Build with dbus support
--with-docs
	Build documentation
--with-mysql
	Build with mysql support
--with-postgresql
	Build with postgresql support
--with-qt3support
	Build with deprecated Qt3Support module support
--without-webkit
	Build without QtWebKit module
--HEAD
	Install HEAD version
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

Qt Designer no longer picks up changes to the QT_PLUGIN_PATH environment
variable as it was tweaked to search for plug-ins provided by formulae in
  /usr/local/lib/qt4/plugins

.app bundles were installed.
Run `brew linkapps qt` to symlink these to /Applications.
[johan:~/OpenSource/MuseScore] jnewton% 

Looks like I can use brew install qt5, and it will hopefully un-install qt4. trying it out....

In reply to by jim.newton.562

No, alas :-(

It still contains the curious DEPRECATED_SINCE errors in the compile output.
In my UNIX path I have /Users/jnewton/OpenSource/Qt/5.6/clang_64/bin.
Perhaps I should change this to /usr/local/opt/qt5/bin ???

In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:4:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessible.h:975:24: error: token is not a valid binary operator in a
      preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 0)
    ~~~~~~~~~~~~~~~~~~~^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:5:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessiblebridge.h:62:56: error: use of undeclared identifier 'Q_NULLPTR'
    explicit QAccessibleBridgePlugin(QObject *parent = Q_NULLPTR);
                                                       ^
In file included from /Users/jnewton/OpenSource/MuseScore/build.release/all.h:33:
In file included from /Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/QtGui:6:
/Users/jnewton/OpenSource/Qt/5.6/clang_64/lib/QtGui.framework/Headers/qaccessibleobject.h:52:25: error: expected ';' at end of declaration list
    bool isValid() const Q_DECL_OVERRIDE;
                        ^
                        ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

** BUILD FAILED **


The following build commands failed:
	ProcessPCH++ /var/folders/ry/dmz1d8k97sv7hlfy0fr7zcnc0000gq/C/com.apple.DeveloperTools/6.4-6E35b/Xcode/SharedPrecompiledHeaders/all-bxvpqqpgaqlbrjdidifidrhyvfvv/all.h.pch build.release/all.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65
[johan:~/OpenSource/MuseScore] jnewton%

In reply to by jim.newton.562

I took /Users/jnewton/OpenSource/Qt/5.6/clang_64/bin out of my UNIX path and added the newly "brew-installed" qt5, /usr/local/opt/qt5/bin.
Now make seems to be happy. My machine is getting hot and happily compiling lots and lots of stuff. This looks like it may take a while.

In reply to by jim.newton.562

OK, making real progress here.
"make -f Makefile.osx release" finished successfully;
"make -f Makefile.osx install" also finished successfully;
"make -f Makefile.osx Xcode" also finished successfully.
"open build.xcode/mscore.xcodeproj" opens Xcode and starts calculating and indexing.

Looks like I'm once again a happy MuseScore developer.

Thanks for all the help.

Do you still have an unanswered question? Please log in first to post your question.