~/opt/qt-4.6.0/
, 에있는 내 자신의 Qt4 라이브러리를 사용하여 Python 모듈을 컴파일했지만 해당 모듈을 가져 오려고하면로드되는 동적 라이브러리는 MacPorts Qt4 설치에서 가져옵니다.잘못된 Mac OS X 프레임 워크가로드 됨
$ /opt/local/bin/python2.6
>>> import vtk
objc[58041]: Class QMacSoundDelegate is implemented in both /Users/luis/opt/qt-4.6.0/lib/QtGui.framework/Versions/4/QtGui and /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui. Using implementation from /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui.
objc[58045]: Class QCocoaColorPanelDelegate is implemented in both /Users/luis/opt/qt-4.6.0/lib/QtGui.framework/Versions/4/QtGui and /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui. Using implementation from /opt/local/libexec/qt4-mac/lib/QtGui.framework/Versions/4/QtGui.
[... more output like above ...]
>>>
내 ~/opt/qt-4.6.0/lib/
디렉토리에있는 프레임 워크를로드 (또한 MacPorts를에서 설치) 파이썬을 말하는 방법이 있나요? 어떤 환경 변수를 변경해야할지 모르겠습니다.
전에 LD_LIBRARY_PATH를 시도했지만 작동하지 않았습니다. 하지만 'dyld'에 대한 포인터를 가져 주셔서 감사합니다. 그것의 man 페이지는 매우 유익하다. 이 문제를 해결할 수 있는지 알아 보겠습니다. – Luis
DYLD_LIBRARY_PATH도 사용해 보셨습니까? –
... 방금 당신의 대답을 보았습니다. 다행스럽게 생각 했어. –