You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
just had the issue that CMake fails to build MRtrix3 dev branch on macOS due to an incorrect SDK path. CMake references the outdated macOS SDK MacOSX13.3.sdk on my system, which no longer exists (recently upgraded to OS14), instead of the correct SDK (MacOSX14.5.sdk). This leads to errors regarding the PNG library and other dependencies.
To Reproduce:
Clone the MRtrix3 dev branch
cmake -B build -DCMAKE_INSTALL_PREFIX=path/to/install.
The error occurs because CMake attempts to use the non-existent SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk.
Hi, thanks for the bug report. CMake determines the value of CMAKE_OSX_SYSROOT by looking at the SDKROOT environment variable. Perhaps you need to set that to the correct location to avoid specifying CMAKE_OSX_SYSROOT manually. Also, if you have built the project before the OS upgrade, simply deleting the build directory and then rebuilding from scratch may solve the issue.
Hi everyone,
just had the issue that CMake fails to build MRtrix3 dev branch on macOS due to an incorrect SDK path. CMake references the outdated macOS SDK MacOSX13.3.sdk on my system, which no longer exists (recently upgraded to OS14), instead of the correct SDK (MacOSX14.5.sdk). This leads to errors regarding the PNG library and other dependencies.
To Reproduce:
The error occurs because CMake attempts to use the non-existent SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk.
I managed to get it running by specfifying
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
manually, but thought I'll post in case someone else comes across this issue/bug is not known !
Best,
Philip
Platform/Environment/Version
OS: macOS 14.6.1
MRtrix3 version: dev
The text was updated successfully, but these errors were encountered: