Build SC latest dev version with latest Qt6 on MacOS ARM 15.4

Hello,

As the title says, I would like to build SC latest dev version with latest Qt6 on MacOS ARM 15.4.

Can someone point me to the right direction, please?

I did something like that :

cmake -G Xcode -DCMAKE_PREFIX_PATH=brew --prefix qt6 -DSC_USE_QTWEBENGINE=OFF -DSUPERNOVA=ON …

But got an error when building :

** BUILD FAILED **

The following build commands failed:
CompileC /Users/xon/Supercollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/PyrObject.o /Users/xon/Supercollider/lang/LangSource/PyrObject.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘libsclang’ from project ‘SuperCollider’)
(1 failure)
(base) xon@MacBookPro build %

Thanks,

Christophe

It seems you are running the command in ~/Supercollider/build/build instead of ~/Supercollider/build - can you remove the folder ~/Supercollider/build and run the following command in ~/Supercolider to configure the build

mkdir build && cd build
cmake -G Xcode -DSUPERNOVA=ON ..

and run the build via

cmake --build . --target install --config RelWithDebInfo

If this still fails, please provide the full output of both commands.

Thanks,

I do not know why it was generating a build inside a build.
I decided to go from scratch and cloned SC again.
But, now, with cmake -G Xcode -DSUPERNOVA=ON .., I have the following error :

(base) xon@xon build % cmake -G Xcode -DSUPERNOVA=ON ..
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- 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/clang - 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/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SuperCollider Version: 3.14.0-dev
-- Building from branch develop, commit hash is fe8d15898
-- Please specify the build configuration in the next step
-- Compiling with Qt GUI
-- Found Pthreads: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib/libpthread.tbd
-- Using bundled boost
-- Using bundled yaml-cpp
-- HIDAPI components:
--     mac
--     hidapi_parser
-- Building with HID support
-- Found install of libsndfile in /opt/homebrew/lib/libsndfile.dylib
-- Performing Test SNDFILE_HAS_VORBIS
-- Performing Test SNDFILE_HAS_VORBIS - Success
-- Performing Test SNDFILE_HAS_OPUS
-- Performing Test SNDFILE_HAS_OPUS - Success
-- Performing Test SNDFILE_HAS_MPEG
-- Performing Test SNDFILE_HAS_MPEG - Success
-- FFT library (scsynth): vDSP
-- Audio API (scsynth): coreaudio
-- Found fftw3f: /opt/homebrew/lib/libfftw3f.dylib
-- FFT library (supernova): FFTW
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found Portaudio: /opt/homebrew/lib/libportaudio.dylib
-- Audio API (supernova): portaudio
-- Found a homebrew install of readline /opt/homebrew/opt/readline
-- Found GNU Readline version 8.2: /opt/homebrew/opt/readline/lib/libreadline.dylib
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/OpenGL.framework
-- Found WrapOpenGL: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Found Cups: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib/libcups.tbd (found version "2.3.4")
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Found Qt 6.9.0: /opt/homebrew/lib/QtCore.framework/Versions/A/QtCore
-- sclang: Building with QtWebEngine
-- Compiling with Ableton Link support
-- Compiling with Readline support
-- Building the Qt IDE
-- Found Threads: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
-- IDE: Building with QtWebEngine
-- Detected Qt6 from homebrew: will fix deployment of QtQuickWidgets
-- Found Qt deploy utility: /opt/homebrew/opt/qt@5/bin/macdeployqt
-- Configuring done (12.3s)
CMake Error in lang/CMakeLists.txt:
  Imported target "Ableton::Link" includes non-existent path

    "/Users/xon/supercollider/external_libraries/link/cmake_include/../modules/asio-standalone/asio/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in lang/CMakeLists.txt:
  Imported target "Ableton::Link" includes non-existent path

    "/Users/xon/supercollider/external_libraries/link/cmake_include/../modules/asio-standalone/asio/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in lang/CMakeLists.txt:
  Imported target "Ableton::Link" includes non-existent path

    "/Users/xon/supercollider/external_libraries/link/cmake_include/../modules/asio-standalone/asio/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in lang/CMakeLists.txt:
  Imported target "Ableton::Link" includes non-existent path

    "/Users/xon/supercollider/external_libraries/link/cmake_include/../modules/asio-standalone/asio/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done (0.6s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Have you cloned the repository in a recursive manner like in the docs? You could try out git submodule update --init --recursive to pull all sub-repositories. This should pull the requested supercollider/external_libraries/link/modules/asio-standalone/asio/include which seem to be missing on your drive.

Oh sorry, I completely forgot --recursive.
But, I still have an issue when building, see below and attached.

** BUILD FAILED **

The following build commands failed:
	CreateBuildDirectory /Users/xon/supercollider/build/testsuite/server/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/server/plugins/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/lang/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/external_libraries/hidapi/mac/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/external_libraries/hidapi/hidapi_parser/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/server/scsynth/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/testsuite/server/supernova/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/testsuite/server/scsynth/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/server/supernova/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/external_libraries/RelWithDebInfo
	CreateBuildDirectory /Users/xon/supercollider/build/editors/sc-ide/RelWithDebInfo
(11 failures)

After, cmake -G Xcode -DSUPERNOVA=ON .. :

(base) xon@xon build % cmake -G Xcode -DSUPERNOVA=ON ..

-- The C compiler identification is AppleClang 17.0.0.17000013

-- The CXX compiler identification is AppleClang 17.0.0.17000013

-- 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/clang - 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/clang++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- SuperCollider Version: 3.14.0-dev

-- Building from branch develop, commit hash is fe8d15898

-- Please specify the build configuration in the next step

-- Compiling with Qt GUI



-- Found Pthreads: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib/libpthread.tbd

-- Using bundled boost

