[Insight-users] ITK, OS X and install_name
    Zachary Pincus 
    zpincus at stanford.edu
       
    Wed Aug 16 20:36:38 EDT 2006
    
    
  
Hi folks,
I've been out of the loop for a little while on ITK, so apologies if  
this question has come up before. (I can't find it in the archives  
though.)
Anyhow, I just cvs-updated and rebuilt ITK on my OS X machine. This  
time, I took the step of installing ITK into a shared directory so  
other users could link to the ITK libraries. However, this doesn't  
work because the ITK build process is not setting any install_name  
for the installed ITK libraries. So while the linker can find the  
libraries at build time, the loader can't find them at runtime  
because there is no install_name. The only way to make things work is  
to always remember to set the DYLD_LIBRARY_PATH environment variable  
to point to the place that the ITK libraries live. (Or to put the ITK  
libs in one of the default load directories like /usr/lib/.)
I think that CMake now has the ability to include a proper  
install_name for libraries, so that this sort of muppetry can be  
avoided. (See e.g. http://mail.kde.org/pipermail/kde-buildsystem/2006- 
February/001426.html ) Is support for install_name planned for ITK on  
OS X?
If so, can I help with that in any way?
Zach Pincus
Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine
    
    
More information about the Insight-users
mailing list