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

can't build on ARM-based macs #26

Closed
BenWibking opened this issue Nov 15, 2022 · 2 comments · May be fixed by #28
Closed

can't build on ARM-based macs #26

BenWibking opened this issue Nov 15, 2022 · 2 comments · May be fixed by #28

Comments

@BenWibking
Copy link

If I install openmotif with Homebrew as recommended in the documentation (https://amrex-codes.github.io/amrex/docs_html/Visualization.html#building-amrvis-on-macos), I get a compile error when trying to build Amrvis.

This is because XQuartz 2.8.0+ has removed X11/extensions/Print.h (see here: XQuartz/XQuartz#131).

Unfortunately, XQuartz 2.8.0 and newer are the only versions that run on ARM-based Macs, so it does not appear possible to build Amrvis on ARM-based Macs, unless there is a way to install Openmotif without requiring the Print.h header.

@BenWibking
Copy link
Author

BenWibking commented Nov 15, 2022

I can actually build Motif 2.3.8 from source (https://sourceforge.net/projects/motif/files/Motif%202.3.8%20Source%20Code/motif-2.3.8.tar.gz/download), as long as I specify gcc rather than Apple Clang via:
CC=gcc-12 ./configure --prefix=$HOME/motif_install.

I then run into the issue in #27 when building Amrvis itself.

@BenWibking
Copy link
Author

BenWibking commented Nov 15, 2022

For some reason, using the paths in /opt/homebrew rather than /opt/homebrew/Cellar/openmotif fixes this issue. Building motif from source is not necessary.

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 a pull request may close this issue.

1 participant