When trying to build the current development version (fresh clone), I get the following error (see details below):
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:78:7: error:
definition of type 'QStringList' conflicts with type alias of the same
name
class QStringList;
^
My configuration is the following:
Mac Studio (2022)
Apple M1 Max
macOS 12.6.7
Xcode 14.2
brew info qt5 ==> qt@5: stable 5.15.10 (bottled) [keg-only]
git rev-parse HEAD ===> ef627ce2c564fe323125234e4374c9c4b0fc7f1d
This is what I did:
% cd ˜/src/SuperCollider
% mkdir build
% cd build
% cmake -G Xcode -DCMAKE_PREFIX_PATH=`brew --prefix qt5` ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- 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 ef627ce2c
-- 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/MacOSX13.1.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 a homebrew install of readline /opt/homebrew/opt/readline
-- Found GNU Readline version 8.2: /opt/homebrew/opt/readline/lib/libreadline.dylib
-- Found Qt: /opt/homebrew/opt/qt@5/lib/QtCore.framework/QtCore
-- sclang: Building with QtWebEngine
-- Compiling with Ableton Link support
-- Compiling with Readline support
-- Building the Qt IDE
-- IDE: Building with QtWebEngine
-- Found Qt deploy utility: /opt/homebrew/opt/qt@5/bin/macdeployqt
-- Configuring done (6.7s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/eckel/src/SuperCollider/build
% cmake --build . --target install --config RelWithDebInfo
.
.
.
CompileC /Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/SC_TerminalClient.o /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libsclang' from project 'SuperCollider')
cd /Users/eckel/src/SuperCollider
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target arm64-apple-macos12.6 -fmessage-length\=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -stdlib\=libc++ -Wno-trigraphs -fpascal-strings -O2 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"RelWithDebInfo\" -DYYSTACK_USE_ALLOC -DSC_USE_QTWEBENGINE -DHAVE_HIDAPI -DHAVE_READLINE -DSNDFILE_HAS_VORBIS -DSNDFILE_HAS_OPUS -DSNDFILE_HAS_MPEG -DBOOST_CHRONO_HEADER_ONLY -DBOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE -DSC_AUDIO_API_COREAUDIO -DSC_HIDAPI -DSC_QT -DQT_COLLIDER_EXPORTING -DQT_NO_KEYWORDS -DSC_IDE -DSC_ABLETON_LINK -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_SVG_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_WEBCHANNEL_LIB -DQT_POSITIONING_LIB -DQT_WEBENGINEWIDGETS_LIB -DQT_MACEXTRAS_LIB -DBOOST_THREAD_USE_LIB -DSC_MEMORY_ALIGNMENT\=32 -DNOVA_SIMD -DUSE_RENDEZVOUS\=1 -DLINK_PLATFORM_UNIX\=1 -DLINK_PLATFORM_MACOSX\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/eckel/src/SuperCollider/build/lang/RelWithDebInfo/include -I/Users/eckel/src/SuperCollider/build/common -I/Users/eckel/src/SuperCollider/include/common -I/Users/eckel/src/SuperCollider/include/lang -I/Users/eckel/src/SuperCollider/include/plugin_interface -I/Users/eckel/src/SuperCollider/include/server -I/Users/eckel/src/SuperCollider/common -I/Users/eckel/src/SuperCollider/external_libraries/boost_sync/include -I/Users/eckel/src/SuperCollider/lang/LangSource -I/Users/eckel/src/SuperCollider/lang/LangPrimSource -I/Users/eckel/src/SuperCollider/external_libraries/nova-tt -I/Users/eckel/src/SuperCollider/lang/LangSource/Bison -I/Users/eckel/src/SuperCollider/external_libraries/hidapi/hidapi -I/Users/eckel/src/SuperCollider/external_libraries/hidapi/hidapi_parser -I/Users/eckel/src/SuperCollider/QtCollider -I/Users/eckel/src/SuperCollider/SCDoc -I/Users/eckel/src/SuperCollider/external_libraries/boost -I/opt/homebrew/opt/readline/include -I/opt/homebrew/include -I/Users/eckel/src/SuperCollider/external_libraries/TLSF-2.4.6/src -I/Users/eckel/src/SuperCollider/external_libraries/yaml-cpp/include -isystem /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers -isystem /opt/homebrew/opt/qt@5/mkspecs/macx-clang -isystem /opt/homebrew/opt/qt@5/lib/QtGui.framework/Headers -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtNetwork.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtPrintSupport.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtSvg.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtWebEngineCore.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtQuick.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtQmlModels.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtQml.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtWebChannel.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtPositioning.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtWebEngineWidgets.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtMacExtras.framework/Headers -isystem /Users/eckel/src/SuperCollider/external_libraries/link/include -isystem /Users/eckel/src/SuperCollider/external_libraries/link/modules/asio-standalone/asio/include -I/Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/DerivedSources-normal/arm64 -I/Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/DerivedSources/arm64 -I/Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/DerivedSources -F/Users/eckel/src/SuperCollider/build/lang/RelWithDebInfo -iframework /opt/homebrew/opt/qt@5/lib -DNDEBUG -std\=gnu++17 -fPIC -fvisibility\=hidden -MMD -MT dependencies -MF /Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/SC_TerminalClient.d --serialize-diagnostics /Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/SC_TerminalClient.dia -c /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp -o /Users/eckel/src/SuperCollider/build/build/libsclang.build/RelWithDebInfo/Objects-normal/arm64/SC_TerminalClient.o
.
.
.
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:78:7: error:
definition of type 'QStringList' conflicts with type alias of the same
name
class QStringList;
^
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:49:
In file included from /opt/homebrew/include/QtCore/qchar.h:7:
In file included from /opt/homebrew/include/QtCore/qglobal.h:46:
In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:6:
/opt/homebrew/include/QtCore/qcontainerfwd.h:33:7: note:
'QStringList' declared here
using QStringList = QList<QString>;
^
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:81:29: error:
redefinition of 'QVector' as different kind of symbol
template <typename T> class QVector;
^
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:49:
In file included from /opt/homebrew/include/QtCore/qchar.h:7:
In file included from /opt/homebrew/include/QtCore/qglobal.h:46:
In file included from /opt/homebrew/include/QtCore/qtypeinfo.h:6:
/opt/homebrew/include/QtCore/qcontainerfwd.h:32:22: note:
previous definition is here
template<typename T> using QVector = QList<T>;
^
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/SC_TerminalClient.cpp:29:
In file included from /Users/eckel/src/SuperCollider/lang/LangSource/../../QtCollider/LanguageClient.h:25:
In file included from /Users/eckel/src/SuperCollider/QtCollider/Common.h:24:
In file included from /Users/eckel/src/SuperCollider/QtCollider/debug.h:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QString:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:261:13: error:
unknown type name 'QStringData'
typedef QStringData Data;
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:967:37: error:
unknown type name 'QStringDataPtr'
Q_DECL_CONSTEXPR inline QString(QStringDataPtr dd) : d(dd.ptr) {}
^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qstring.h:273:72: error:
'QString::Data' (aka 'int') is not a class, namespace, or enumeration
...QString(QString && other) noexcept : d(other.d) { other.d = Data::shared...
Any help would be greatly appreciated!
Gerhard