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 %
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 ..
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.
(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
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)
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!
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_
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.
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.
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.