forked from optimizers/nlpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadme.macosx
28 lines (18 loc) · 1.08 KB
/
Readme.macosx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Comments pertaining to Mac OS/X users.
1) If compiling on Leopard (10.5.*), you may receive the error message
undefined symbol: _strtod_ASL
The problem is coming from the flags used to build the LibAmpl libraries.
The solution is to add the flag
-mmacosx-version-min=10.4
to the compiler options and to rebuild LibAmpl, i.e., switch to $LIBAMPL and
issue the command 'make mrclean ; make' at the command line.
2) If compiling on Snow Leopard (10.6.*), you may receive error messages
related to the architecture being linked (and the build might fail). One
solution seems to be to set the environment variables CFLAGS, FFLAGS and
LDFLAGS appropriately before building. For example:
CFLAGS='-arch x86_64 -mmacosx-version-min=10.5' \
FFLAGS='-arch x86_64 -mmacosx-version-min=10.5' \
LDFLAGS='-arch x86_64 -Wall -undefined dynamic_lookup -bundle -mmacosx-version-min=10.5' \
python setup.py build config_fc --fcompiler=gfortran
(all on one line). See, e.g., http://goo.gl/LNaA
Note that LibAmpl should have been built using the same flags.