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

Fix the cmake packaging issue on macOS #6388

Merged
merged 3 commits into from
Feb 28, 2022
Merged

Fix the cmake packaging issue on macOS #6388

merged 3 commits into from
Feb 28, 2022

Conversation

seisman
Copy link
Member

@seisman seisman commented Feb 25, 2022

Description of proposed changes

The workflow fails to make the macOS bundle, with the following error message:

/Applications/Xcode_13.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic:
  can't open file: @rpath/libgeos.3.10.1.dylib (No such file or directory)

It's unclear why other libraries (like gdal) have abosulte paths, but the geos library has a relative path @rpath/libgeos.3.10.1.dylib. So the root cause of the error is still unclear to me.

A temporary workaround is passing extra RPATH (/usr/local/lib for homebrew) as the last parameter of the fixup_bundle function.

Fixes #6025.

@seisman seisman changed the title Fix the cmake packaging issue on macOS WIP: Fix the cmake packaging issue on macOS Feb 25, 2022
@seisman seisman changed the title WIP: Fix the cmake packaging issue on macOS Fix the cmake packaging issue on macOS Feb 25, 2022
@seisman
Copy link
Member Author

seisman commented Feb 25, 2022

With the workaround in this PR, the workflow now can create the macOS bundle correctly.

@meghanrjones Please check if it works for you (I assume that you're a Homebrew user)
@PaulWessel Please check if it breaks your building with macports.

@maxrjones
Copy link
Member

Thanks for working on this. admin/build-release.sh -t ran without errors for me using this PR.

@joa-quim
Copy link
Member

Will the bundle with this build be usable for pygmt?

@PaulWessel
Copy link
Member

I think that is a separate PR that we need to work on for both Julia and PyGMT.

@seisman
Copy link
Member Author

seisman commented Feb 26, 2022

@PaulWessel does this PR affects your bundle building with macports?

@PaulWessel
Copy link
Member

Not sure, will try soon

@PaulWessel
Copy link
Member

No errors on Mac ports. I have not actually tested the bundle yet, maybe on upcoming flight

@PaulWessel
Copy link
Member

Build works, and running gmt coast with the installed bundle works for me on M1 macOS, macports..

.github/workflows/docs.yml Outdated Show resolved Hide resolved
@seisman seisman marked this pull request as ready for review February 27, 2022 23:44
@seisman seisman merged commit 78a2e36 into master Feb 28, 2022
@seisman seisman deleted the fix-macos-packaging branch February 28, 2022 00:45
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.

Bundle step fails on the macOS docs workflow
4 participants