[Pythonmac-SIG] with libraries compiled with intel compilers, intel libguide.dylib not included

Dan White dan at chalkie.org.uk
Tue Jun 20 19:08:34 CEST 2006

On 15 Jun 2006, at 10:55, Ronald Oussoren wrote:

> On 15-jun-2006, at 9:28, Dan White wrote:
>> So yes there are some DYLD_LIBRARY_PATH suff set.
>> Maybe therein lies the problem...?
>> Python probably doesn't know about that stuff?
> That might be the problem, and seems to indicate that Intel does  
> something completely wrong. Any use of the DYLD_* variables in a  
> production environment is an indication that something fishy is  
> going on. Unlike linux executables on osx contain the full path to  
> libraries they link to. If DYLD_LIBRARY_PATH is needed the compiler  
> doesn't include the full path to some libraries that are needed. It  
> should be possible to teach py2app/macholib about this "feature" of  
> the intel compiler, but you'll probably have to do that yourself.

I tried fixing the .dylibs in my application bindle (made by py2app)
  that were unable to find libguide.dylib
using for instance

install_name_tool -change libguide.dylib @executable_path/../ 
Frameworks/libguide.dylib /Users/dan/Desktop/bioimagexdsvn/trunk/dist/ 

and it worked ok!
(My .app still fails to launch form some pythonic reason in our code  

so is it a case of teaching macholib this trick for the case of

DATA_FILES.append( ('../Frameworks', [

or am I barking up the wrong tree.
I'm not sure macholib doesnt already do this, as it does when you  
tell py2app to append other
dylibs into ../Frameworks? Or doesnt it do that for dylibs actually?
DATA_FILES.append literally just to put data files there, and  
macholib knows nothing about it.



Dr. Daniel James White BSc. (Hons.) PhD
Bioimaging Coordinator
Nanoscience Centre and Department of Biological and Environmental  
Division of Molecular Recognition
Ambiotica C242
PO Box 35
University of Jyväskylä
FIN 40014

+358 14 260 4183 (work)
+358 468102840 (mobile)
dan at chalkie.org.uk
white at cc.jyu.fi

More information about the Pythonmac-SIG mailing list