[PyQt] OSX 10.6 compilation
William Kyngesburye
woklist at kyngchaos.com
Fri Jun 25 15:07:13 BST 2010
(replies to both below)
On Jun 25, 2010, at 4:41 AM, Daniele Esposti wrote:
> I wrote some instructions to compile SIP and PyQt4 under Mac OS X Snow
> Leopard, here the link
> http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard .
>
> I hope these are good for you
>
A couple notes:
- you can now compile a 64bit PyQt - install Qt Cocoa 4.6. Then add --arch=x86_64 to SIP config, and no need for the --usearch= flag in the pyqt config.
- the default configuration puts the python module, executables and headers in the system Python framework. This is really not a good thing to do (leave the /System to Apple). Better to put them in user locations with some extra flags. For SIP:
python configure.py -n -d /Library/Python/2.6/site-packages -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip --arch=i386 --arch=x86_64
For PyQt:
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin
> On 25 June 2010 02:39, David Quinn <daithiquinn at gmail.com> wrote:
>> Hello,
>>
>> I'm having difficulty compiling SIP-4.10.2 on Snow Leopard. I get the
>> following message:
>>
>> ld: warning: in gencode.o, file is not of required architecture
>> ld: warning: in export.o, file is not of required architecture
>> ld: warning: in heap.o, file is not of required architecture
>> ld: warning: in parser.o, file is not of required architecture
>> ld: warning: in lexer.o, file is not of required architecture
>> .....
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[1]: *** [sip] Error 1
>> make: *** [all] Error 2
>>
>> Is there an easier way that compiling the files to install it? I've
>> tried most of the different options that I found via google, without
>> success. I'm also not very sure what I'm doing aside from following
>> instructions.
look further up in the Terminal output for when it's compiling one of those bad object files, what is the c++ command and is there any error after it?
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
[Trillian] What are you supposed to do WITH a maniacally depressed robot?
[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
- HitchHiker's Guide to the Galaxy
More information about the PyQt
mailing list