Quantcast

Forums | MacLife

You are not logged in.

#1 2006-01-22 5:54 pm

Basseq
Fixxy of F&S fame
From: D.C.
Registered: 2002-12-18
Posts: 3125
Website

Python PyObjC build error

Hey All,

I'm building PyObjC and running into an error. It went through build and puild_py. However, in build_ext, I'm getting the following errors:

Code:

Performing task: Generating wrappers & stubs
/usr/bin/python Scripts/CodeGenerators/cocoa_generator.py
building 'QTKit._QTKit' extension
gcc -Wl,-F. -Wl,-F. -bundle -framework Python build/temp.darwin-7.9.0-Power_Macintosh-2.3/Modules/QTKit/_QTKit.o -o build/lib.darwin-7.9.0-Power_Macintosh-2.3/QTKit/_QTKit.so -framework QTKit -framework Foundation
ld: Undefined symbols:
_LLCStyleInfoCheckForOpenTypeTables referenced from QTKit expected to be defined in Carbon
_LLCStyleInfoGetUserRunFeatures referenced from QTKit expected to be defined in Carbon
_HICopyAccessibilityActionDescription referenced from QuickTime expected to be defined in Carbon
_HICopyAccessibilityRoleDescription referenced from QuickTime expected to be defined in Carbon
_LLCStyleInfoCheckForOpenTypeTables referenced from QuickTime expected to be defined in ApplicationServices
_LLCStyleInfoGetUserRunFeatures referenced from QuickTime expected to be defined in ApplicationServices
error: command 'gcc' failed with exit status 1

I'm running the following command from within the /Library/Python/2.3/pyobjc/ folder:

Code:

python setup.py bdist_mpkg --open

I'm on OS 10.3.9. Thanks,


Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)

Offline

 

#2 2006-01-22 7:28 pm

skymt
Lycanthropic Cowboy
From: Limbo until Q2 2006
Registered: 2004-09-02
Posts: 775

Re: Python PyObjC build error

Well, the error message mentions QTKit, which was introduced in Tiger. I also know that the 10.3.9 mostly included backported Tiger features and bugfixes. I'm running Tiger, but I searched the 10.3.9 SDK for "qtkit" using Spotlight and didn't find anything. So I assume that it isn't one of the backported features.

That would seem to suggest that PyObjC needs Tiger, but the PyObjC site mentions cats back to Jaguar. That means there's probably a bug somewhere in setup.py. Poke through the build files and see if you can disable the QTKit parts. I'm assuming you know enough Python to do that.

Offline

 

#3 2006-01-22 11:21 pm

Basseq
Fixxy of F&S fame
From: D.C.
Registered: 2002-12-18
Posts: 3125
Website

Re: Python PyObjC build error

Well, it's only throwing a couple errors related to QTKit, so I was wondering if anyone knew of a setting or something that could contribute to this error. Anyway, pretty much just disabled QTKit altogether and it compiled fine. Interesting...

On a related note, there a couple definitions like this in setup.py:

Code:

packages = (
    CorePackages +
    AppKitPackages +
    FoundationPackages +
    AddressBookPackages +
    PrefPanesPackages +
    InterfaceBuilderPackages +
    ScreenSaverPackages +
    WebKitPackages +
    MessagePackages +
    SecurityInterfacePackages +
    ExceptionHandlingPackages +
    # Mac OS X 10.4
    AppleScriptKitPackages +
    AutomatorPackages +
    CoreDataPackages +
    DiscRecordingPackages +
    DiscRecordingUIPackages +
    SyncServicesPackages +
    XgridFoundationPackages +
    QTKitPackages +
    QuartzPackages +
    OSAKitPackages +
    SenTestingKitPackages +

Which would imply that the features below the comment were Tiger-only... except setup.py was either written for a Tiger system, is misidentifying my system, or another possibility.


Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)

Offline

 

#4 2006-03-08 7:32 pm

dfaure
Member
Registered: 2006-03-08
Posts: 1

Re: Python PyObjC build error

Offline

 

#5 2006-06-19 11:51 pm

ischou
Member
Registered: 2006-06-03
Posts: 2

Re: Python PyObjC build error

http://www.macaddict.com/forums/topic/83353

is a better solition

Apparently you can also download the 10.4 SDK onto a 10.3.9 machine and use the QTKit and ld from that SDK

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson