build failure on Sonoma Arm Mac in KDDockWidgets because of old g++ version

• Mar 29, 2024 - 22:33

I'm getting errors like this:

In file included from /opt/homebrew/lib/QtCore.framework/Headers/QFile:1:
/opt/homebrew/lib/QtCore.framework/Headers/qfile.h:195:29: error: 'path' is unavailable: introduced in macOS 10.15

I tried adding an extra set(CMAKE_CXX_STANDARD 17) in thirdparty/KDDockWidgets/CMakeLists.txt
and also tried export CXXFLAGS=-std=c++17 in the shell.

I know the latter did something because I originally had a typo and it complained when I deleted the builds directory and started afresh, but then I still ended up with the same errors once I fixed that. Not sure what to try next. I guess I can reinstall Qt the approved way if nothing else comes to mind.

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