86Box/86Box

Problem compilation with QT@5

ThingUroboros opened this issue · 2 comments

What happened?

martinburianek@Martin-MacBook-Air 86Box % cmake --preset llvm-macos-aarch64-debug
Preset CMake variables:

  CMAKE_BUILD_TYPE="Debug"
  CMAKE_CXX_FLAGS_DEBUG="-g -O0 -DENABLE_VDE_LOG"
  CMAKE_C_FLAGS_DEBUG="-g -O0 -DENABLE_VDE_LOG"
  CMAKE_EXPORT_COMPILE_COMMANDS:BOOL="TRUE"
  CMAKE_INSTALL_PREFIX="/Users/martinburianek/Documents/EMULATOR/86Box/build/artifacts"
  CMAKE_TOOLCHAIN_FILE="cmake/llvm-macos-aarch64.cmake"
  DEV_BRANCH="OFF"
  MOLTENVK_DIR="/opt/homebrew/opt/molten-vk"
  NEW_DYNAREC="ON"
  OpenAL_ROOT="/opt/homebrew/opt/openal-soft"
  QT="ON"
  Qt5LinguistTools_DIR="/opt/homebrew/opt/qt@5/lib/cmake/Qt5LinguistTools"
  Qt5_DIR="/opt/homebrew/opt/qt@5/lib/cmake/Qt5"
  USE_QT6="OFF"

CMake Deprecation Warning at /opt/homebrew/opt/openal-soft/lib/cmake/OpenAL/OpenALConfig.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  src/sound/CMakeLists.txt:29 (find_package)


-- Library libVulkan.dylib was not found - skipping
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug
martinburianek@Martin-MacBook-Air 86Box % cmake --preset llvm-macos-aarch64-debug
Preset CMake variables:

  CMAKE_BUILD_TYPE="Debug"
  CMAKE_CXX_FLAGS_DEBUG="-g -O0 -DENABLE_VDE_LOG"
  CMAKE_C_FLAGS_DEBUG="-g -O0 -DENABLE_VDE_LOG"
  CMAKE_EXPORT_COMPILE_COMMANDS:BOOL="TRUE"
  CMAKE_INSTALL_PREFIX="/Users/martinburianek/Documents/EMULATOR/86Box/build/artifacts"
  CMAKE_TOOLCHAIN_FILE="cmake/llvm-macos-aarch64.cmake"
  DEV_BRANCH="OFF"
  MOLTENVK_DIR="/opt/homebrew/opt/molten-vk"
  NEW_DYNAREC="ON"
  OpenAL_ROOT="/opt/homebrew/opt/openal-soft"
  QT="ON"
  Qt5LinguistTools_DIR="/opt/homebrew/opt/qt@5/lib/cmake/Qt5LinguistTools"
  Qt5_DIR="/opt/homebrew/opt/qt@5/lib/cmake/Qt5"
  USE_QT6="OFF"

CMake Deprecation Warning at /opt/homebrew/opt/openal-soft/lib/cmake/OpenAL/OpenALConfig.cmake:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  src/sound/CMakeLists.txt:29 (find_package)


