[MINC-development] Building MINC for OS X 10.6

Burt Crépeault burt.crepeault at crulrg.ulaval.ca
Tue Mar 30 14:38:11 EDT 2010


On Mon, Mar 29, 2010 at 23:23, Andrew Janke <a.janke at gmail.com> wrote:

> > I'm currently attempting a full build of all the latest MINC packages
> from
> > http://packages.bic.mni.mcgill.ca/tgz/ on OS X version 10.6 (Snow
> Leopard)
>
> > Is there a list of all the packages not included on
> > http://packages.bic.mni.mcgill.ca/tgz/ and for which one or more of the
> MNI
> > packages have dependencies? I'm thinking of stuff like ImageMagick, Coin
> and
> > gsl.
>
> It depends on the platform (and keeps changing). Here is a list I use
> for the Ubuntu Karmic though:
>
>  netcdfg-dev libhdf5-serial-dev libnetpbm9-dev fftw-dev libgsl0-dev
> libgetopt-tabular-perl libmni-perllib-perl libxext-dev glutg3-dev
> libsoqt3-dev libxmu-dev libxi-dev imagemagick libtext-format-perl
> libpcre++0 libpcre3 libsimage-dev libpcre++-dev
>

Ah the beauty of the Debian/Ubuntu package manager... The list gets much
longer when you include the dependencies of the dependencies. There used to
be a MINC port on Fink or Macports but I think it's grown out of date. Who
was the owner of those ports by the way? If i'm successful here, I might
consider maintaining them and save future Mac users some sweat.


>
> >
> > Makefile.PL: I don't grok the manifypods section, so can't tweak the
> pod2man
> > args at Makefile.PL line 162.
> > Perl version is 5.10 on this Mac.
>
> > mni_perllib-0.08: I get the following error:
> Safe to ignore.
>
>
Certain? The script doesn't seem to finish as no config.h is created. Make
won't run.


>  > bicInventor-0.3.1: I can't get passed the message:
> > configure: error: cannot find required library GL
> > brain-view-0.7.0: Even though I installed Coin, I still get:
>
> Jason?
>


I was able to build bicInventor by using LDFLAGS as such:

./configure
LDFLAGS="-L/Library/Frameworks/Inventor.framework/Versions/C/Libraries"
--prefix=/Users/burt/Desktop/build/install
--with-build-path=/Users/burt/Desktop/build/install --with-minc2
--x-includes=/usr/X11/include --x-libraries=/usr/X11/lib

I suppose the same could be accomplished with brain-view but I'm going to
let that one drop for now as we don't really need it.


I must add another one to the list: xdisp-4.6 doesn't build. Here's the
complete trace:

neon:xdisp-4.6:# ./configure --prefix=/Users/burt/Desktop/build/install
--with-build-path=/Users/burt/Desktop/build/install --with-minc2
--x-includes=/usr/X11/include --x-libraries=/usr/X11/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for library m... yes
checking for library netcdf... yes
checking for library z... yes
checking for library hdf5... yes
checking for library minc2... yes
checking for library volume_io2... yes
configure: creating ./config.status
config.status: creating epm-header
config.status: creating Makefile
config.status: creating olgx/Makefile
config.status: creating config.h
config.status: executing depfiles commands

neon:xdisp-4.6:# make
make  all-recursive
Making all in olgx
if gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/Users/burt/Desktop/build/install/include  -g -O2 -MT ol_button.o -MD -MP
-MF ".deps/ol_button.Tpo" -c -o ol_button.o ol_button.c; \
    then mv -f ".deps/ol_button.Tpo" ".deps/ol_button.Po"; else rm -f
".deps/ol_button.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/Users/burt/Desktop/build/install/include  -g -O2 -MT ol_color.o -MD -MP
-MF ".deps/ol_color.Tpo" -c -o ol_color.o ol_color.c; \
    then mv -f ".deps/ol_color.Tpo" ".deps/ol_color.Po"; else rm -f
".deps/ol_color.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/Users/burt/Desktop/build/install/include  -g -O2 -MT ol_draw.o -MD -MP
-MF ".deps/ol_draw.Tpo" -c -o ol_draw.o ol_draw.c; \
    then mv -f ".deps/ol_draw.Tpo" ".deps/ol_draw.Po"; else rm -f
".deps/ol_draw.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/Users/burt/Desktop/build/install/include  -g -O2 -MT ol_init.o -MD -MP
-MF ".deps/ol_init.Tpo" -c -o ol_init.o ol_init.c; \
    then mv -f ".deps/ol_init.Tpo" ".deps/ol_init.Po"; else rm -f
".deps/ol_init.Tpo"; exit 1; fi
ol_init.c:12:20: error: malloc.h: No such file or directory
ol_init.c: In function ‘olgx_get_perdisplay_list’:
ol_init.c:1564: warning: assignment makes integer from pointer without a
cast
ol_init.c:1565: warning: assignment makes integer from pointer without a
cast
make[2]: *** [ol_init.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/minc-development/attachments/20100330/fcb2439d/attachment.htm>


More information about the MINC-development mailing list