Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS compilation modifications for fanckush's PR #1

Merged
merged 1 commit into from
May 11, 2019

Conversation

Benitoite
Copy link

Install git before homebrew on systems sans Xcode installation.
Some sudos not required for default toolchain build on Sierra+.
Remove SYSROOT from cmake command.
Swap libiomp5 for libomp in cmake command.
ditto instead of cp to allow upgrades, in case HDRmerge.app was previously installed in /Applications.
Renumbered steps.

Install `git` before homebrew on systems sans Xcode installation.
Some `sudo`s not required for default toolchain build on Sierra+.
Remove SYSROOT from cmake command.
Swap `libiomp5` for `libomp` in cmake command.
`ditto` instead of `cp` to allow upgrades, in case `HDRmerge.app` was previously installed in `/Applications`.
Renumbered steps.
@fanckush
Copy link
Owner

Nice! thanks.

  • As far as I know, git is installed with Xcode Command Line Tools (that are installed when installing HomeBrew)
  • What is the purpose of SYSROOT anyways?

@Benitoite
Copy link
Author

The brew installation command (on a base Sierra system) required git to be installed first. If git is present, that step would be skippable of course.

Sysroot is for cross compiling across recent/legacy versions of an OS. It references an SDK which is located or manually placed inside the xcode package. Xcode doesn't ship with legacy SDKs, so they must either be salvaged from old xcodes or downloaded from https://github.com/phracker/MacOSX-SDKs/releases
The SDKs contain all the OS linkables, for example /usr/lib/libz.1.dylib, etc.

@fanckush fanckush merged commit ef4a859 into fanckush:macOS-instructions May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants