mdolab / CMPLXFOIL

GNU General Public License v2.0
29 stars 20 forks source link

building for Mac #10

Closed nenanth closed 2 years ago

nenanth commented 2 years ago

Type of issue

Hey @bernardopacini : great work! Do you have a config.make that works with mac/gfortran 10?

bernardopacini commented 2 years ago

Hi Ananth, I use the following on my Mac (it worked with Big Sur + gfortran 10 and now Monterey + gfortran 11)

# Config File for LINUX and GFortran Compiler
AR       = ar
AR_FLAGS = -rvs

FF90       = gfortran
FF90_FLAGS = -O2 -fdefault-real-8 -fPIC

F2PY = f2py
F2PY_FF90 = gnu95

Let me know if this works for you, if not I can help debug.

nenanth commented 2 years ago

Thanks - I got an initial error and a little searching revealed the fix.

Posting my error and solution.. Error: build fails with a vague message ld: library not found for -lSystem

Solution: add one command before running make

From: https://stackoverflow.com/questions/56156520/gfortran-error-ld-library-not-found-for-lsystem-when-trying-to-compile

bernardopacini commented 2 years ago

Got it, thank you for following up and posting the link. I am glad to hear it is working for you now. I will close this for now, let us know if you run into any other issues.