Building from source on Mac OS X 11.6

• Jan 20, 2022 - 17:28

Hi guys,
First let me say how impressed I am with the software.
I was trying to build from source on my MacBook Air M1 with Big Sur 11.6
Cloned the github repo, made several attempts with Qt 5.9.9., 5.12.12 and 5.15.2
I read the pages in https://musescore.org/en/handbook/developers-handbook/compilation
Still not able to compile without error. I seem to fail on:
QT_DEPRECATED_VERSION_X_5_15("Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted")

Before going into more details could you just confirm that the doc pages are really up-to-date ?

Many thanks and best regards.

More details below

What I get from cmake -P build.cmake -DCMAKE_BUILD_TYPE=Release
looks good to start with, unless I fail to see a big mistake :

QMake version 3.1
Using Qt version 5.15.2 in /Users/alexandre/Qt/5.15.2/clang_64/lib
-- QT_LOCATION: /Users/alexandre/Qt
-- QT_VERSION: 5.15.2
-- QT_COMPILER: clang_64
-- SOURCE_PATH: /Users/alexandre/MuseScore
-- BUILD_PATH: /Users/alexandre/MuseScore/builds/Mac-Qt5.15.2-clang_64-Make-Release
-- INSTALL_PATH: /Users/alexandre/MuseScore/builds/Mac-Qt5.15.2-clang_64-Make-Release/install
-- MSCORE_EXECUTABLE: /Users/alexandre/MuseScore/builds/Mac-Qt5.15.2-clang_64-Make-Release/install/mscore.app/Contents/MacOS/mscore
-- CPUS: 8
-- GENERATOR: Unix Makefiles
-- BUILD_TYPE: Release

~~~~ Actualizing Configure step ~~~~

CONFIGURE_ARGS: -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/Users/alexandre/MuseScore/builds/Mac-Qt5.15.2-clang_64-Make-Release/install -DCMAKE_BUILD_TYPE=Release -DBUILD_64=ON
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using Compiler CLANG 13.0.0.13000029
-- MUSESCORE_BUILD_CONFIG dev
-- MSCORE_UNSTABLE TRUE
-- MSCORE_RELEASE_CHANNEL devel
-- MUSESCORE_VERSION_FULL 4.0.0
-- VERSION 4.0b-
-- MUSESCORE_REVISION:
QMake version 3.1
Using Qt version 5.15.2 in /Users/alexandre/Qt/5.15.2/clang_64/lib
-- Configuring mscore_freetype
-- OS : OS_IS_MAC 1
-- Youp /opt/local/bin/pkg-config
-- Found sndfile: -L/usr/local/Cellar/libsndfile/1.0.31/lib -lsndfile /usr/local/Cellar/libsndfile/1.0.31/include
MuseScore SoundFont is up to date.
-- Enabled testing
-- Found Python: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 (found version "3.9.0") found components: Interpreter
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring global
-- Configuring qzip
-- Configuring ui
-- Configuring uicomponents
-- Configuring fonts
-- Configuring actions
-- Configuring accessibility
-- Configuring shortcuts
-- Configuring network
-- Configuring system
-- Configuring fluidsynth
-- Configuring audio
-- Configuring midi
-- Configuring mpe
-- Configuring global_tests (gtest)
-- Configuring mpe_test (gtest)
-- Configuring system_test (gtest)
-- Configuring ui_tests (gtest)
-- Configuring accessibility_tests (gtest)
-- Configuring engraving
-- Configuring appshell
-- Configuring context
-- Configuring notation
-- Configuring project
-- Configuring print
-- Configuring learn
-- Configuring converter
-- Configuring workspace
-- Configuring iex_bb
-- Configuring iex_braille
-- Configuring iex_bww
-- Configuring iex_capella
-- Configuring iex_midi
-- Configuring iex_musedata
-- Configuring iex_musicxml
-- Configuring iex_ove
-- Configuring iex_audioexport
-- Configuring iex_imagesexport
-- Configuring iex_guitarpro
-- Configuring beatroot
-- Configuring rtf2html
-- Configuring cloud
-- Configuring extensions
-- Configuring languages
-- Configuring plugins
-- Configuring commonscene
-- Configuring playback
-- Configuring palette
-- Configuring instrumentsscene
-- Configuring inspector
-- Configuring multiinstances
-- Configuring diagnostics
-- Configuring autobot
-- Configuring project_test (gtest)
-- Configuring engraving_tests (qtest)
-- Configuring engraving_utests (gtest)
-- Configuring iex_bb_tests (qtest)
-- Configuring iex_braille_tests (qtest)
-- Configuring iex_bww_tests (qtest)
-- Configuring iex_capella_tests (qtest)
-- Configuring iex_midi_tests (qtest)
-- Configuring iex_musicxml_tests (qtest)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/alexandre/MuseScore/builds/Mac-Qt5.15.2-clang_64-Make-Release

~~~~ Actualizing Build step ~~~~

(Trying with -GXcode will output -- GENERATOR: Xcode instead of LInux )
But one way or the other I fail compiling on this :

/Users/alexandre/Qt/5.15.2/clang_64/lib/QtGui.framework/Headers/qevent.h:180:34: error: expected parameter declarator
QT_DEPRECATED_VERSION_X_5_15("Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted")
^
/Users/alexandre/Qt/5.15.2/clang_64/lib/QtGui.framework/Headers/qevent.h:180:34: error: expected ')'
/Users/alexandre/Qt/5.15.2/clang_64/lib/QtGui.framework/Headers/qevent.h:180:33: note: to match this '('
QT_DEPRECATED_VERSION_X_5_15("Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted")
^
/Users/alexandre/Qt/5.15.2/clang_64/lib/QtGui.framework/Headers/qevent.h:180:5: error: C++ requires a type specifier for all declarations
QT_DEPRECATED_VERSION_X_5_15("Use the last QWheelEvent constructor taking pixelDelta, angleDelta, phase, and inverted")


Comments

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