[QScintilla] linking libqscintilla2.dylib
Joshua Bronson
jabronson at gmail.com
Wed Feb 27 15:22:36 GMT 2008
On Wed, Feb 27, 2008 at 3:38 AM, Phil Thompson <phil at riverbankcomputing.com>
wrote:
> On Tuesday 26 February 2008, you wrote:
> > On Tue, Feb 26, 2008 at 5:42 PM, Phil Thompson
> > <phil at riverbankcomputing.com>
> >
> > wrote:
> > > On Tuesday 26 February 2008, Joshua Bronson wrote:
> > > > I just built QScintilla on a Mac running 10.5.2 for the first time,
> and
> > >
> > > the
> > >
> > > > linking for libqscintilla2.dylib didn't come out right. The dylib
> was
> > >
> > > put
> > >
> > > > in /Library/Frameworks, but Qsci.so was looking for it in /. After
> > >
> > > creating
> > >
> > > > a symlink to it in /, it worked:
> > > >
> > > > / # python -c 'from PyQt4 import Qsci'
> > > > Traceback (most recent call last):
> > > > File "<string>", line 1, in <module>
> > > > ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so,
> > > > 2): Library not loaded: /libqscintilla2.dylib
> > > > Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so
> > > > Reason: image not found
> > > > / # ln -s /Library/Frameworks/libqscintilla2.dylib
> > > > / # python -c 'from PyQt4 import Qsci'
> > > >
> > > > I compiled it by clicking the big build button in Xcode after
> opening
> > >
> > > the
> > >
> > > > qscintilla2.xcodeproj that qmake created.
> > >
> > > This should be fixed in the current QScintila snapshot.
> > >
> > > Phil
> >
> > Thanks, Phil. Is there a way for me to fix the linking by hand so I can
> > remove the symlink? If it's too involved, I'll just leave well enough
> > alone.
>
> You need to run install_name_tool on Qsci.so to tell it the full pathname
> of
> the QScintilla .dylib.
>
> Phil
>
Thanks Phil, that worked like a charm.
/ # python -c 'from PyQt4 import Qsci'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.5/site-packages/PyQt4/Qsci.so, 2):
Library not loaded: /libqscintilla2.dylib
Referenced from: /Library/Python/2.5/site-packages/PyQt4/Qsci.so
Reason: image not found
/ # install_name_tool -change /libqscintilla2.dylib
/Library/Frameworks/libqscintilla2.dylib
/Library/Python/2.5/site-packages/PyQt4/Qsci.so
/ # python2.5 -c 'from PyQt4 import Qsci'
/ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20080227/87c24006/attachment.html
More information about the QScintilla
mailing list