From a5d58aaab74f6ecb5d6678055b280b831e045e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 10 Jan 2021 12:24:25 +0100 Subject: [PATCH] doc: so *this* is the way to remove the macOS curse. --- doc/platforms-macos.dox | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/platforms-macos.dox b/doc/platforms-macos.dox index 15ea03359..43cdad5ab 100644 --- a/doc/platforms-macos.dox +++ b/doc/platforms-macos.dox @@ -238,18 +238,14 @@ or can be retreived from Homebrew logs): clang++ … -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include … -o CMakeFiles/PngImageConverter.dir/PngImageConverter.cpp.o -c ../src/MagnumPlugins/PngImageConverter/PngImageConverter.cpp -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -isystem/usr/local/include @endcode -One often suggested magic incantation that sometimes removes the curse is the -following: +A magic incantation that should remove the curse, often suggested by Homebrew +itself, is the following: @code{.sh} -xcode-select --install # try with sudo maybe +sudo rm -rf /Library/Developer/CommandLineTools +sudo xcode-select --install @endcode -If that doesn't help, the next step is to prevent multiple SDKs getting mixed -together by removing all folders inside `/Library/Developer/CommandLineTools/SDKs` -except the latest one. Simply [deleting them is the designated way](https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_CAN_I_UNINSTALL_THE_COMMAND_LINE_TOOLS_) -to do this. - @subsection platforms-macos-troubleshooting-gl Mac-specific OpenGL behavior - @ref GL::AbstractShaderProgram::validate() expects that the shader has a