<div class="gmail_quote">On Wed, Feb 27, 2008 at 3:38 AM, Phil Thompson &lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; 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>
&gt; On Tue, Feb 26, 2008 at 5:42 PM, Phil Thompson<br>
&gt; &lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt;<br>
&gt;<br>
&gt; wrote:<br>
&gt; &gt; On Tuesday 26 February 2008, Joshua Bronson wrote:<br>
&gt; &gt; &gt; I just built QScintilla on a Mac running 10.5.2 for the first time, and<br>
&gt; &gt;<br>
&gt; &gt; the<br>
&gt; &gt;<br>
&gt; &gt; &gt; linking for libqscintilla2.dylib didn&#39;t come out right. The dylib was<br>
&gt; &gt;<br>
&gt; &gt; put<br>
&gt; &gt;<br>
&gt; &gt; &gt; in /Library/Frameworks, but Qsci.so was looking for it in /. After<br>
&gt; &gt;<br>
&gt; &gt; creating<br>
&gt; &gt;<br>
&gt; &gt; &gt; a symlink to it in /, it worked:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; / # python -c &#39;from PyQt4 import Qsci&#39;<br>
&gt; &gt; &gt; Traceback (most recent call last):<br>
&gt; &gt; &gt; &nbsp; File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;<br>
&gt; &gt; &gt; ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so,<br>
&gt; &gt; &gt; 2): Library not loaded: /libqscintilla2.dylib<br>
&gt; &gt; &gt; &nbsp; Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so<br>
&gt; &gt; &gt; &nbsp; Reason: image not found<br>
&gt; &gt; &gt; / # ln -s /Library/Frameworks/libqscintilla2.dylib<br>
&gt; &gt; &gt; / # python -c &#39;from PyQt4 import Qsci&#39;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I compiled it by clicking the big build button in Xcode after opening<br>
&gt; &gt;<br>
&gt; &gt; the<br>
&gt; &gt;<br>
&gt; &gt; &gt; qscintilla2.xcodeproj that qmake created.<br>
&gt; &gt;<br>
&gt; &gt; This should be fixed in the current QScintila snapshot.<br>
&gt; &gt;<br>
&gt; &gt; Phil<br>
&gt;<br>
&gt; Thanks, Phil. Is there a way for me to fix the linking by hand so I can<br>
&gt; remove the symlink? If it&#39;s too involved, I&#39;ll just leave well enough<br>
&gt; 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 &#39;from PyQt4 import Qsci&#39;<br></div><div>Traceback (most recent call last):</div>
<div>&nbsp;&nbsp;File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;</div><div>ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so, 2): Library not loaded: /libqscintilla2.dylib</div><div>&nbsp;&nbsp;Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so</div>
<div>&nbsp;&nbsp;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 &#39;from PyQt4 import Qsci&#39;</div>
<div>/ #&nbsp;</div></div>