[MINC-users] compiling dyld, 32, 64?

Alexandre CARMEL-VEILLEUX acveilleux at mrs.mni.mcgill.ca
Thu Mar 19 14:52:26 EDT 2009


On Wed, Mar 18, 2009 at 11:37:49PM -0400, Jon Erik Ween wrote:
> 
> I gave up trying to compile the visualization tools as all other tools  
> compiled well once I ditched the fink libraries in favor of those in  
> Alex' package, used his configure parameters and figured out to untar  
> in /usr/local (and not in a package directory above that, like one  
> might usually do to segregate stuff). Hence, the lib dependencies were  
> broken. Alex, you may wish to but a line in the README file for noobs  
> like me:
> 
> "Extract in /usr/local"

The alternative is to setup your environment DYLD_LIBRARY_PATH.

Suppose you untared my package in /opt/local

(csh:)
setenv DYLD_LIBRARY_PATH "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/opt/local/lib:${DYLD_LIBRARY_PATH}"

(bash:)
export DYLD_LIBRARY_PATH="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/opt/local/lib:${DYLD_LIBRARY_PATH}"

	The first item in the DYLD_LIBRARY_PATH should resolve the infamous
libJPEG problem. It seems that ld will scan all those dirs, figure out the
difference between libJPEG.dylib and libjpeg.dylib and use the right one (so ld
on mac is case-sensite/case-preserving internally).

Alex

> 
> Anyhow, thanks for all the help from everyone, this is what makes  
> opensource a great place to be! When (if) I find the energy, I'll try  
> building everything from scratch.
> 
> Cheers
> 
> Jon
> 
> Soli Deo Gloria
> 
> 
> On 6-Mar-09, at 2:22 PM, Alexandre CARMEL-VEILLEUX wrote:
> 
> > On Fri, Mar 06, 2009 at 01:46:00PM -0500, Dale Einarson wrote:
> >>
> >> Sadly I have had to do such ugly hacks as,
> >> HDF
> >> 	perl -pi -e 's/-O2 -g x86_64 -arch/-g -O2 -arch x86_64/g' Makefile  
> >> */
> >> Makefile */*/Makefile */*/*/Makefile
> >>
> >> LIBTOOL
> >> 	perl -pi -e 's/-fno-builtin/-arch x86_64 -fno-builtin/g' libtool
> >> 	perl -pi -e 's/-dynamiclib/-dynamiclib -arch x86_64/g' libtool
> >
> > The following configure line is what I used combined with the  
> > libtool hack
> > I mentionned:
> >
> > ./configure CFLAGS="-O2 -arch x86_64 -m64" CXXFLAGS="-O2 -arch  
> > x86_64 -m64" --with-szlib=yes --with-zlib=yes --prefix=/usr/local
> >
> > Alex
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www2.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
> 
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www2.bic.mni.mcgill.ca/mailman/listinfo/minc-users


More information about the MINC-users mailing list