← Back to team overview

dolfin team mailing list archive

Re: dolfin works on mac os x

 

On Sun, 2006-06-18 at 13:01 -0400, Harish Narayanan wrote:
> Beni Stamm wrote:
> > Thanks for your support. finally it works! To resume for future mac users:
> >
> > My configuration: MacBookPro with intel duo-core processor, mac os x 
> > 10.4.6
> >
> > Installed libraries: - libtool 1.5.22 (precompiled package of fink)
> > - boost 1.33.1 (compiled on my computer)
> > - mpich2 1.0.3 (compiled on my computer)
> > - atlas ??? (compiled on my computer)
> > - petsc 2.3.1-p13 (compiled on my computer)
> >
> > The problems I had to handle (and its solutions) are:
> > 1. Use the glibtool (the gnu libtool) and not the os x libtool (thanks 
> > Johan and Harish)
> > 2. disable shared libraries for configuration (i.e. --enable-shared=no)
> I didn't realise people where having problems, or I would have 
> documented this information. Augmenting your notes, for completeness:
> 
> 1. You don't need to fetch libtool from Fink. Look in /usr/bin, you 
> already have (GNU) glibtool and glibtoolize along with libtool and 
> libtoolize. All you need to do is make sure you set up symlinks to use 
> the appropriate ones. I wasn't clear enough about this in my last e-mail.
> 

We could test for the OS, and use glibtool for OS X. Shouldn't be hard
(just a test in configure.ac), but I don't have access to an OS X
machine to test. Patches welcome! :)

Garth


> For instance, for me, /usr/local/bin is higher on my $PATH than 
> /usr/bin. So I just create symlinks to glibtool and glibtoolize as 
> libtool and libtoolize in /usr/local/bin. This works as expected.
> 
> 2.  You can configure it without --enable-shared=no (I do), if you just 
> set dynamic library load paths as I hinted at earlier. I prefer doing 
> this to static library compilation.
> 
> Harish
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev




References