<div class="gmail_quote">On Wed, Feb 27, 2008 at 3:38 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On Tuesday 26 February 2008, you wrote:<br>
> On Tue, Feb 26, 2008 at 5:42 PM, Phil Thompson<br>
> <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>><br>
><br>
> wrote:<br>
> > On Tuesday 26 February 2008, Joshua Bronson wrote:<br>
> > > I just built QScintilla on a Mac running 10.5.2 for the first time, and<br>
> ><br>
> > the<br>
> ><br>
> > > linking for libqscintilla2.dylib didn't come out right. The dylib was<br>
> ><br>
> > put<br>
> ><br>
> > > in /Library/Frameworks, but Qsci.so was looking for it in /. After<br>
> ><br>
> > creating<br>
> ><br>
> > > a symlink to it in /, it worked:<br>
> > ><br>
> > > / # python -c 'from PyQt4 import Qsci'<br>
> > > Traceback (most recent call last):<br>
> > > File "<string>", line 1, in <module><br>
> > > ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so,<br>
> > > 2): Library not loaded: /libqscintilla2.dylib<br>
> > > Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so<br>
> > > Reason: image not found<br>
> > > / # ln -s /Library/Frameworks/libqscintilla2.dylib<br>
> > > / # python -c 'from PyQt4 import Qsci'<br>
> > ><br>
> > > I compiled it by clicking the big build button in Xcode after opening<br>
> ><br>
> > the<br>
> ><br>
> > > qscintilla2.xcodeproj that qmake created.<br>
> ><br>
> > This should be fixed in the current QScintila snapshot.<br>
> ><br>
> > Phil<br>
><br>
> Thanks, Phil. Is there a way for me to fix the linking by hand so I can<br>
> remove the symlink? If it's too involved, I'll just leave well enough<br>
> alone.<br>
<br>
</div></div>You need to run install_name_tool on Qsci.so to tell it the full pathname of<br>
the QScintilla .dylib.<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br><div>Thanks Phil, that worked like a charm.</div><div><br class="webkit-block-placeholder"></div><div><div>/ # python -c 'from PyQt4 import Qsci'<br></div><div>Traceback (most recent call last):</div>
<div> File "<string>", line 1, in <module></div><div>ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so, 2): Library not loaded: /libqscintilla2.dylib</div><div> Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so</div>
<div> Reason: image not found</div><div>/ # install_name_tool -change /libqscintilla2.dylib /Library/Frameworks/libqscintilla2.dylib /Library/Python/2.5/site-packages/PyQt4/Qsci.so<br></div><div>/ # python2.5 -c 'from PyQt4 import Qsci'</div>
<div>/ # </div></div>