Dear Ed,

Thank you for taking all the time to do that!  I'm traveling right now
but hope some time this week to tinker around with these things.  I
already do Qt software development, and so already have Qt installed.
I'll let you know how it goes.

Nathan


On Jan 15, 1:52 pm, "Edward K. Ream" <[email protected]> wrote:
> On Dec 31 2009, 5:36 pm, Nathan Carter <[email protected]>
> wrote:
>
> > I have installed SIP and PyQt4 and Leo according to its installation
> > instructions.  But every time I run Leo I get the errors below about
> > an inability to find Qt.  (I have had Qt4 on my system for some time,
> > before installing SIP or PyQt4.  I assume PyQt4 wouldn't build unless
> > Qt were there anyway?)
>
> I spent several hours yesterday investigating this, and I was finally
> able to get Leo to work on Mac OS X 10.6.1 on a big-screen Mac.  I
> think it's called an iMac :-)
>
> It wasn't fun.
>
> I have learned to take *complete* notes any time I try to install
> complex software, especially on Mac OS X.  Even with these notes, I
> can't guarantee a clear path to success because of several false
> starts.  The only way to be sure that these instructions will work
> would be to de-install everything, and that I don't know how to do,
> and it might cause other problems.
>
> With these caveats, here is the quick start:
>
> 1. Build sip and PyQt4 as usual:
>
> - cd sip (or PyQt-mac-gpl-4.6.2)
> - python configure.py
> - sudo make clean (to undo previous makes)
> - sudo make
> - sudo make install
>
> Notes:
>
> A: If make fails, you may have to download and install the Qt sdk 
> fromhttp://qt.nokia.com/downloads/sdk-mac-os-cpp
>     This is a big package: 602 meg.
>
> B: Very important.  Somewhere you may encounter in a readme file
> instructions to use the --arch i386 or --use_arch i386  option
>     when running python configure.py.  **Do not do this!**.  The qt
> binary installer (see step 2) installs the correct binaries for MacOS.
>
> 2. Install Qt using the binary package 
> athttp://qt.nokia.com/downloads/mac-os-cpp
>     This page was not easy for me to find.  I don't know why the nokia
> folk are hiding it.
>
> I believe this step is essential.  Probably because it installs Qt
> with the proper architecture.
>
> 3.  Test the install by invoking Python and then doing the following:
>
> import PyQt4
> import PyQt4.QtCore
>
> If either import fails because PyQt4 can't be found, you may have to
> add PyQt4 to your python path.  Here is my sitecustomize.py file in
> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
>
> import sys
> print ('ekr: /usr/lib/sitecustomize.py')
> #for z in sys.path:
> #    print(z)
> sys.path.append('/Library/Python/2.6/site-packages/PyQt4')
>
> You have a bigger problem if the second import fails.  Iirc (alas, I
> didn't keep notes), at first I got a message from Python about
> QtCore.so being found, but it's architecture did not match Python's.
> That is when I knew I had to use a binary installer :-)
>
> 4. Use bzr to pull down the leo-editor branch.  This is highly
> recommended because Leo 4.7 b1 is about 6 months old.  As usual, the
> initial install of bzr is a bit of a pain: you may have to create rsa
> public/private keys and tell launchpad about them.  The essential
> command is:
>
> ssh-keygen -t rsa
>
> Do *not* create a pgp key: bzr requires an rsa key.  There are
> excellent instructions 
> athttps://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair
> You can follow, as I did, the instructions for ubuntu.
>
> Whew!  I *was* able to get Qt working on the Mac.  Having said that,
> there are several reservations:
>
> 1. It's clear that forcing people to install bzr is a big barrier.  I
> get annoyed every time I have to generate an ssh key.  It's getting
> easier, but it is never fun. The reinforces the need for a b2 release
> asap.
>
> 2. Mac key bindings are not the same as ubuntu or Windows. It's not
> clear to me whether this is a major problem, but you will want to do
> some playing with the key bindings.
>
> HTH and good luck. If you are able to get Qt installed, please let me
> know how it went.  Thanks.
>
> Edward
-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.


Reply via email to