View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004681 | Slicer4 | Core: Building (CMake, Superbuild) | public | 2019-03-29 21:07 | 2019-09-24 17:52 |
Reporter | pieper | Assigned To | jcfr | ||
Priority | high | Severity | block | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | Slicer 4.11.0 | ||||
Target Version | Slicer 4.11.0 | Fixed in Version | |||
Summary | 0004681: No /usr/include on macOS Mojave | ||||
Description | It seems that with macOS 10.14 and beyond, Apple is deprecating the use of /usr/include and instead puts the corresponding files in the os-version-specific SDK directories: https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes#3035623 (note that xcode-select --install does not fix this) This breaks OpenSSL and Python with the errors shown in Additional Information below. Probably other things break too. A workaround is setting the SDKROOT, like this, which allows the build to succeed: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk make -j20 We should find a way to send the correct SDKROOT to the SuperBuild dependencies, e.g. via cmake as a byproduct of setting the CMAKE_OSX_DEPLOYMENT_TARGET. | ||||
Additional Information | =======================================================================================
| ||||
Tags | No tags attached. | ||||
Reminder sent to: jcfr @jcfr - would be happy to hear your thoughts on this. |
|
On a recent rebuild this error showed up in the Swig_build/config.log. Setting the SDK environment variable as reported above gets past this. |
|
I encounter these error last week. 1) The "-isysroot" flag was not being used in any non-CMake external projects. The following patch addresses the issue: https://github.com/Slicer/Slicer/pull/1167 To build Slicer I had to run: |
|
Thanks for the note @blowekamp. Yes, setting the SDKROOT env variable is the only thing that works for me too. |
|
With the above linked patch Slicer is very close to not needing the environment variable any more as PCRE, Python and SWIG not build find without the environment variable set. |
|
Note that this is still an issue with MacOSX 10.15 as well. After updating the OS and Xcode, the command line to invoke is: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk make -j20 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-03-29 21:07 | pieper | New Issue | |
2019-03-29 21:07 | pieper | Status | new => assigned |
2019-03-29 21:07 | pieper | Assigned To | => jcfr |
2019-03-29 21:08 | pieper | Note Added: 0016253 | |
2019-04-18 18:11 | jcfr | Additional Information Updated | View Revisions |
2019-04-18 18:11 | jcfr | Additional Information Updated | View Revisions |
2019-04-30 15:41 | jcfr | Target Version | Slicer 4.10.2 => Slicer 4.11.0 |
2019-05-07 13:44 | pieper | Note Added: 0016258 | |
2019-07-01 16:03 | blowekamp | Note Added: 0016273 | |
2019-07-01 16:19 | pieper | Note Added: 0016274 | |
2019-07-01 16:50 | blowekamp | Note Added: 0016275 | |
2019-09-24 17:52 | pieper | Note Added: 0016287 |