-- Library libVulkan.dylib was not found - skipping
-- Configuring done (0.4s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug
martinburianek@Martin-MacBook-Air 86Box % cd /Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug
martinburianek@Martin-MacBook-Air llvm-macos-aarch64-debug % cmake --build . --config Release
[39/107] Building CXX object src/qt/CMakeFiles/plat.dir/qt_platform.cpp.o
FAILED: src/qt/CMakeFiles/plat.dir/qt_platform.cpp.o 
/Library/Developer/CommandLineTools/usr/bin/c++ -DCMAKE -DDEBUG -DDISCORD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DUSE_DYNAREC -DUSE_NEW_DYNAREC -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/qt -I/Users/martinburianek/Documents/EMULATOR/86Box/src/qt -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/qt/plat_autogen/include -I/opt/homebrew/include/freetype2 -I/opt/homebrew/Cellar/sdl2/2.30.1/include -I/opt/homebrew/Cellar/sdl2/2.30.1/include/SDL2 -I/opt/homebrew/include -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/include -I/Users/martinburianek/Documents/EMULATOR/86Box/src/include -I/Users/martinburianek/Documents/EMULATOR/86Box/src/cpu -I/Users/martinburianek/Documents/EMULATOR/86Box/src/codegen_new -iframework /opt/homebrew/opt/qt@5/lib -isystem /opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtGui.framework/Headers -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers -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/QtNetwork.framework/Headers -march=armv8.5-a+simd -fomit-frame-pointer -Wall -fno-strict-aliasing -g -O0 -DENABLE_VDE_LOG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -mmacosx-version-min=10.13 -fPIC -MD -MT src/qt/CMakeFiles/plat.dir/qt_platform.cpp.o -MF src/qt/CMakeFiles/plat.dir/qt_platform.cpp.o.d -o src/qt/CMakeFiles/plat.dir/qt_platform.cpp.o -c /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:162:37: error: unknown type name 'QStringRef'; did you mean 'CFStringRef'?
    inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); }
                                    ^
/opt/homebrew/include/QtCore/qstring.h:36:1: note: 'CFStringRef' declared here
Q_FORWARD_DECLARE_CF_TYPE(CFString);
^
/opt/homebrew/include/QtCore/qdarwinhelpers.h:24:77: note: expanded from macro 'Q_FORWARD_DECLARE_CF_TYPE'
#  define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
                                                                            ^
<scratch space>:50:1: note: expanded from here
CFStringRef
^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:75:46: error: incomplete type 'QIODevice' named in nested name specifier
        Stream(QString *string) : ts(string, QIODevice::WriteOnly), ref(1), type(QtDebugMsg),
                                             ^~~~~~~~~~~
/opt/homebrew/include/QtCore/qtextstream.h:25:7: note: forward declaration of 'QIODevice'
class QIODevice;
      ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:77:43: error: incomplete type 'QIODevice' named in nested name specifier
        Stream(QtMsgType t) : ts(&buffer, QIODevice::WriteOnly), ref(1), type(t),
                                          ^~~~~~~~~~~
/opt/homebrew/include/QtCore/qtextstream.h:25:7: note: forward declaration of 'QIODevice'
class QIODevice;
      ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:162:66: error: member reference type 'const CFStringRef' (aka 'const __CFString *const') is a pointer; did you mean to use '->'?
    inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); }
                                                                ~^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:162:66: error: incomplete definition of type '__CFString'
    inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); }
                                                                ~^
/opt/homebrew/include/QtCore/qstringview.h:16:1: note: forward declaration of '__CFString'
Q_FORWARD_DECLARE_CF_TYPE(CFString);
^
/opt/homebrew/include/QtCore/qdarwinhelpers.h:24:64: note: expanded from macro 'Q_FORWARD_DECLARE_CF_TYPE'
#  define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
                                                               ^
<scratch space>:67:1: note: expanded from here
__CFString
^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:162:86: error: member reference type 'const CFStringRef' (aka 'const __CFString *const') is a pointer; did you mean to use '->'?
    inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); }
                                                                                    ~^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:162:86: error: incomplete definition of type '__CFString'
    inline QDebug &operator<<(const QStringRef & t) { putString(t.constData(), uint(t.length())); return maybeSpace(); }
                                                                                    ~^
/opt/homebrew/include/QtCore/qstringview.h:16:1: note: forward declaration of '__CFString'
Q_FORWARD_DECLARE_CF_TYPE(CFString);
^
/opt/homebrew/include/QtCore/qdarwinhelpers.h:24:64: note: expanded from macro 'Q_FORWARD_DECLARE_CF_TYPE'
#  define Q_FORWARD_DECLARE_CF_TYPE(type) typedef const struct __ ## type * type ## Ref
                                                               ^
<scratch space>:67:1: note: expanded from here
__CFString
^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:29:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDebug:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:244:15: error: redefinition of 'operator<<'
inline QDebug operator<<(QDebug debug, const QVector<T> &vec)
              ^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:238:15: note: previous definition is here
inline QDebug operator<<(QDebug debug, const QList<T> &list)
              ^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:310:15: error: redefinition of 'operator<<'
inline QDebug operator<<(QDebug debug, const std::pair<T1, T2> &pair)
              ^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdebug.h:301:15: note: previous definition is here
inline QDebug operator<<(QDebug debug, const QPair<T1, T2> &pair)
              ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:59:58: error: 'path' is unavailable: introduced in macOS 10.15
inline QString fromFilesystemPath(const std::filesystem::path &path)
                                                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:64:40: error: 'native' is unavailable: introduced in macOS 10.15
    return QString::fromStdString(path.native());
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:744:22: note: 'native' has been explicitly marked unavailable here
  const string_type& native() const noexcept { return __pn_; }
                     ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:68:25: error: 'path' is unavailable: introduced in macOS 10.15
inline std::filesystem::path toFilesystemPath(const QString &path)
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:70:29: error: 'path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: 'path<const char16_t *>' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:488:3: note: 'path<const char16_t *>' has been explicitly marked unavailable here
  path(_InputIt __first, _InputIt __last, format = format::auto_format) {
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: 'path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:488:3: note: 'path' has been explicitly marked unavailable here
  path(_InputIt __first, _InputIt __last, format = format::auto_format) {
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: '~path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:505:3: note: '~path' has been explicitly marked unavailable here
  ~path() = default;
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:128:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemFileName() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:190:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemSymLinkTarget() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_platform.cpp:31:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDir:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdir.h:44:
In file included from /opt/homebrew/include/QtCore/qfileinfo.h:7:
/opt/homebrew/include/QtCore/qfile.h:195:29: error: 'path' is unavailable: introduced in macOS 10.15
    static std::filesystem::path filesystemSymLinkTarget(const T &fileName)
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[48/107] Building CXX object src/qt/CMakeFiles/plat.dir/qt_main.cpp.o
FAILED: src/qt/CMakeFiles/plat.dir/qt_main.cpp.o 
/Library/Developer/CommandLineTools/usr/bin/c++ -DCMAKE -DDEBUG -DDISCORD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DUSE_DYNAREC -DUSE_NEW_DYNAREC -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/qt -I/Users/martinburianek/Documents/EMULATOR/86Box/src/qt -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/qt/plat_autogen/include -I/opt/homebrew/include/freetype2 -I/opt/homebrew/Cellar/sdl2/2.30.1/include -I/opt/homebrew/Cellar/sdl2/2.30.1/include/SDL2 -I/opt/homebrew/include -I/Users/martinburianek/Documents/EMULATOR/86Box/out/build/llvm-macos-aarch64-debug/src/include -I/Users/martinburianek/Documents/EMULATOR/86Box/src/include -I/Users/martinburianek/Documents/EMULATOR/86Box/src/cpu -I/Users/martinburianek/Documents/EMULATOR/86Box/src/codegen_new -iframework /opt/homebrew/opt/qt@5/lib -isystem /opt/homebrew/opt/qt@5/lib/QtWidgets.framework/Headers -isystem /opt/homebrew/opt/qt@5/lib/QtGui.framework/Headers -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/OpenGL.framework/Headers -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/QtNetwork.framework/Headers -march=armv8.5-a+simd -fomit-frame-pointer -Wall -fno-strict-aliasing -g -O0 -DENABLE_VDE_LOG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -mmacosx-version-min=10.13 -fPIC -MD -MT src/qt/CMakeFiles/plat.dir/qt_main.cpp.o -MF src/qt/CMakeFiles/plat.dir/qt_main.cpp.o.d -o src/qt/CMakeFiles/plat.dir/qt_main.cpp.o -c /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:25:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QTimer:1:
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qtimer.h:123:39: error: no template named 'QSlotObject' in namespace 'QtPrivate'
                       new QtPrivate::QSlotObject<Func1, typename SlotType::Arguments, void>(slot));
                           ~~~~~~~~~~~^
/opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qtimer.h:158:39: error: no template named 'QFunctorSlotObject' in namespace 'QtPrivate'
                       new QtPrivate::QFunctorSlotObject<Func1, 0,
                           ~~~~~~~~~~~^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:59:58: error: 'path' is unavailable: introduced in macOS 10.15
inline QString fromFilesystemPath(const std::filesystem::path &path)
                                                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:64:40: error: 'native' is unavailable: introduced in macOS 10.15
    return QString::fromStdString(path.native());
                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:744:22: note: 'native' has been explicitly marked unavailable here
  const string_type& native() const noexcept { return __pn_; }
                     ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:68:25: error: 'path' is unavailable: introduced in macOS 10.15
inline std::filesystem::path toFilesystemPath(const QString &path)
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:70:29: error: 'path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: 'path<const char16_t *>' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:488:3: note: 'path<const char16_t *>' has been explicitly marked unavailable here
  path(_InputIt __first, _InputIt __last, format = format::auto_format) {
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: 'path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:488:3: note: 'path' has been explicitly marked unavailable here
  path(_InputIt __first, _InputIt __last, format = format::auto_format) {
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:70:12: error: '~path' is unavailable: introduced in macOS 10.15
    return std::filesystem::path(reinterpret_cast<const char16_t *>(path.cbegin()),
           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:505:3: note: '~path' has been explicitly marked unavailable here
  ~path() = default;
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:128:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemFileName() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:190:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemSymLinkTarget() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:195:29: error: 'path' is unavailable: introduced in macOS 10.15
    static std::filesystem::path filesystemSymLinkTarget(const T &fileName)
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:129:14: error: '~path' is unavailable: introduced in macOS 10.15
    { return QtPrivate::toFilesystemPath(fileName()); }
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:505:3: note: '~path' has been explicitly marked unavailable here
  ~path() = default;
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:8:
/opt/homebrew/include/QtCore/qfile.h:192:16: error: '~path' is unavailable: introduced in macOS 10.15
        return QtPrivate::toFilesystemPath(symLinkTarget());
               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:505:3: note: '~path' has been explicitly marked unavailable here
  ~path() = default;
  ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:9:
/opt/homebrew/include/QtCore/qfileinfo.h:82:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemFilePath() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:9:
/opt/homebrew/include/QtCore/qfileinfo.h:84:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemAbsoluteFilePath() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:9:
/opt/homebrew/include/QtCore/qfileinfo.h:86:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemCanonicalFilePath() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:9:
/opt/homebrew/include/QtCore/qfileinfo.h:100:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemPath() const { return QtPrivate::toFilesystemPath(path()); }
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
In file included from /Users/martinburianek/Documents/EMULATOR/86Box/src/qt/qt_main.cpp:27:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/QDirIterator:1:
In file included from /opt/homebrew/opt/qt@5/lib/QtCore.framework/Headers/qdiriterator.h:43:
In file included from /opt/homebrew/include/QtCore/qdir.h:9:
/opt/homebrew/include/QtCore/qfileinfo.h:101:22: error: 'path' is unavailable: introduced in macOS 10.15
    std::filesystem::path filesystemAbsolutePath() const
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/c++/v1/__filesystem/path.h:442:24: note: 'path' has been explicitly marked unavailable here
class _LIBCPP_TYPE_VIS path {
                       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.


### Configuration file

```ini
Not used

Operating system

Mac

CPU

M1

86Box version

v4.2

Build architecture

macOS - Universal (Intel and Apple Silicon)

Build type

  • New recompiler
  • Debug build

Download source

Official website (Jenkins, GitHub)

Additional context

No response

Make sure you are following the steps exactly as laid out in the Build Guide, particularly the Building section. It doesn't look like you're using the proper commands.

For example, you are not specifying a build directory in the first cmake command.

Please follow the Build Guide exactly. I can see in what you pasted that you are not using the correct commands.

Please open a new issue if you encounter any problems while following the build guide.