-- Using bundled yaml-cpp

-- HIDAPI components:

-- Mac

-- hidapi_parser

-- Building with HID support

-- Found install of libsndfile in /opt/homebrew/lib/libsndfile.dylib

-- Performing Test SNDFILE_HAS_VORBIS

-- Performing Test SNDFILE_HAS_VORBIS - Success

-- Performing Test SNDFILE_HAS_OPUS

-- Performing Test SNDFILE_HAS_OPUS - Success

-- Performing Test SNDFILE_HAS_MPEG

-- Performing Test SNDFILE_HAS_MPEG - Success

-- FFT library (scsynth): vDSP

-- Audio API (scsynth): coreaudio

-- Found fftw3f: /opt/homebrew/lib/libfftw3f.dylib

-- FFT library (supernova): FFTW

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

-- Found Portaudio: /opt/homebrew/lib/libportaudio.dylib

-- Audio API (supernova): portaudio

-- Found a homebrew install of readline /opt/homebrew/opt/readline

-- Found GNU Readline version 8.2: /opt/homebrew/opt/readline/lib/libreadline.dylib

-- Performing Test HAVE_STDATOMIC

-- Performing Test HAVE_STDATOMIC - Success

-- Found WrapAtomic: TRUE

-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/OpenGL.framework

-- Found WrapOpenGL: TRUE

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)

-- Found Cups: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/lib/libcups.tbd (found version "2.3.4")

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)

-- Found Qt 6.9.0: /opt/homebrew/lib/QtCore.framework/Versions/A/QtCore

-- sclang: Building with QtWebEngine

-- Compiling with Ableton Link support

-- Compiling with Readline support

-- Building the Qt IDE

-- Found Threads: TRUE

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)

-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)

-- IDE: Building with QtWebEngine

-- Detected Qt6 from homebrew: will fix deployment of QtQuickWidgets

-- Found Qt deploy utility: /opt/homebrew/opt/qt@5/bin/macdeployqt

-- Configuring done (11.9s)

-- Generating done (0.7s)

-- Build files have been written to: /Users/xon/supercollider/build

Thanks,

Christophe
Build failed.txt (44.2 KB)

Looks like a permission denied error, see e.g.

CreateBuildDirectory /Users/xon/supercollider/build/external_libraries/hidapi/hidapi_parser/RelWithDebInfo
    cd /Users/xon/supercollider/build/SuperCollider.xcodeproj
    builtin-create-build-directory /Users/xon/supercollider/build/external_libraries/hidapi/hidapi_parser/RelWithDebInfo
error: mkdir(/Users/xon/supercollider/build/external_libraries/hidapi/hidapi_parser/RelWithDebInfo, S_IRWXU | S_IRWXG | S_IRWXO): Permission denied (13)

Normally you should have access to this directory, but this is up to your user configuration.

Have you deleted the build directory and started from scratch? Sometimes this help.

Have you enough disk space left?

I tried with sudo, started again from scratch, and now I have :

** BUILD FAILED **

The following build commands failed:
CompileC /Users/xon/supercollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/PyrObject.o /Users/xon/supercollider/lang/LangSource/PyrObject.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘libsclang’ from project ‘SuperCollider’)
(1 failure)

Thanks for the patience!

You shouldn’t have to use sudo here, but this is some other topic :slight_smile:

Can you upload the whole output of the build process? There is missing the information why it failed :slight_smile:

Attached you can find the build process.
Build Failed2.txt (2.4 MB)

Thanks!

Ah - is it possible that you want to build the main branch (aka 3.13) instead of the develop branch?
Due to macOS updates it is not possible to build 3.13 on the newest macOS, but there is a fix for this in the develop branch.
Use git to checkout the develop branch, remove the build folder and try again, hope it works!

I checked, but I am on the develop branch.

Ah wow, this is indeed a bug which seems to happen on the newest macOS version

In file included from /Users/xon/supercollider/lang/LangSource/PyrObject.cpp:45:
/Users/xon/supercollider/external_libraries/boost/boost/thread/future.hpp:4671:19: error: 
      no member named 'that' in 'run_it<FutureExecutorContinuationSharedState>';
      did you mean 'that_'?
 4671 |           that_=x.that;
      |                   ^~~~
      |                   that_

which seems to be a bug in boost thread, see Compilation error in future.hpp using LLVM upstream clang · Issue #402 · boostorg/thread · GitHub
This seems to be fixed only in boost 1.88 which was released 4 days ago, but maybe better to remove boost::thread in favor of std::thread?

We have to see what to do about that - in the meantime you can simply change the LOC from above as suggested to that_=x.that_, this should hopefully fix the bug for you.

1 Like

Thank you so much!

** BUILD SUCCEEDED **

But when I want to open SC, it crashes. I have the following crash report attached.

SC Crash.txt (40.2 KB)

Difficult to say what’s going wrong here, I can’t reproduce it on my 15.4 intel macOS.

Can you attach a debugger during the start? Also you could check if this only affects the IDE or also sclang and scsynth.

The crash happens when I open the application at the really start (I cannot even see the IDE), so it might be either sclang or the I think the IDE.

I do not know how to add a debugger during the start. will check. But if you have a way to do it, let me know.

Thanks for checking

You can test if it is sclang by dragging the sclang executable (from inside the SuperCollider package) to the terminal. It should run as terminal program.

Sam

Thanks,

By dragging the sclang executable in the terminal, I have the following :

(base) xon@xon ~ % /Applications/SuperColliderC2/SuperColliderC2.app/Contents/MacOS/sclang
compiling class library…
qt.qpa.plugin: Could not find the Qt platform plugin “cocoa” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: abort /Applications/SuperColliderC2/SuperColliderC2.app/Contents/MacOS/sclang

Hope it helps to define the problem?