Hi-
Recently updated from Mac 10.6.8 to Mac Mavericks (10.9.5). And of course, I'm suffering with some of the changes. I can no longer build from source.
For starters, what makefile should I use to build AFNI from source? I tried various Makefile.macosx_10.{7,8}* without success, getting quick breaks:
bash-3.2$ sudo make vastness
( cd niml/ ; make all 'CC=/usr/local/bin/gcc -O2 -DDARWIN -m64 -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -UDONT_USE_MCW_MALLOC ' ; /bin/mv -f *.o .. ; )
make[1]: Entering directory `/Users/user/afni_src/niml'
/usr/local/bin/gcc -O2 -DDARWIN -m64 -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -UDONT_USE_MCW_MALLOC -c niml_b64.c
make[1]: /usr/local/bin/gcc: Command not found
make[1]: *** [niml_b64.o] Error 127
make[1]: Leaving directory `/Users/user/afni_src/niml'
mv: rename *.o to ../*.o: No such file or directory
make: *** [niml_b64.o] Error 1
... and then I have tried Makefile.macosx_10.6_Intel_64 (and I have to add in '-lpng -ljpeg' explicitly a couple times), only to get errors further on down the build road:
make[3]: Leaving directory `/Users/user/afni_src/XmHTML/lib/Motif'
rm -f libXmHTML.a \
ar cq libXmHTML.a common/*.o Motif/*.o
/opt/local/bin/ranlib: file: libXmHTML.a(debug.o) has no symbols
/opt/local/bin/ranlib: file: libXmHTML.a(debug_menu.o) has no symbols
ranlib libXmHTML.a
ranlib: file: libXmHTML.a(debug.o) has no symbols
ranlib: file: libXmHTML.a(debug_menu.o) has no symbols
make[2]: Leaving directory `/Users/user/afni_src/XmHTML/lib'
make[1]: Leaving directory `/Users/user/afni_src/XmHTML'
make[1]: Entering directory `/Users/user/afni_src/XmHTML'
+ cd lib
+ make clean SHELL=/bin/sh VERSION=1107 CC=cc 'RM=rm -f' 'AR=ar cq ' MV=mv CP=cp 'LN=ln -sf' RANLIB=ranlib MAKEDEPEND=gccmakedep CFLAGS= LDFLAGS= 'CPPFLAGS=-DNDEBUG -DHAVE_REGEX_H -DHAVE_LIBJPEG -DMotif' 'INCLUDES=-I. -I../include -I../include/common -I../../include -I../../include/common -I../../../jpeg-6b -I../../include/XmHTML -I/usr/X11R6/include ' 'LOADLIBES=-L/usr/X11R6/lib -L../../.. -lXm -lXpm -lXmu -lXp -lXt -lXext -lX11 -lSM -lICE -ljpeg -lpng -lz -lm' DMALLOCLIB= 'ZLIBLIB=-lz -lm' PLATFORM=Motif
make[2]: Entering directory `/Users/user/afni_src/XmHTML/lib'
+ cd common
+ make clean
make[3]: Entering directory `/Users/user/afni_src/XmHTML/lib/common'
rm -f events.o hash.o stack.o format.o fonts.o paint.o readXPM.o readJPEGplc.o quantize.o colors.o private.o readBitmap.o public.o readPNG.o readGIFplc.o readGIF.o error.o callbacks.o StringUtil.o images.o readFLG.o readJPEG.o parse.o map.o layout.o LZWStream.o psoutput.o HTTP.o cookie.o debug.o
make[3]: Leaving directory `/Users/user/afni_src/XmHTML/lib/common'
readPNG.o readGIFplc.o readGIF.o error.o callbacks.o StringUtil.o images.o readFLG.o readJPEG.o parse.o map.o layout.o LZWStream.o psoutput.o HTTP.o cookie.o debug.o
make[3]: Leaving directory `/Users/user/afni_src/XmHTML/lib/common'
+ cd Motif
+ make clean
make[3]: Entering directory `/Users/user/afni_src/XmHTML/lib/Motif'
rm -f motif.o XmHTML.o output.o XmImage.o plc.o frames.o textsel.o forms.o XCC.o Balloon.o warnings.o strings.o debug_menu.o
make[3]: Leaving directory `/Users/user/afni_src/XmHTML/lib/Motif'
rm -f libXmHTML.a
make[2]: Leaving directory `/Users/user/afni_src/XmHTML/lib'
make[1]: Leaving directory `/Users/user/afni_src/XmHTML'
/bin/rm -f afni
cc -O2 -DDARWIN -m64 -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -no-cpp-precomp -UDONT_USE_MCW_MALLOC -o afni afni.o afni_func.o afni_widg.o afni_warp.o afni_fimmer.o afni_slice_short.o afni_slice_float.o afni_filer.o afni_slice_byte.o afni_slice_complex.o afni_pcor.o afni_pcor_float.o afni_transforms.o pbar.o afni_graph.o afni_plugin.o afni_cluster.o parser.o parser_int.o afni_plugout.o afni_fimfunc.o afni_setup.o afni_receive.o mcw_graf.o afni_splash.o afni_pplug_env.o afni_pplug_2dfunc.o afni_friends.o afni_ttren.o afni_pplug_1dfunc.o afni_driver.o afni_niml.o afni_sumafunc.o afni_slice_rgbyte.o afni_version.o afni_lock.o afni_vol2surf.o afni_pplug_instacorr.o afni_pplug_instacalc.o -m64 -dynamic -L. -L/sw/lib -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -L/sw/lib -Wl,-x -Wl,-multiply_defined -Wl,warning -Wl,-bind_at_load -lmrix -lcoxplot -lmri -lvolpack libXmHTML.a libjpeg.a -lmri -lf2c /sw/lib/libXm.a -lXt -lpng -ljpeg -lXft -lfontconfig -liconv -lXmu -lXp -lXpm -lXext -lX11 -lz /sw/lib/libexpat.a -lm -lc -lm -lc
Undefined symbols for architecture x86_64:
"_xxMRI_rotfunc", referenced from:
_mri_rotate in libmri.a(mri_warp.o)
_mri_rotate_bilinear in libmri.a(mri_warp.o)
"_xxMRI_scaler", referenced from:
_mri_resize in libmri.a(mri_warp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [afni] Error 1
Any advice is quite welcome.
Thanks,
pt