pyobjc-dev Mailing List for PyObjC (Page 48)
Brought to you by:
ronaldoussoren
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
(30) |
May
(18) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2002 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
|
Sep
(23) |
Oct
(180) |
Nov
(291) |
Dec
(95) |
2003 |
Jan
(338) |
Feb
(352) |
Mar
(97) |
Apr
(46) |
May
(226) |
Jun
(184) |
Jul
(145) |
Aug
(141) |
Sep
(69) |
Oct
(161) |
Nov
(96) |
Dec
(90) |
2004 |
Jan
(66) |
Feb
(87) |
Mar
(98) |
Apr
(132) |
May
(115) |
Jun
(68) |
Jul
(150) |
Aug
(92) |
Sep
(59) |
Oct
(52) |
Nov
(17) |
Dec
(75) |
2005 |
Jan
(84) |
Feb
(191) |
Mar
(133) |
Apr
(114) |
May
(158) |
Jun
(185) |
Jul
(62) |
Aug
(28) |
Sep
(36) |
Oct
(88) |
Nov
(65) |
Dec
(43) |
2006 |
Jan
(85) |
Feb
(62) |
Mar
(92) |
Apr
(75) |
May
(68) |
Jun
(101) |
Jul
(73) |
Aug
(37) |
Sep
(91) |
Oct
(65) |
Nov
(30) |
Dec
(39) |
2007 |
Jan
(24) |
Feb
(28) |
Mar
(10) |
Apr
(2) |
May
(18) |
Jun
(16) |
Jul
(21) |
Aug
(6) |
Sep
(30) |
Oct
(31) |
Nov
(153) |
Dec
(31) |
2008 |
Jan
(63) |
Feb
(70) |
Mar
(47) |
Apr
(24) |
May
(59) |
Jun
(22) |
Jul
(12) |
Aug
(7) |
Sep
(14) |
Oct
(26) |
Nov
(5) |
Dec
(5) |
2009 |
Jan
(10) |
Feb
(41) |
Mar
(70) |
Apr
(88) |
May
(49) |
Jun
(62) |
Jul
(34) |
Aug
(15) |
Sep
(55) |
Oct
(40) |
Nov
(67) |
Dec
(21) |
2010 |
Jan
(60) |
Feb
(17) |
Mar
(26) |
Apr
(26) |
May
(29) |
Jun
(4) |
Jul
(21) |
Aug
(21) |
Sep
(10) |
Oct
(12) |
Nov
(3) |
Dec
(19) |
2011 |
Jan
(3) |
Feb
(13) |
Mar
(8) |
Apr
(8) |
May
(17) |
Jun
(20) |
Jul
(21) |
Aug
(7) |
Sep
|
Oct
|
Nov
(9) |
Dec
(11) |
2012 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
(4) |
Jun
(14) |
Jul
(5) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(23) |
Dec
(1) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
(5) |
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(12) |
Nov
(10) |
Dec
(3) |
2014 |
Jan
(7) |
Feb
(14) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(11) |
Jul
(10) |
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(2) |
2015 |
Jan
(9) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(7) |
Jun
|
Jul
(5) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2016 |
Jan
(1) |
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(6) |
Aug
(8) |
Sep
(21) |
Oct
(17) |
Nov
|
Dec
(36) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(6) |
2018 |
Jan
(2) |
Feb
(3) |
Mar
(3) |
Apr
(14) |
May
(2) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
(6) |
2019 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(1) |
2021 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2025 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: James T. <tra...@gm...> - 2009-04-22 12:38:11
|
Bah. Thanks. Still not quite out of the woods, though. Now it's not having trouble finding the function (CTFontCreatePathForGlyph), but I get a new error: depythonifying 'short', got 'unicode' of 1 My usage is nearly identical to an example in cttests.py for obtaining a font and getting the Glyph from it: v, gl = CTFontGetGlyphsForCharacters(font, u'x', None, 1) v = CTFontCreatePathForGlyph(font, gl[0], None) This leads me to wonder if the signature mentioned previously for CTFontCreatePathForGlyph was incorrect: '@@sn^{CGAffineTransform=ffffff}' Unfortunately, I can't find any documentation on how to map the signatures. For someone that knows, is this signature correct? Thanks -jt On Wed, Apr 22, 2009 at 10:19 AM, Petr Mifek <pet...@an...> wrote: > Hi, > > James, import CoreText is missing there. > > Cheers, Petr > > James Trankelson wrote: >> >> It seems like some names can't be found. CoreText is one of them. >> >> from CoreText import * >> objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ >> ('CTFontCreatePathForGlyph', >> '@@sn^{CGAffineTransform=ffffff}') >> ], False) >> >> Produces: NameError: name 'CoreText' is not defined >> >> I tried manually loading the bundle as follows: >> >> objc.loadBundle("CoreText", globals(), >> >> bundle_path=objc.pathForFramework(u'/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework')) >> >> Which also fails. >> >> -jt >> >> On Wed, Apr 22, 2009 at 7:22 AM, Ronald Oussoren <ron...@ma...> >> wrote: >>> >>> On 21 Apr, 2009, at 20:59, James Trankelson wrote: >>> >>>> Hi, >>>> >>>> I'm trying to do some CoreText suff (10.5). Most of the calls are >>>> fine, but one fails: >>>> >>>> global name 'CTFontCreatePathForGlyph' is not defined >>>> >>>> Is there any way around this? >>> >>> Which version of PyObjC do you use? I guess it's the one included in >>> Leopard, that seems to mis the symbol while PyObjC 2.2 does have it. >>> >>> Adding a new function can be done using objc.loadBundleFunctions: >>> >>> import objc >>> import CoreText >>> objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ >>> ('CTFontCreatePathForGlyph', >>> '@@sn^{CGAffineTransform=ffffff}') >>> ], False) >>> >>> The code above (untested) should add 'CTFontCreatePathForGlyph' to the >>> globals dictionary. >>> >>> Ronald >>>> >>>> Thanks >>>> >>>> -jt >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Stay on top of everything new and different, both inside and >>>> around Java (TM) technology - register by April 22, and save >>>> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >>>> 300 plus technical and hands-on sessions. Register today. >>>> Use priority code J9JMT32. http://p.sf.net/sfu/p >>>> _______________________________________________ >>>> Pyobjc-dev mailing list >>>> Pyo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >>> >> >> >> ------------------------------------------------------------------------------ >> Stay on top of everything new and different, both inside and around Java >> (TM) technology - register by April 22, and save >> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >> 300 plus technical and hands-on sessions. Register today. Use priority >> code J9JMT32. http://p.sf.net/sfu/p >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Petr M. <pet...@an...> - 2009-04-22 08:19:21
|
Hi, James, import CoreText is missing there. Cheers, Petr James Trankelson wrote: > It seems like some names can't be found. CoreText is one of them. > > from CoreText import * > objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ > ('CTFontCreatePathForGlyph', '@@sn^{CGAffineTransform=ffffff}') > ], False) > > Produces: NameError: name 'CoreText' is not defined > > I tried manually loading the bundle as follows: > > objc.loadBundle("CoreText", globals(), > bundle_path=objc.pathForFramework(u'/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework')) > > Which also fails. > > -jt > > On Wed, Apr 22, 2009 at 7:22 AM, Ronald Oussoren <ron...@ma...> wrote: >> On 21 Apr, 2009, at 20:59, James Trankelson wrote: >> >>> Hi, >>> >>> I'm trying to do some CoreText suff (10.5). Most of the calls are >>> fine, but one fails: >>> >>> global name 'CTFontCreatePathForGlyph' is not defined >>> >>> Is there any way around this? >> Which version of PyObjC do you use? I guess it's the one included in >> Leopard, that seems to mis the symbol while PyObjC 2.2 does have it. >> >> Adding a new function can be done using objc.loadBundleFunctions: >> >> import objc >> import CoreText >> objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ >> ('CTFontCreatePathForGlyph', >> '@@sn^{CGAffineTransform=ffffff}') >> ], False) >> >> The code above (untested) should add 'CTFontCreatePathForGlyph' to the >> globals dictionary. >> >> Ronald >>> Thanks >>> >>> -jt >>> >>> >>> ------------------------------------------------------------------------------ >>> Stay on top of everything new and different, both inside and >>> around Java (TM) technology - register by April 22, and save >>> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >>> 300 plus technical and hands-on sessions. Register today. >>> Use priority code J9JMT32. http://p.sf.net/sfu/p >>> _______________________________________________ >>> Pyobjc-dev mailing list >>> Pyo...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: James T. <tra...@gm...> - 2009-04-22 07:35:09
|
It seems like some names can't be found. CoreText is one of them. from CoreText import * objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ ('CTFontCreatePathForGlyph', '@@sn^{CGAffineTransform=ffffff}') ], False) Produces: NameError: name 'CoreText' is not defined I tried manually loading the bundle as follows: objc.loadBundle("CoreText", globals(), bundle_path=objc.pathForFramework(u'/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework')) Which also fails. -jt On Wed, Apr 22, 2009 at 7:22 AM, Ronald Oussoren <ron...@ma...> wrote: > > On 21 Apr, 2009, at 20:59, James Trankelson wrote: > >> Hi, >> >> I'm trying to do some CoreText suff (10.5). Most of the calls are >> fine, but one fails: >> >> global name 'CTFontCreatePathForGlyph' is not defined >> >> Is there any way around this? > > Which version of PyObjC do you use? I guess it's the one included in > Leopard, that seems to mis the symbol while PyObjC 2.2 does have it. > > Adding a new function can be done using objc.loadBundleFunctions: > > import objc > import CoreText > objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ > ('CTFontCreatePathForGlyph', > '@@sn^{CGAffineTransform=ffffff}') > ], False) > > The code above (untested) should add 'CTFontCreatePathForGlyph' to the > globals dictionary. > > Ronald >> >> Thanks >> >> -jt >> >> >> ------------------------------------------------------------------------------ >> Stay on top of everything new and different, both inside and >> around Java (TM) technology - register by April 22, and save >> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >> 300 plus technical and hands-on sessions. Register today. >> Use priority code J9JMT32. http://p.sf.net/sfu/p >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > |
From: Ulrich E. <li...@ne...> - 2009-04-22 05:57:32
|
Hi Ronald, thanks for your immediate action/help !!! i updated pyobjc-svn today and i can access the CVImageBufferRef now (still struggling how to use it) but my initial problem is fixed now. when i have a working example, i'll post it to the list for the records. thanks and have a nice day! Ulrich Am 21.04.2009 um 17:05 schrieb Ronald Oussoren: > Ulrich, > > The CoreVideo bindings in subversion were incorrect until a moment > ago. I've just checked in an updated version of the Quartz bindings > (r2166), those fix most of the problems with CoreVideo. > > That said, I haven't used the CoreVideo bindings in real code yet > and there aren't any Python examples using CoreVideo either and this > means there may be issues left. Other than creating CVPixel buffers > in Python code (CVPixelBufferCreate and friends) the bindings should > be complete though. > > To answer your question: > > First of all: use "import Quartz" in your module to ensure that the > CoreVideo bindings are loaded, otherwise > PyObjC won't load the right framework bindings. > > PyObjC should then automaticly deduce the correct signature for the > delegate method, not doing so would be a bug in the QTKit bindings. > > BTW. Which version of PyObjC are you using? > > Ronald > > On 20 Apr, 2009, at 3:23, Ulrich Eck wrote: > >> hi, >> >> i spend a couple of days to find out how to do video capturing >> using the current pyobc QTKit framework wrappers and run into a >> problem... >> >> i couldn't find out, how to write the signature for the selector of >> my delegate for QTCaptureDecompressedVideoOutput >> with the following definition: >> >> - (void)captureOutput:(QTCaptureOutput *)captureOutput >> didOutputVideoFrame:(CVImageBufferRef)videoFrame >> withSampleBuffer:(QTSampleBuffer *)sampleBuffer >> fromConnection:(QTCaptureConnection *)connection >> >> i tried several signature definitions like: >> >> @objc.signature('v@:@{__CVBuffer=*}@@') >> @objc.signature('v@:@{__CVBuffer=@}@@') >> @objc.signature('v@:@^{__CVBuffer=}@@') >> @objc.signature('v@:@@@@') >> >> but they all end up in either a PyObcPointer created warning or a >> NSCFType for videoStream, which seems not be usable >> at all (can i cast to an CVImageBufferRef somehow ?). >> >> output example without signature: >> PyObjCPointer created: at 0x29f4590 of type {__CVBuffer=}@@ >> got frame: <QTCaptureDecompressedVideoOutput: 0x2981ac0> >> <PyObjCPointer object at 0x25c8b78> <QTSampleBuffer: 0x29f3600> >> <QTCaptureConnection: 0x2982510 vide 2vuy> >> >> output example for the "@objc.signature('v@:@@@@')" signature: >> got frame: <QTCaptureDecompressedVideoOutput: 0x2982010> <NSCFType: >> 0x29f7310> <QTSampleBuffer: 0x29f5bf0> <QTCaptureConnection: >> 0x2982a60 vide 2vuy> >> >> using "@objc.signature('v@:@{__CVBuffer=}@@')" results in an error >> message: >> <type 'exceptions.RuntimeError'>: Cannot create FFI CIF: 1 >> >> >> now i'm lost ... has anyone here on the list an idea how to convice >> the pyobjc wrapper to pass me a valid object/reference to the >> CVImageBufferRef or what to do with the NSCFType to get to the >> buffer -- as shown in the example below .. i want to extract the >> image-data >> from the captured video (possibly as string-buffer reference for >> further use with numpy+ctypes). >> >> any help is greatly appreciated !! >> >> thanks for your help >> >> cheers Ulrich >> >> >> here is a minimal example of my code (created a simple pyobjc app >> in xcode and this is the main app-delegate): >> i can also provide the whole example for tests if needed. >> >> >> ############################ >> from Foundation import * >> from AppKit import * >> from QTKit import * >> >> k24RGBPixelFormat = 0x00000018 # 24 bit rgb >> k32ARGBPixelFormat = 0x00000020 # 32 bit argb (Mac) >> >> class qtkit_captureAppDelegate(NSObject): >> def applicationDidFinishLaunching_(self, sender): >> NSLog("Application did finish launching.") >> >> >> session = QTCaptureSession.alloc().init() >> >> device = >> QTCaptureDevice.defaultInputDeviceWithMediaType_(QTMediaTypeVideo) >> if device is None: >> print "failed to open device." >> return >> >> device.open_(None) >> >> input = QTCaptureDeviceInput.alloc().initWithDevice_(device) >> session.addInput_error_(input, None) >> >> output = QTCaptureDecompressedVideoOutput.alloc().init() >> >> settings = dict(kCVPixelBufferWidthKey=640.0, >> kCVPixelBufferHeightKey=480.0, >> >> kCVPixelBufferPixelFormatTypeKey=k32ARGBPixelFormat, >> ) >> >> output.setPixelBufferAttributes_(settings) >> session.addOutput_error_(output, None) >> >> class logger(NSObject): >> >> current_buffer = None >> >> # Declaration: >> #- (void)captureOutput:(QTCaptureOutput *)captureOutput >> didOutputVideoFrame:(CVImageBufferRef)videoFrame >> # withSampleBuffer:(QTSampleBuffer *)sampleBuffer >> fromConnection:(QTCaptureConnection *)connection >> >> #@objc.signature('v@:@{__CVBuffer=*}@@') >> #@objc.signature('v@:@{__CVBuffer=@}@@') >> #@objc.signature('v@:@^{__CVBuffer=}@@') >> @objc.signature('v@:@@@@') >> def >> captureOutput_didOutputVideoFrame_withSampleBuffer_fromConnection_ >> (self, captureOutput, videoFrame, sampleBuffer, connection): >> NSLog("got frame: %s %s %s %s" % (captureOutput, >> videoFrame, sampleBuffer, connection)) >> >> # always have only one frame retained >> #CVBufferRetain(videoFrame) >> #buffer_to_release = self.current_buffer >> #self.current_buffer = videoFrame >> #if buffer_to_release is not None: >> # CVBufferRelease(buffer_to_release) >> >> # convert the CVImageBuffer into an NSImage >> #cimg = CIImage.initWithCVImageBuffer_(test) >> #rep = NSCIImageRep.initWithCIImage_(cimg) >> #nimg = NSImage.alloc().initWithSize_(rep.size()) >> #nimg.addRepresentation_(rep) >> >> >> cb = logger.alloc().init() >> output.setDelegate_(cb) >> session.startRunning() >> >> self._data = (session, device, input, output, cb) >> >> ############################ >> >> ------------------------------------------------------------------------------ >> Stay on top of everything new and different, both inside and >> around Java (TM) technology - register by April 22, and save >> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. >> 300 plus technical and hands-on sessions. Register today. >> Use priority code J9JMT32. http://p.sf.net/sfu/p_______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Ronald O. <ron...@ma...> - 2009-04-22 05:23:19
|
On 21 Apr, 2009, at 20:59, James Trankelson wrote: > Hi, > > I'm trying to do some CoreText suff (10.5). Most of the calls are > fine, but one fails: > > global name 'CTFontCreatePathForGlyph' is not defined > > Is there any way around this? Which version of PyObjC do you use? I guess it's the one included in Leopard, that seems to mis the symbol while PyObjC 2.2 does have it. Adding a new function can be done using objc.loadBundleFunctions: import objc import CoreText objc.loadBundleFunctions(CoreText.__bundle__, globals(), [ ('CTFontCreatePathForGlyph', '@@sn^{CGAffineTransform=ffffff}') ], False) The code above (untested) should add 'CTFontCreatePathForGlyph' to the globals dictionary. Ronald > > Thanks > > -jt > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: James T. <tra...@gm...> - 2009-04-21 19:00:04
|
Hi, I'm trying to do some CoreText suff (10.5). Most of the calls are fine, but one fails: global name 'CTFontCreatePathForGlyph' is not defined Is there any way around this? Thanks -jt |
From: Greg E. <gre...@ca...> - 2009-04-21 12:04:36
|
PyGUI 2.0.4 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes a few more bugs and hopefully improves things on Windows, although I can't be sure it will fix all the Windows problems people are having, because I haven't been able to reproduce some of them. What is PyGUI? -------------- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- Gregory Ewing gre...@ca... http://www.cosc.canterbury.ac.nz/greg.ewing/ |
From: Ronald O. <ron...@ma...> - 2009-04-21 07:35:40
|
Ulrich, The CoreVideo bindings in subversion were incorrect until a moment ago. I've just checked in an updated version of the Quartz bindings (r2166), those fix most of the problems with CoreVideo. That said, I haven't used the CoreVideo bindings in real code yet and there aren't any Python examples using CoreVideo either and this means there may be issues left. Other than creating CVPixel buffers in Python code (CVPixelBufferCreate and friends) the bindings should be complete though. To answer your question: First of all: use "import Quartz" in your module to ensure that the CoreVideo bindings are loaded, otherwise PyObjC won't load the right framework bindings. PyObjC should then automaticly deduce the correct signature for the delegate method, not doing so would be a bug in the QTKit bindings. BTW. Which version of PyObjC are you using? Ronald On 20 Apr, 2009, at 3:23, Ulrich Eck wrote: > hi, > > i spend a couple of days to find out how to do video capturing using > the current pyobc QTKit framework wrappers and run into a problem... > > i couldn't find out, how to write the signature for the selector of > my delegate for QTCaptureDecompressedVideoOutput > with the following definition: > > - (void)captureOutput:(QTCaptureOutput *)captureOutput > didOutputVideoFrame:(CVImageBufferRef)videoFrame > withSampleBuffer:(QTSampleBuffer *)sampleBuffer > fromConnection:(QTCaptureConnection *)connection > > i tried several signature definitions like: > > @objc.signature('v@:@{__CVBuffer=*}@@') > @objc.signature('v@:@{__CVBuffer=@}@@') > @objc.signature('v@:@^{__CVBuffer=}@@') > @objc.signature('v@:@@@@') > > but they all end up in either a PyObcPointer created warning or a > NSCFType for videoStream, which seems not be usable > at all (can i cast to an CVImageBufferRef somehow ?). > > output example without signature: > PyObjCPointer created: at 0x29f4590 of type {__CVBuffer=}@@ > got frame: <QTCaptureDecompressedVideoOutput: 0x2981ac0> > <PyObjCPointer object at 0x25c8b78> <QTSampleBuffer: 0x29f3600> > <QTCaptureConnection: 0x2982510 vide 2vuy> > > output example for the "@objc.signature('v@:@@@@')" signature: > got frame: <QTCaptureDecompressedVideoOutput: 0x2982010> <NSCFType: > 0x29f7310> <QTSampleBuffer: 0x29f5bf0> <QTCaptureConnection: > 0x2982a60 vide 2vuy> > > using "@objc.signature('v@:@{__CVBuffer=}@@')" results in an error > message: > <type 'exceptions.RuntimeError'>: Cannot create FFI CIF: 1 > > > now i'm lost ... has anyone here on the list an idea how to convice > the pyobjc wrapper to pass me a valid object/reference to the > CVImageBufferRef or what to do with the NSCFType to get to the > buffer -- as shown in the example below .. i want to extract the > image-data > from the captured video (possibly as string-buffer reference for > further use with numpy+ctypes). > > any help is greatly appreciated !! > > thanks for your help > > cheers Ulrich > > > here is a minimal example of my code (created a simple pyobjc app in > xcode and this is the main app-delegate): > i can also provide the whole example for tests if needed. > > > ############################ > from Foundation import * > from AppKit import * > from QTKit import * > > k24RGBPixelFormat = 0x00000018 # 24 bit rgb > k32ARGBPixelFormat = 0x00000020 # 32 bit argb (Mac) > > class qtkit_captureAppDelegate(NSObject): > def applicationDidFinishLaunching_(self, sender): > NSLog("Application did finish launching.") > > > session = QTCaptureSession.alloc().init() > > device = > QTCaptureDevice.defaultInputDeviceWithMediaType_(QTMediaTypeVideo) > if device is None: > print "failed to open device." > return > > device.open_(None) > > input = QTCaptureDeviceInput.alloc().initWithDevice_(device) > session.addInput_error_(input, None) > > output = QTCaptureDecompressedVideoOutput.alloc().init() > > settings = dict(kCVPixelBufferWidthKey=640.0, > kCVPixelBufferHeightKey=480.0, > > kCVPixelBufferPixelFormatTypeKey=k32ARGBPixelFormat, > ) > > output.setPixelBufferAttributes_(settings) > session.addOutput_error_(output, None) > > class logger(NSObject): > > current_buffer = None > > # Declaration: > #- (void)captureOutput:(QTCaptureOutput *)captureOutput > didOutputVideoFrame:(CVImageBufferRef)videoFrame > # withSampleBuffer:(QTSampleBuffer *)sampleBuffer > fromConnection:(QTCaptureConnection *)connection > > #@objc.signature('v@:@{__CVBuffer=*}@@') > #@objc.signature('v@:@{__CVBuffer=@}@@') > #@objc.signature('v@:@^{__CVBuffer=}@@') > @objc.signature('v@:@@@@') > def > captureOutput_didOutputVideoFrame_withSampleBuffer_fromConnection_ > (self, captureOutput, videoFrame, sampleBuffer, connection): > NSLog("got frame: %s %s %s %s" % (captureOutput, > videoFrame, sampleBuffer, connection)) > > # always have only one frame retained > #CVBufferRetain(videoFrame) > #buffer_to_release = self.current_buffer > #self.current_buffer = videoFrame > #if buffer_to_release is not None: > # CVBufferRelease(buffer_to_release) > > # convert the CVImageBuffer into an NSImage > #cimg = CIImage.initWithCVImageBuffer_(test) > #rep = NSCIImageRep.initWithCIImage_(cimg) > #nimg = NSImage.alloc().initWithSize_(rep.size()) > #nimg.addRepresentation_(rep) > > > cb = logger.alloc().init() > output.setDelegate_(cb) > session.startRunning() > > self._data = (session, device, input, output, cb) > > ############################ > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Ulrich E. <li...@ne...> - 2009-04-20 10:24:04
|
Adam, thanks for your hint! i had it initially like this - but then i wasn't yet able to import CoreVideo (needed to comment out 2 @encode(CVTImeStamp) declarations to make it work - svn yesterday) i'll fix this .. but first i need to get to the buffer - data .. then i will think and check the rest of the application ;-) thanks .. and still hoping for a nice little trick to make it work ! cheers Ulrich Am 20.04.2009 um 11:30 schrieb Adam Atlas: > This probably isn't related to the problem you're having, but it's > something you'd have to fix eventually, so I thought I'd point it > out... > >> settings = dict(kCVPixelBufferWidthKey=640.0, >> kCVPixelBufferHeightKey=480.0, >> >> kCVPixelBufferPixelFormatTypeKey=k32ARGBPixelFormat, >> ) > > This creates a dictionary where the keys are the literal strings > "kCVPixelBufferWidthKey", "kCVPixelBufferHeightKey", etc. You should > be using {kCVPixelBufferWidthKey: 640.0, ...} instead, so the keys are > the values of those constants. > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Adam A. <ad...@at...> - 2009-04-20 02:00:49
|
This probably isn't related to the problem you're having, but it's something you'd have to fix eventually, so I thought I'd point it out... > settings = dict(kCVPixelBufferWidthKey=640.0, > kCVPixelBufferHeightKey=480.0, > > kCVPixelBufferPixelFormatTypeKey=k32ARGBPixelFormat, > ) This creates a dictionary where the keys are the literal strings "kCVPixelBufferWidthKey", "kCVPixelBufferHeightKey", etc. You should be using {kCVPixelBufferWidthKey: 640.0, ...} instead, so the keys are the values of those constants. |
From: Ulrich E. <li...@ne...> - 2009-04-20 01:50:58
|
hi, i spend a couple of days to find out how to do video capturing using the current pyobc QTKit framework wrappers and run into a problem... i couldn't find out, how to write the signature for the selector of my delegate for QTCaptureDecompressedVideoOutput with the following definition: - (void)captureOutput:(QTCaptureOutput *)captureOutput didOutputVideoFrame:(CVImageBufferRef)videoFrame withSampleBuffer:(QTSampleBuffer *)sampleBuffer fromConnection: (QTCaptureConnection *)connection i tried several signature definitions like: @objc.signature('v@:@{__CVBuffer=*}@@') @objc.signature('v@:@{__CVBuffer=@}@@') @objc.signature('v@:@^{__CVBuffer=}@@') @objc.signature('v@:@@@@') but they all end up in either a PyObcPointer created warning or a NSCFType for videoStream, which seems not be usable at all (can i cast to an CVImageBufferRef somehow ?). output example without signature: PyObjCPointer created: at 0x29f4590 of type {__CVBuffer=}@@ got frame: <QTCaptureDecompressedVideoOutput: 0x2981ac0> <PyObjCPointer object at 0x25c8b78> <QTSampleBuffer: 0x29f3600> <QTCaptureConnection: 0x2982510 vide 2vuy> output example for the "@objc.signature('v@:@@@@')" signature: got frame: <QTCaptureDecompressedVideoOutput: 0x2982010> <NSCFType: 0x29f7310> <QTSampleBuffer: 0x29f5bf0> <QTCaptureConnection: 0x2982a60 vide 2vuy> using "@objc.signature('v@:@{__CVBuffer=}@@')" results in an error message: <type 'exceptions.RuntimeError'>: Cannot create FFI CIF: 1 now i'm lost ... has anyone here on the list an idea how to convice the pyobjc wrapper to pass me a valid object/reference to the CVImageBufferRef or what to do with the NSCFType to get to the buffer -- as shown in the example below .. i want to extract the image-data from the captured video (possibly as string-buffer reference for further use with numpy+ctypes). any help is greatly appreciated !! thanks for your help cheers Ulrich here is a minimal example of my code (created a simple pyobjc app in xcode and this is the main app-delegate): i can also provide the whole example for tests if needed. ############################ from Foundation import * from AppKit import * from QTKit import * k24RGBPixelFormat = 0x00000018 # 24 bit rgb k32ARGBPixelFormat = 0x00000020 # 32 bit argb (Mac) class qtkit_captureAppDelegate(NSObject): def applicationDidFinishLaunching_(self, sender): NSLog("Application did finish launching.") session = QTCaptureSession.alloc().init() device = QTCaptureDevice.defaultInputDeviceWithMediaType_(QTMediaTypeVideo) if device is None: print "failed to open device." return device.open_(None) input = QTCaptureDeviceInput.alloc().initWithDevice_(device) session.addInput_error_(input, None) output = QTCaptureDecompressedVideoOutput.alloc().init() settings = dict(kCVPixelBufferWidthKey=640.0, kCVPixelBufferHeightKey=480.0, kCVPixelBufferPixelFormatTypeKey=k32ARGBPixelFormat, ) output.setPixelBufferAttributes_(settings) session.addOutput_error_(output, None) class logger(NSObject): current_buffer = None # Declaration: #- (void)captureOutput:(QTCaptureOutput *)captureOutput didOutputVideoFrame:(CVImageBufferRef)videoFrame # withSampleBuffer:(QTSampleBuffer *)sampleBuffer fromConnection:(QTCaptureConnection *)connection #@objc.signature('v@:@{__CVBuffer=*}@@') #@objc.signature('v@:@{__CVBuffer=@}@@') #@objc.signature('v@:@^{__CVBuffer=}@@') @objc.signature('v@:@@@@') def captureOutput_didOutputVideoFrame_withSampleBuffer_fromConnection_ (self, captureOutput, videoFrame, sampleBuffer, connection): NSLog("got frame: %s %s %s %s" % (captureOutput, videoFrame, sampleBuffer, connection)) # always have only one frame retained #CVBufferRetain(videoFrame) #buffer_to_release = self.current_buffer #self.current_buffer = videoFrame #if buffer_to_release is not None: # CVBufferRelease(buffer_to_release) # convert the CVImageBuffer into an NSImage #cimg = CIImage.initWithCVImageBuffer_(test) #rep = NSCIImageRep.initWithCIImage_(cimg) #nimg = NSImage.alloc().initWithSize_(rep.size()) #nimg.addRepresentation_(rep) cb = logger.alloc().init() output.setDelegate_(cb) session.startRunning() self._data = (session, device, input, output, cb) ############################ |
From: Greg E. <gre...@ca...> - 2009-04-17 01:25:38
|
PyGUI 2.0.2 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ Fixes problem on Windows causing "This file should not be imported" error. What is PyGUI? -------------- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- Gregory Ewing gre...@ca... http://www.cosc.canterbury.ac.nz/greg.ewing/ |
From: Adam A. <ad...@at...> - 2009-04-17 00:12:49
|
On 16 Apr 2009, at 12:07, scott w wrote: > Hi -- > > In a python shell, I get the following error after trying to invoke > 'AppKit.NSPrintOperation.printOperationWithView': > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: No attribute printOperationWithView Use AppKit.NSPrintOperation.printOperationWithView_ (with the underscore at the end), since it takes an argument. |
From: scott w <sco...@gm...> - 2009-04-16 16:07:18
|
Hi -- In a python shell, I get the following error after trying to invoke 'AppKit.NSPrintOperation.printOperationWithView': Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: No attribute printOperationWithView Note: similar commands like 'AppKit.NSPrintInfo.sharedPrintInfo()' do work for me. Here is my stack: Python - v2.5.1 pyobjc - v2.2b1 Mac OSX - v10.5.6 Any thoughts on what might be causing the no attribute error would be appreciated. thanks, Scott |
From: James R E. <Jam...@lr...> - 2009-04-16 14:00:15
|
I suspect I'm on the bleeding edge here, so please bear with me. I'm attempting to build PyObjC (from SVN trunk) using a 4-way universal build of Python 2.6.1. It appears that PyObjC does not like to be built from a newer Python than 2.5, since the 02-develop-all.sh script specifically invokes python-2.5. When building using python-2.6, some #ifdef'd code causes the build to fail. Applying the patch below causes the build to succeed, but still yields an unusable PyObjC. When run under 32 bit (via python-32), an "import Foundation" yields "ImportError: No module named _nsindexset". Is pyobjc-frameworks-Cocoa/Modules/_Foundation_nsindexset.m missing from the repo? Furthermore, and possibly a result of the previous error, when running via python-64, "import Foundation" causes a segmentation fault. Is the file I mentioned missing from the repository? Should I be using a different version of Python (e.g. 2.5.4) instead? Cheers! James Index: pyobjc-core/Modules/objc/objc_util.m =================================================================== --- pyobjc-core/Modules/objc/objc_util.m (revision 2164) +++ pyobjc-core/Modules/objc/objc_util.m (working copy) @@ -764,7 +764,7 @@ /* A more complex array */ #if PY_VERSION_HEX >= 0x02060000 - if (PyObject_CheckBuffer(obj)) { + if (PyObject_CheckBuffer(*bufobj)) { /* An object that implements the new-style buffer interface. * Use the buffer interface description to check if the buffer * type is compatible with what we expect. |
From: Ronald O. <ron...@ma...> - 2009-04-16 07:37:09
|
Yikes, I really need to start testing with a standard build of Python again. My guess is that the problem is caused by ' -isysroot / Developer/SDKs/MacOSX10.4u.sdk ' in the compiler flags below. This forces the compiler to use the system headers for 10.4, even when building on 10.5. I have an idea on how to work around this (basicly force usage of - isysroot=/ on OSX 10.5 or later), but won't have time to commit such a change today. Ronald On 16 Apr, 2009, at 0:35, py...@db... wrote: > I'm assuming you got my previous message in response to this one. > But just a quick follow up. > > I did an svn update today and saw some changes so I decided I'd try > again. This time, though, instead of doing 02-develop-all.sh I did > it by hand. Looks like there are a bunch of compilation errors in > Modules/_Foundation_nscoder.m. As I mentioned before, I am on 10.5, > so I shouldn't be experiencing whatever error you mentioned for > 10.4. If something is configured wrong to think I am on 10.4, I'd > be happy to change it if someone could tell me where it is. Here's > the full gcc output with successfully compiled files snipped for > brevity: > > building 'Foundation._nscoder' extension > gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - > fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd > -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/ > Python.framework/Versions/2.5/include/python2.5 -c Modules/ > _Foundation_nscoder.m -o build/temp.macosx-10.3-fat-2.5/Modules/ > _Foundation_nscoder.o > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeArrayOfObjCType_count_at_’: > Modules/_Foundation_nscoder.m:220: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:220: error: (Each undeclared > identifier is reported only once > Modules/_Foundation_nscoder.m:220: error: for each function it > appears in.) > Modules/_Foundation_nscoder.m:220: error: syntax error before ‘count’ > Modules/_Foundation_nscoder.m:228: error: syntax error before ‘i’ > Modules/_Foundation_nscoder.m:249: error: ‘count’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:256: error: ‘i’ undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeArrayOfObjCType_count_at_’: > Modules/_Foundation_nscoder.m:486: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:486: error: syntax error before ‘count’ > Modules/_Foundation_nscoder.m:494: error: syntax error before ‘i’ > Modules/_Foundation_nscoder.m:516: error: ‘count’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:538: error: ‘i’ undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_encodeBytes_length_’: > Modules/_Foundation_nscoder.m:578: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:590: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:590: error: syntax error before ‘length’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeBytes_length_’: > Modules/_Foundation_nscoder.m:612: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:612: error: syntax error before ‘length’ > Modules/_Foundation_nscoder.m:630: error: ‘length’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_decodeBytesWithReturnedLength_’: > Modules/_Foundation_nscoder.m:665: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:665: error: syntax error before ‘size’ > Modules/_Foundation_nscoder.m:680: error: ‘size’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeBytesWithReturnedLength_’: > Modules/_Foundation_nscoder.m:749: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:749: error: ‘length’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:749: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:755: error: syntax error before ‘len’ > Modules/_Foundation_nscoder.m:789: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:762: error: label ‘error’ used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:795: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:798: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:798: error: conflicting types for > ‘PyErr_SetString’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was > here > Modules/_Foundation_nscoder.m:798: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:802: error: ‘len’ undeclared here (not > in a function) > Modules/_Foundation_nscoder.m:802: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of > ‘initWithBytes:length:’ makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:808: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:808: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:808: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:810: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:811: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:811: error: conflicting types for > ‘PyGILState_Release’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ‘PyGILState_Release’ > was here > Modules/_Foundation_nscoder.m:811: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:812: error: syntax error before ‘return’ > Modules/_Foundation_nscoder.m:819: error: syntax error before ‘->’ > token > Modules/_Foundation_nscoder.m:820: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:820: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:821: error: syntax error before ‘}’ > token > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_decodeBytesForKey_returnedLength_’: > Modules/_Foundation_nscoder.m:828: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:828: error: syntax error before ‘size’ > Modules/_Foundation_nscoder.m:840: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:844: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:844: error: ‘size’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:895: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeBytesForKey_returnedLength_’: > Modules/_Foundation_nscoder.m:915: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:915: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:922: error: syntax error before ‘len’ > Modules/_Foundation_nscoder.m:959: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:929: error: label ‘error’ used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:965: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:968: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:968: error: conflicting types for > ‘PyErr_SetString’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was > here > Modules/_Foundation_nscoder.m:968: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:972: error: redefinition of ‘length’ > Modules/_Foundation_nscoder.m:802: error: previous definition of > ‘length’ was here > Modules/_Foundation_nscoder.m:972: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:977: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of > ‘initWithBytes:length:’ makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:978: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:978: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:978: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:980: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:981: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:981: error: conflicting types for > ‘PyGILState_Release’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ‘PyGILState_Release’ > was here > Modules/_Foundation_nscoder.m:981: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:982: error: syntax error before ‘return’ > Modules/_Foundation_nscoder.m:989: error: syntax error before ‘->’ > token > Modules/_Foundation_nscoder.m:990: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:990: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:991: error: syntax error before ‘}’ > token > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_encodeBytes_length_forKey_’: > Modules/_Foundation_nscoder.m:1009: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeBytes_length_forKey_’: > Modules/_Foundation_nscoder.m:1043: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:1043: error: syntax error before > ‘length’ > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of > ‘PyString_FromStringAndSize’ makes integer from pointer without a cast > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of > ‘PyInt_FromLong’ makes integer from pointer without a cast > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeArrayOfObjCType_count_at_’: > Modules/_Foundation_nscoder.m:220: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:220: error: (Each undeclared > identifier is reported only once > Modules/_Foundation_nscoder.m:220: error: for each function it > appears in.) > Modules/_Foundation_nscoder.m:220: error: syntax error before ‘count’ > Modules/_Foundation_nscoder.m:228: error: syntax error before ‘i’ > Modules/_Foundation_nscoder.m:249: error: ‘count’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:256: error: ‘i’ undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeArrayOfObjCType_count_at_’: > Modules/_Foundation_nscoder.m:486: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:486: error: syntax error before ‘count’ > Modules/_Foundation_nscoder.m:494: error: syntax error before ‘i’ > Modules/_Foundation_nscoder.m:516: error: ‘count’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:538: error: ‘i’ undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_encodeBytes_length_’: > Modules/_Foundation_nscoder.m:578: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:590: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:590: error: syntax error before ‘length’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeBytes_length_’: > Modules/_Foundation_nscoder.m:612: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:612: error: syntax error before ‘length’ > Modules/_Foundation_nscoder.m:630: error: ‘length’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_decodeBytesWithReturnedLength_’: > Modules/_Foundation_nscoder.m:665: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:665: error: syntax error before ‘size’ > Modules/_Foundation_nscoder.m:680: error: ‘size’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeBytesWithReturnedLength_’: > Modules/_Foundation_nscoder.m:749: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:749: error: ‘length’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:749: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:755: error: syntax error before ‘len’ > Modules/_Foundation_nscoder.m:789: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:762: error: label ‘error’ used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:795: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:798: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:798: error: conflicting types for > ‘PyErr_SetString’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was > here > Modules/_Foundation_nscoder.m:798: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:802: error: ‘len’ undeclared here (not > in a function) > Modules/_Foundation_nscoder.m:802: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of > ‘initWithBytes:length:’ makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:808: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:808: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:808: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:810: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:811: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:811: error: conflicting types for > ‘PyGILState_Release’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ‘PyGILState_Release’ > was here > Modules/_Foundation_nscoder.m:811: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:812: error: syntax error before ‘return’ > Modules/_Foundation_nscoder.m:819: error: syntax error before ‘->’ > token > Modules/_Foundation_nscoder.m:820: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:820: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:821: error: syntax error before ‘}’ > token > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_decodeBytesForKey_returnedLength_’: > Modules/_Foundation_nscoder.m:828: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:828: error: syntax error before ‘size’ > Modules/_Foundation_nscoder.m:840: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:844: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:844: error: ‘size’ undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:895: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_decodeBytesForKey_returnedLength_’: > Modules/_Foundation_nscoder.m:915: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:915: error: syntax error before ‘)’ > token > Modules/_Foundation_nscoder.m:922: error: syntax error before ‘len’ > Modules/_Foundation_nscoder.m:959: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m:929: error: label ‘error’ used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:965: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:968: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:968: error: conflicting types for > ‘PyErr_SetString’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was > here > Modules/_Foundation_nscoder.m:968: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:972: error: redefinition of ‘length’ > Modules/_Foundation_nscoder.m:802: error: previous definition of > ‘length’ was here > Modules/_Foundation_nscoder.m:972: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:977: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of > ‘initWithBytes:length:’ makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:978: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:978: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:978: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:980: error: syntax error before ‘if’ > Modules/_Foundation_nscoder.m:981: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:981: error: conflicting types for > ‘PyGILState_Release’ > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ‘PyGILState_Release’ > was here > Modules/_Foundation_nscoder.m:981: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:982: error: syntax error before ‘return’ > Modules/_Foundation_nscoder.m:989: error: syntax error before ‘->’ > token > Modules/_Foundation_nscoder.m:990: error: redefinition of ‘pretval’ > Modules/_Foundation_nscoder.m:807: error: previous definition of > ‘pretval’ was here > Modules/_Foundation_nscoder.m:990: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:991: error: syntax error before ‘}’ > token > Modules/_Foundation_nscoder.m: In function > ‘call_NSCoder_encodeBytes_length_forKey_’: > Modules/_Foundation_nscoder.m:1009: error: syntax error before > ‘NSUInteger’ > Modules/_Foundation_nscoder.m: In function > ‘imp_NSCoder_encodeBytes_length_forKey_’: > Modules/_Foundation_nscoder.m:1043: error: ‘NSUInteger’ undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:1043: error: syntax error before > ‘length’ > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of > ‘PyString_FromStringAndSize’ makes integer from pointer without a cast > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of > ‘PyInt_FromLong’ makes integer from pointer without a cast > lipo: can't figure out the architecture type of: /var/folders/mb/mbL- > JoqIES05fxNzlNIb8++++TI/-Tmp-//cc7sOmK9.out > error: command 'gcc' failed with exit status 1 > > On Tue, Apr 14, 2009 at 6:29 PM, Ronald Oussoren (ron...@ma... > ) wrote: > > > > On 14 Apr, 2009, at 20:06, py...@db... wrote: > > > > > *tap, tap, tap* is this thing on? Re-sending this as it didn't > > > appear to go through the first time. My apologies to the list if > > > both copies somehow make it through eventually. > > > > Did you sent the first message from an address that's subscribed to > > the list? I've been pretty lax about checking the moderator queue > for > > pyobjc-dev because at least 99% of mail in that queue is spam. > > > > > > > > I am having trouble building the latest pyobjc from subversion (or > > > easy-install for that matter). A touch of background and then the > > > error: > > > > You're trying to build on 10.4. I want to support that platform, but > > haven't gotten around to fixing the issues yet. The issues are > small, > > but require some time on a 10.4 system to work (I have one nearby, > but > > don't have time to work on it just yet). My current priority is > > finishing the testsuite for PyObjC, after that I'll probably spend > > time on porting to 10.4 again. > > > > The issues with 10.4 support should be pretty small, and mostly deal > > with the definition of NSInteger and supressing compilation for > > functions that wrap 10.5 specific code. I also expect a lot of false > > positives in the framework tests on 10.4, I haven't been as diligent > > as I should in marking 10.5 specific tests as such. With some luck a > > port to 10.4 will be a longish evening work. > > > > "easy_install pyobjc" also has a completely different issue at the > > moment: this will try to install wrappers for frameworks that aren't > > available on 10.4, which won't work until I provide precompiled > > binaries. I have an idea on how to fix that, but haven't commited > that > > yet (that would be a bit useless given the other problems). > > > > Ronald > > > > > > I started out doing my python development in XCode using the OOTB > > > templates in Leopard and was able to get a working application. > > > However, after finding that my apps wouldn't run on 10.4, etc, I > > > decided to try to go the py2app route. > > > > > > At the admonition of various documents and websites, I installed > the > > > latest release of Python 2.x for Mac from python.org (2.6.1). > > > However, after trying (and failing) to get py2app to work with > 2.6, > > > I went back and installed a fresh copy of PythonMac's latest 2.5 > > > release. Once I did that, py2app installed well, but now that I > > > have that running, I can't get pyobjc to compile. > > > > > > I've tried checking out the source from SVN and doing a ./02- > develop- > > > all from the pyobjc directory in my working copy. I also tried > > > "easy-install pyobjc". Both lead to the same result. The easy- > > > install attempt just stopped after the build failure, the 02- > develop- > > > all attempt just kept trying over and over to re-download, > compile, > > > etc the failing module. Below is one instance of the offending > > > install step. > > > > > > Anybody else have this problem and overcome it? > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: <py...@db...> - 2009-04-15 22:30:42
|
I'm assuming you got my previous message in response to this one. But just a quick follow up.<br /> <br /> I did an svn update today and saw some changes so I decided I'd try again. This time, though, instead of doing 02-develop-all.sh I did it by hand. Looks like there are a bunch of compilation errors in Modules/_Foundation_nscoder.m. As I mentioned before, I am on 10.5, so I shouldn't be experiencing whatever error you mentioned for 10.4. If something is configured wrong to think I am on 10.4, I'd be happy to change it if someone could tell me where it is. Here's the full gcc output with successfully compiled files snipped for brevity:<br /> <br /> building 'Foundation._nscoder' extension<br /> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c Modules/_Foundation_nscoder.m -o build/temp.macosx-10.3-fat-2.5/Modules/_Foundation_nscoder.o<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeArrayOfObjCType_count_at_’:<br /> Modules/_Foundation_nscoder.m:220: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ‘count’<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ‘i’<br /> Modules/_Foundation_nscoder.m:249: error: ‘count’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ‘i’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeArrayOfObjCType_count_at_’:<br /> Modules/_Foundation_nscoder.m:486: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ‘count’<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ‘i’<br /> Modules/_Foundation_nscoder.m:516: error: ‘count’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ‘i’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_encodeBytes_length_’:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:590: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeBytes_length_’:<br /> Modules/_Foundation_nscoder.m:612: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m:630: error: ‘length’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_decodeBytesWithReturnedLength_’:<br /> Modules/_Foundation_nscoder.m:665: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ‘size’<br /> Modules/_Foundation_nscoder.m:680: error: ‘size’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeBytesWithReturnedLength_’:<br /> Modules/_Foundation_nscoder.m:749: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ‘length’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ‘len’<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:762: error: label ‘error’ used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ‘PyErr_SetString’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ‘len’ undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ‘initWithBytes:length:’ makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ‘PyGILState_Release’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ‘PyGILState_Release’ was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ‘return’<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ‘->’ token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ‘}’ token<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_decodeBytesForKey_returnedLength_’:<br /> Modules/_Foundation_nscoder.m:828: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ‘size’<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:844: error: ‘size’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeBytesForKey_returnedLength_’:<br /> Modules/_Foundation_nscoder.m:915: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ‘len’<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:929: error: label ‘error’ used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ‘PyErr_SetString’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ‘length’<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ‘length’ was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ‘initWithBytes:length:’ makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ‘PyGILState_Release’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ‘PyGILState_Release’ was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ‘return’<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ‘->’ token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ‘}’ token<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_encodeBytes_length_forKey_’:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeBytes_length_forKey_’:<br /> Modules/_Foundation_nscoder.m:1043: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ‘PyString_FromStringAndSize’ makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ‘PyInt_FromLong’ makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeArrayOfObjCType_count_at_’:<br /> Modules/_Foundation_nscoder.m:220: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ‘count’<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ‘i’<br /> Modules/_Foundation_nscoder.m:249: error: ‘count’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ‘i’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeArrayOfObjCType_count_at_’:<br /> Modules/_Foundation_nscoder.m:486: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ‘count’<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ‘i’<br /> Modules/_Foundation_nscoder.m:516: error: ‘count’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ‘i’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_encodeBytes_length_’:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:590: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeBytes_length_’:<br /> Modules/_Foundation_nscoder.m:612: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m:630: error: ‘length’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_decodeBytesWithReturnedLength_’:<br /> Modules/_Foundation_nscoder.m:665: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ‘size’<br /> Modules/_Foundation_nscoder.m:680: error: ‘size’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeBytesWithReturnedLength_’:<br /> Modules/_Foundation_nscoder.m:749: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ‘length’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ‘len’<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:762: error: label ‘error’ used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ‘PyErr_SetString’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ‘len’ undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ‘initWithBytes:length:’ makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ‘PyGILState_Release’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ‘PyGILState_Release’ was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ‘return’<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ‘->’ token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ‘}’ token<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_decodeBytesForKey_returnedLength_’:<br /> Modules/_Foundation_nscoder.m:828: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ‘size’<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:844: error: ‘size’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_decodeBytesForKey_returnedLength_’:<br /> Modules/_Foundation_nscoder.m:915: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ‘)’ token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ‘len’<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m:929: error: label ‘error’ used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ‘PyErr_SetString’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ‘PyErr_SetString’ was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ‘length’<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ‘length’ was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ‘initWithBytes:length:’ makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ‘if’<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ‘PyGILState_Release’<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ‘PyGILState_Release’ was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ‘return’<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ‘->’ token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ‘pretval’<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ‘pretval’ was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ‘}’ token<br /> Modules/_Foundation_nscoder.m: In function ‘call_NSCoder_encodeBytes_length_forKey_’:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ‘NSUInteger’<br /> Modules/_Foundation_nscoder.m: In function ‘imp_NSCoder_encodeBytes_length_forKey_’:<br /> Modules/_Foundation_nscoder.m:1043: error: ‘NSUInteger’ undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ‘length’<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ‘PyString_FromStringAndSize’ makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ‘PyInt_FromLong’ makes integer from pointer without a cast<br /> lipo: can't figure out the architecture type of: /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-//cc7sOmK9.out<br /> error: command 'gcc' failed with exit status 1<br /> <br /> On Tue, Apr 14, 2009 at 6:29 PM, Ronald Oussoren (<a class="superLinkifier" href="mailto:ron...@ma...">ron...@ma...</a>) wrote:<br /> > <br /> > On 14 Apr, 2009, at 20:06, <a href="mailto:py...@db...">py...@db...</a> wrote:<br /> > <br /> > > *tap, tap, tap* is this thing on? Re-sending this as it didn't <br /> > > appear to go through the first time. My apologies to the list if <br /> > > both copies somehow make it through eventually.<br /> > <br /> > Did you sent the first message from an address that's subscribed to <br /> > the list? I've been pretty lax about checking the moderator queue for <br /> > pyobjc-dev because at least 99% of mail in that queue is spam.<br /> > <br /> > > <br /> > > I am having trouble building the latest pyobjc from subversion (or <br /> > > easy-install for that matter). A touch of background and then the <br /> > > error:<br /> > <br /> > You're trying to build on 10.4. I want to support that platform, but <br /> > haven't gotten around to fixing the issues yet. The issues are small, <br /> > but require some time on a 10.4 system to work (I have one nearby, but <br /> > don't have time to work on it just yet). My current priority is <br /> > finishing the testsuite for PyObjC, after that I'll probably spend <br /> > time on porting to 10.4 again.<br /> > <br /> > The issues with 10.4 support should be pretty small, and mostly deal <br /> > with the definition of NSInteger and supressing compilation for <br /> > functions that wrap 10.5 specific code. I also expect a lot of false <br /> > positives in the framework tests on 10.4, I haven't been as diligent <br /> > as I should in marking 10.5 specific tests as such. With some luck a <br /> > port to 10.4 will be a longish evening work.<br /> > <br /> > "easy_install pyobjc" also has a completely different issue at the <br /> > moment: this will try to install wrappers for frameworks that aren't <br /> > available on 10.4, which won't work until I provide precompiled <br /> > binaries. I have an idea on how to fix that, but haven't commited that <br /> > yet (that would be a bit useless given the other problems).<br /> > <br /> > Ronald <br /> > > <br /> > > I started out doing my python development in XCode using the OOTB <br /> > > templates in Leopard and was able to get a working application. <br /> > > However, after finding that my apps wouldn't run on 10.4, etc, I <br /> > > decided to try to go the py2app route. <br /> > > <br /> > > At the admonition of various documents and websites, I installed the <br /> <span>> > latest release of Python 2.x for Mac from <a href="http://python.org">python.org</a> (2.6.1). </span><br /> > > However, after trying (and failing) to get py2app to work with 2.6, <br /> > > I went back and installed a fresh copy of PythonMac's latest 2.5 <br /> > > release. Once I did that, py2app installed well, but now that I <br /> > > have that running, I can't get pyobjc to compile. <br /> > > <br /> > > I've tried checking out the source from SVN and doing a ./02-develop- <br /> > > all from the pyobjc directory in my working copy. I also tried <br /> > > "easy-install pyobjc". Both lead to the same result. The easy- <br /> > > install attempt just stopped after the build failure, the 02-develop- <br /> > > all attempt just kept trying over and over to re-download, compile, <br /> > > etc the failing module. Below is one instance of the offending <br /> > > install step. <br /> > > <br /> > > Anybody else have this problem and overcome it?<br /> |
From: Nigel K. <ni...@ex...> - 2009-04-14 23:07:53
|
On Tue, Apr 14, 2009 at 11:13 AM, Ronald Oussoren <ron...@ma...> wrote: > > On 14 Apr, 2009, at 18:57, Johan Rydberg wrote: > >> BTW, how do Cocoa know to seach inside English.lproj? Is there >> defined search order for >> resources? > > The order is determined by the Language settings in the "International" > preference pane. When none of the languages matches a .lproj folder in your > .app folder the systems searches directly in the Resources folder. The > actual mechanism is described in Apple's documentation somewhere (I don't > have a handy reference). http://developer.apple.com/documentation/CoreFOundation/Conceptual/CFBundles/Concepts/SearchAlgorithm.html#//apple_ref/doc/uid/20001120 gives an overview and some relevant links. > > Ronald > >> >> On Tue, Apr 14, 2009 at 9:40 AM, Ronald Oussoren <ron...@ma...> >> wrote: >>> >>> On 14 Apr, 2009, at 8:54, Johan Rydberg wrote: >>> >>>> Odd, because I've seen people just add English.lproj to data_files. >>>> For example, look at >>>> /Developer/Examples/Python/PyObjC/Cocoa/AppKit/Todo/setup.py. >>> >>> Adding English.lproj to data_files should just work, if it doesn't you >>> have >>> found a bug in py2app. >>> >>> Ronald >>> >>> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > |
From: <py...@db...> - 2009-04-14 18:49:35
|
<br /> <br /> On Tue, Apr 14, 2009 at 6:29 PM, Ronald Oussoren (<a class="superLinkifier" href="mailto:ron...@ma...">ron...@ma...</a>) wrote:<br /> > <br /> > On 14 Apr, 2009, at 20:06, <a href="mailto:py...@db...">py...@db...</a> wrote:<br /> > <br /> > > *tap, tap, tap* is this thing on? Re-sending this as it didn't <br /> > > appear to go through the first time. My apologies to the list if <br /> > > both copies somehow make it through eventually.<br /> > <br /> > Did you sent the first message from an address that's subscribed to <br /> > the list? I've been pretty lax about checking the moderator queue for <br /> > pyobjc-dev because at least 99% of mail in that queue is spam.<br /> > <br /> <br /> Well, I did send a copy from a non-registered address, but that was just by accident. I then resent from a registered address. It was that one that didn't go through. However, I'm fairly certain it was the fault of the sending SMTP server, not the list. This isn't the first time I've had email misteriously never get delivered...<br /> <br /> > > <br /> > > I am having trouble building the latest pyobjc from subversion (or <br /> > > easy-install for that matter). A touch of background and then the <br /> > > error:<br /> > <br /> > You're trying to build on 10.4. I want to support that platform, but <br /> > haven't gotten around to fixing the issues yet. The issues are small, <br /> > but require some time on a 10.4 system to work (I have one nearby, but <br /> > don't have time to work on it just yet). My current priority is <br /> > finishing the testsuite for PyObjC, after that I'll probably spend <br /> > time on porting to 10.4 again.<br /> <br /> I find it eminently fascinating that the error presents as if I am on 10.4. I am not. I've been on Leopard since the day it came out. And, the machine I'm currently working on is a new one. So it isn't even an upgrade from 10.4. Pure 10.5 all the way. Is it possible I may have gotten an old library during the whole process of installing Python 2.6.1 from python.org and then installing the latest pythonmac release (2.5)?<br /> <br /> If it matters, as I mentioned before, I had no trouble at all using XCode 3.0 on leopard and building an app that also works on other Leopard machines. It was the inability to send the app to people using 10.4 that prompted this whole upgrade python / use py2app mission. Not to mention that I'd love to be able to use some of the new features in python 2.6, but as I mentioned before, that posed a different problem with py2app (namely it wouldn't install against 2.6.1).<br /> <br /> > <br /> > The issues with 10.4 support should be pretty small, and mostly deal <br /> > with the definition of NSInteger and supressing compilation for <br /> > functions that wrap 10.5 specific code. I also expect a lot of false <br /> > positives in the framework tests on 10.4, I haven't been as diligent <br /> > as I should in marking 10.5 specific tests as such. With some luck a <br /> > port to 10.4 will be a longish evening work.<br /> > <br /> > "easy_install pyobjc" also has a completely different issue at the <br /> > moment: this will try to install wrappers for frameworks that aren't <br /> > available on 10.4, which won't work until I provide precompiled <br /> > binaries. I have an idea on how to fix that, but haven't commited that <br /> > yet (that would be a bit useless given the other problems).<br /> > <br /> > Ronald <br /> > > <br /> > > I started out doing my python development in XCode using the OOTB <br /> > > templates in Leopard and was able to get a working application. <br /> > > However, after finding that my apps wouldn't run on 10.4, etc, I <br /> > > decided to try to go the py2app route. <br /> > > <br /> > > At the admonition of various documents and websites, I installed the <br /> <span>> > latest release of Python 2.x for Mac from <a href="http://python.org">python.org</a> (2.6.1). </span><br /> > > However, after trying (and failing) to get py2app to work with 2.6, <br /> > > I went back and installed a fresh copy of PythonMac's latest 2.5 <br /> > > release. Once I did that, py2app installed well, but now that I <br /> > > have that running, I can't get pyobjc to compile. <br /> > > <br /> > > I've tried checking out the source from SVN and doing a ./02-develop- <br /> > > all from the pyobjc directory in my working copy. I also tried <br /> > > "easy-install pyobjc". Both lead to the same result. The easy- <br /> > > install attempt just stopped after the build failure, the 02-develop- <br /> > > all attempt just kept trying over and over to re-download, compile, <br /> > > etc the failing module. Below is one instance of the offending <br /> > > install step. <br /> > > <br /> > > Anybody else have this problem and overcome it? <br /> > > <br /> > > Downloading <a target="_blank" href="http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/pyobjc-framework-Cocoa-2.2b1.tar.gz#md5">http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/pyobjc-framework-Cocoa-2.2b1.tar.gz#md5</a> <br /> > > =5ad60a840e0731d8bb12731a91bc9060 <br /> > > Processing pyobjc-framework-Cocoa-2.2b1.tar.gz <br /> > > Running pyobjc-framework-Cocoa-2.2b1/setup.py -q bdist_egg --dist- <br /> > > dir /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-/ <br /> > > easy_install-1whHNo/pyobjc-framework-Cocoa-2.2b1/egg-dist-tmp-nFXLc1 <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeArrayOfObjCType_count_at_í: <br /> > > Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:220: error: (Each undeclared <br /> > > identifier is reported only once <br /> > > Modules/_Foundation_nscoder.m:220: error: for each function it <br /> > > appears in.) <br /> > > Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí <br /> > > Modules/_Foundation_nscoder.m:228: error: syntax error before ëií <br /> > > Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use <br /> > > in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeArrayOfObjCType_count_at_í: <br /> > > Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí <br /> > > Modules/_Foundation_nscoder.m:494: error: syntax error before ëií <br /> > > Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use <br /> > > in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_encodeBytes_length_í: <br /> > > Modules/_Foundation_nscoder.m:578: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeBytes_length_í: <br /> > > Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí <br /> > > Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_decodeBytesWithReturnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí <br /> > > Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeBytesWithReturnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení <br /> > > Modules/_Foundation_nscoder.m:789: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not <br /> > > defined <br /> > > Modules/_Foundation_nscoder.m: At top level: <br /> > > Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:798: error: syntax error before string <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:798: error: conflicting types for <br /> > > ëPyErr_SetStringí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was <br /> > > here <br /> > > Modules/_Foundation_nscoder.m:798: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not <br /> > > in a function) <br /> > > Modules/_Foundation_nscoder.m:802: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of <br /> > > ëinitWithBytes:length:í makes pointer from integer without a cast <br /> > > Modules/_Foundation_nscoder.m:808: warning: initialization discards <br /> > > qualifiers from pointer target type <br /> > > Modules/_Foundation_nscoder.m:808: error: initializer element is not <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:808: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:811: warning: parameter names (without <br /> > > types) in function declaration <br /> > > Modules/_Foundation_nscoder.m:811: error: conflicting types for <br /> > > ëPyGILState_Releaseí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí <br /> > > was here <br /> > > Modules/_Foundation_nscoder.m:811: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní <br /> > > Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:820: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_decodeBytesForKey_returnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí <br /> > > Modules/_Foundation_nscoder.m:840: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:895: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeBytesForKey_returnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení <br /> > > Modules/_Foundation_nscoder.m:959: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not <br /> > > defined <br /> > > Modules/_Foundation_nscoder.m: At top level: <br /> > > Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:968: error: syntax error before string <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:968: error: conflicting types for <br /> > > ëPyErr_SetStringí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was <br /> > > here <br /> > > Modules/_Foundation_nscoder.m:968: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí <br /> > > Modules/_Foundation_nscoder.m:802: error: previous definition of <br /> > > ëlengthí was here <br /> > > Modules/_Foundation_nscoder.m:972: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of <br /> > > ëinitWithBytes:length:í makes pointer from integer without a cast <br /> > > Modules/_Foundation_nscoder.m:978: warning: initialization discards <br /> > > qualifiers from pointer target type <br /> > > Modules/_Foundation_nscoder.m:978: error: initializer element is not <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:978: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:981: warning: parameter names (without <br /> > > types) in function declaration <br /> > > Modules/_Foundation_nscoder.m:981: error: conflicting types for <br /> > > ëPyGILState_Releaseí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí <br /> > > was here <br /> > > Modules/_Foundation_nscoder.m:981: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní <br /> > > Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:990: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_encodeBytes_length_forKey_í: <br /> > > Modules/_Foundation_nscoder.m:1009: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeBytes_length_forKey_í: <br /> > > Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:1043: error: syntax error before <br /> > > ëlengthí <br /> > > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of <br /> > > ëPyString_FromStringAndSizeí makes integer from pointer without a cast <br /> > > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of <br /> > > ëPyInt_FromLongí makes integer from pointer without a cast <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeArrayOfObjCType_count_at_í: <br /> > > Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:220: error: (Each undeclared <br /> > > identifier is reported only once <br /> > > Modules/_Foundation_nscoder.m:220: error: for each function it <br /> > > appears in.) <br /> > > Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí <br /> > > Modules/_Foundation_nscoder.m:228: error: syntax error before ëií <br /> > > Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use <br /> > > in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeArrayOfObjCType_count_at_í: <br /> > > Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí <br /> > > Modules/_Foundation_nscoder.m:494: error: syntax error before ëií <br /> > > Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use <br /> > > in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_encodeBytes_length_í: <br /> > > Modules/_Foundation_nscoder.m:578: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeBytes_length_í: <br /> > > Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí <br /> > > Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_decodeBytesWithReturnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí <br /> > > Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeBytesWithReturnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení <br /> > > Modules/_Foundation_nscoder.m:789: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not <br /> > > defined <br /> > > Modules/_Foundation_nscoder.m: At top level: <br /> > > Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:798: error: syntax error before string <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:798: error: conflicting types for <br /> > > ëPyErr_SetStringí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was <br /> > > here <br /> > > Modules/_Foundation_nscoder.m:798: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not <br /> > > in a function) <br /> > > Modules/_Foundation_nscoder.m:802: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of <br /> > > ëinitWithBytes:length:í makes pointer from integer without a cast <br /> > > Modules/_Foundation_nscoder.m:808: warning: initialization discards <br /> > > qualifiers from pointer target type <br /> > > Modules/_Foundation_nscoder.m:808: error: initializer element is not <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:808: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:811: warning: parameter names (without <br /> > > types) in function declaration <br /> > > Modules/_Foundation_nscoder.m:811: error: conflicting types for <br /> > > ëPyGILState_Releaseí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí <br /> > > was here <br /> > > Modules/_Foundation_nscoder.m:811: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní <br /> > > Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:820: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_decodeBytesForKey_returnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí <br /> > > Modules/_Foundation_nscoder.m:840: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first <br /> > > use in this function) <br /> > > Modules/_Foundation_nscoder.m:895: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_decodeBytesForKey_returnedLength_í: <br /> > > Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení <br /> > > Modules/_Foundation_nscoder.m:959: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not <br /> > > defined <br /> > > Modules/_Foundation_nscoder.m: At top level: <br /> > > Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:968: error: syntax error before string <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:968: error: conflicting types for <br /> > > ëPyErr_SetStringí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was <br /> > > here <br /> > > Modules/_Foundation_nscoder.m:968: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí <br /> > > Modules/_Foundation_nscoder.m:802: error: previous definition of <br /> > > ëlengthí was here <br /> > > Modules/_Foundation_nscoder.m:972: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of <br /> > > ëinitWithBytes:length:í makes pointer from integer without a cast <br /> > > Modules/_Foundation_nscoder.m:978: warning: initialization discards <br /> > > qualifiers from pointer target type <br /> > > Modules/_Foundation_nscoder.m:978: error: initializer element is not <br /> > > constant <br /> > > Modules/_Foundation_nscoder.m:978: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí <br /> > > Modules/_Foundation_nscoder.m:981: warning: parameter names (without <br /> > > types) in function declaration <br /> > > Modules/_Foundation_nscoder.m:981: error: conflicting types for <br /> > > ëPyGILState_Releaseí <br /> > > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ <br /> > > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí <br /> > > was here <br /> > > Modules/_Foundation_nscoder.m:981: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní <br /> > > Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí <br /> > > Modules/_Foundation_nscoder.m:807: error: previous definition of <br /> > > ëpretvalí was here <br /> > > Modules/_Foundation_nscoder.m:990: warning: data definition has no <br /> > > type or storage class <br /> > > Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í <br /> > > token <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëcall_NSCoder_encodeBytes_length_forKey_í: <br /> > > Modules/_Foundation_nscoder.m:1009: error: syntax error before <br /> > > ëNSUIntegerí <br /> > > Modules/_Foundation_nscoder.m: In function <br /> > > ëimp_NSCoder_encodeBytes_length_forKey_í: <br /> > > Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared <br /> > > (first use in this function) <br /> > > Modules/_Foundation_nscoder.m:1043: error: syntax error before <br /> > > ëlengthí <br /> > > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of <br /> > > ëPyString_FromStringAndSizeí makes integer from pointer without a cast <br /> > > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of <br /> > > ëPyInt_FromLongí makes integer from pointer without a cast <br /> > > lipo: can't figure out the architecture type of: /var/folders/mb/mbL- <br /> > > JoqIES05fxNzlNIb8++++TI/-Tmp-//ccamGYMc.out <br /> > > error: Setup script exited with error: command 'gcc' failed with <br /> > > exit status 1 <br /> > > <br /> > > Daniel <br /> > > ------------------------------------------------------------------------------ <br /> <span>> > This <a href="http://sf.net">SF.net</a> email is sponsored by: </span><br /> > > High Quality Requirements in a Collaborative Environment. <br /> > > Download a free trial of Rational Requirements Composer Now! <br /> > > <a target="_blank" href="http://p.sf.net/sfu/www-ibm-com_______________________________________________">http://p.sf.net/sfu/www-ibm-com_______________________________________________</a> <br /> > > Pyobjc-dev mailing list <br /> > > <a href="mailto:Pyo...@li...">Pyo...@li...</a> <br /> > > <a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/pyobjc-dev">https://lists.sourceforge.net/lists/listinfo/pyobjc-dev</a><br /> > <br /> > <br /> > <br /> |
From: Ronald O. <ron...@ma...> - 2009-04-14 18:29:36
|
On 14 Apr, 2009, at 20:06, py...@db... wrote: > *tap, tap, tap* is this thing on? Re-sending this as it didn't > appear to go through the first time. My apologies to the list if > both copies somehow make it through eventually. Did you sent the first message from an address that's subscribed to the list? I've been pretty lax about checking the moderator queue for pyobjc-dev because at least 99% of mail in that queue is spam. > > I am having trouble building the latest pyobjc from subversion (or > easy-install for that matter). A touch of background and then the > error: You're trying to build on 10.4. I want to support that platform, but haven't gotten around to fixing the issues yet. The issues are small, but require some time on a 10.4 system to work (I have one nearby, but don't have time to work on it just yet). My current priority is finishing the testsuite for PyObjC, after that I'll probably spend time on porting to 10.4 again. The issues with 10.4 support should be pretty small, and mostly deal with the definition of NSInteger and supressing compilation for functions that wrap 10.5 specific code. I also expect a lot of false positives in the framework tests on 10.4, I haven't been as diligent as I should in marking 10.5 specific tests as such. With some luck a port to 10.4 will be a longish evening work. "easy_install pyobjc" also has a completely different issue at the moment: this will try to install wrappers for frameworks that aren't available on 10.4, which won't work until I provide precompiled binaries. I have an idea on how to fix that, but haven't commited that yet (that would be a bit useless given the other problems). Ronald > > I started out doing my python development in XCode using the OOTB > templates in Leopard and was able to get a working application. > However, after finding that my apps wouldn't run on 10.4, etc, I > decided to try to go the py2app route. > > At the admonition of various documents and websites, I installed the > latest release of Python 2.x for Mac from python.org (2.6.1). > However, after trying (and failing) to get py2app to work with 2.6, > I went back and installed a fresh copy of PythonMac's latest 2.5 > release. Once I did that, py2app installed well, but now that I > have that running, I can't get pyobjc to compile. > > I've tried checking out the source from SVN and doing a ./02-develop- > all from the pyobjc directory in my working copy. I also tried > "easy-install pyobjc". Both lead to the same result. The easy- > install attempt just stopped after the build failure, the 02-develop- > all attempt just kept trying over and over to re-download, compile, > etc the failing module. Below is one instance of the offending > install step. > > Anybody else have this problem and overcome it? > > Downloading http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/pyobjc-framework-Cocoa-2.2b1.tar.gz#md5 > =5ad60a840e0731d8bb12731a91bc9060 > Processing pyobjc-framework-Cocoa-2.2b1.tar.gz > Running pyobjc-framework-Cocoa-2.2b1/setup.py -q bdist_egg --dist- > dir /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-/ > easy_install-1whHNo/pyobjc-framework-Cocoa-2.2b1/egg-dist-tmp-nFXLc1 > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeArrayOfObjCType_count_at_í: > Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:220: error: (Each undeclared > identifier is reported only once > Modules/_Foundation_nscoder.m:220: error: for each function it > appears in.) > Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí > Modules/_Foundation_nscoder.m:228: error: syntax error before ëií > Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeArrayOfObjCType_count_at_í: > Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí > Modules/_Foundation_nscoder.m:494: error: syntax error before ëií > Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_encodeBytes_length_í: > Modules/_Foundation_nscoder.m:578: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeBytes_length_í: > Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí > Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_decodeBytesWithReturnedLength_í: > Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí > Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeBytesWithReturnedLength_í: > Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení > Modules/_Foundation_nscoder.m:789: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:798: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:798: error: conflicting types for > ëPyErr_SetStringí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was > here > Modules/_Foundation_nscoder.m:798: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not > in a function) > Modules/_Foundation_nscoder.m:802: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of > ëinitWithBytes:length:í makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:808: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:808: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:808: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:811: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:811: error: conflicting types for > ëPyGILState_Releaseí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí > was here > Modules/_Foundation_nscoder.m:811: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní > Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í > token > Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:820: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í > token > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_decodeBytesForKey_returnedLength_í: > Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí > Modules/_Foundation_nscoder.m:840: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:895: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeBytesForKey_returnedLength_í: > Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení > Modules/_Foundation_nscoder.m:959: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:968: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:968: error: conflicting types for > ëPyErr_SetStringí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was > here > Modules/_Foundation_nscoder.m:968: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí > Modules/_Foundation_nscoder.m:802: error: previous definition of > ëlengthí was here > Modules/_Foundation_nscoder.m:972: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of > ëinitWithBytes:length:í makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:978: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:978: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:978: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:981: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:981: error: conflicting types for > ëPyGILState_Releaseí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí > was here > Modules/_Foundation_nscoder.m:981: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní > Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í > token > Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:990: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í > token > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_encodeBytes_length_forKey_í: > Modules/_Foundation_nscoder.m:1009: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeBytes_length_forKey_í: > Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:1043: error: syntax error before > ëlengthí > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of > ëPyString_FromStringAndSizeí makes integer from pointer without a cast > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of > ëPyInt_FromLongí makes integer from pointer without a cast > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeArrayOfObjCType_count_at_í: > Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:220: error: (Each undeclared > identifier is reported only once > Modules/_Foundation_nscoder.m:220: error: for each function it > appears in.) > Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí > Modules/_Foundation_nscoder.m:228: error: syntax error before ëií > Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeArrayOfObjCType_count_at_í: > Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí > Modules/_Foundation_nscoder.m:494: error: syntax error before ëií > Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use > in this function) > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_encodeBytes_length_í: > Modules/_Foundation_nscoder.m:578: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeBytes_length_í: > Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí > Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_decodeBytesWithReturnedLength_í: > Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí > Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeBytesWithReturnedLength_í: > Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení > Modules/_Foundation_nscoder.m:789: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:798: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:798: error: conflicting types for > ëPyErr_SetStringí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was > here > Modules/_Foundation_nscoder.m:798: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not > in a function) > Modules/_Foundation_nscoder.m:802: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of > ëinitWithBytes:length:í makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:808: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:808: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:808: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:811: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:811: error: conflicting types for > ëPyGILState_Releaseí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí > was here > Modules/_Foundation_nscoder.m:811: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní > Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í > token > Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:820: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í > token > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_decodeBytesForKey_returnedLength_í: > Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí > Modules/_Foundation_nscoder.m:840: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first > use in this function) > Modules/_Foundation_nscoder.m:895: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_decodeBytesForKey_returnedLength_í: > Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í > token > Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení > Modules/_Foundation_nscoder.m:959: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not > defined > Modules/_Foundation_nscoder.m: At top level: > Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:968: error: syntax error before string > constant > Modules/_Foundation_nscoder.m:968: error: conflicting types for > ëPyErr_SetStringí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was > here > Modules/_Foundation_nscoder.m:968: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí > Modules/_Foundation_nscoder.m:802: error: previous definition of > ëlengthí was here > Modules/_Foundation_nscoder.m:972: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of > ëinitWithBytes:length:í makes pointer from integer without a cast > Modules/_Foundation_nscoder.m:978: warning: initialization discards > qualifiers from pointer target type > Modules/_Foundation_nscoder.m:978: error: initializer element is not > constant > Modules/_Foundation_nscoder.m:978: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí > Modules/_Foundation_nscoder.m:981: warning: parameter names (without > types) in function declaration > Modules/_Foundation_nscoder.m:981: error: conflicting types for > ëPyGILState_Releaseí > /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ > pystate.h:164: error: previous declaration of ëPyGILState_Releaseí > was here > Modules/_Foundation_nscoder.m:981: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní > Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í > token > Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí > Modules/_Foundation_nscoder.m:807: error: previous definition of > ëpretvalí was here > Modules/_Foundation_nscoder.m:990: warning: data definition has no > type or storage class > Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í > token > Modules/_Foundation_nscoder.m: In function > ëcall_NSCoder_encodeBytes_length_forKey_í: > Modules/_Foundation_nscoder.m:1009: error: syntax error before > ëNSUIntegerí > Modules/_Foundation_nscoder.m: In function > ëimp_NSCoder_encodeBytes_length_forKey_í: > Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared > (first use in this function) > Modules/_Foundation_nscoder.m:1043: error: syntax error before > ëlengthí > Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of > ëPyString_FromStringAndSizeí makes integer from pointer without a cast > Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of > ëPyInt_FromLongí makes integer from pointer without a cast > lipo: can't figure out the architecture type of: /var/folders/mb/mbL- > JoqIES05fxNzlNIb8++++TI/-Tmp-//ccamGYMc.out > error: Setup script exited with error: command 'gcc' failed with > exit status 1 > > Daniel > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Ronald O. <ron...@ma...> - 2009-04-14 18:22:09
|
On 14 Apr, 2009, at 19:19, Johan Rydberg wrote: > I would like to use the great BWToolkit in my little application. > > So, how do I bundle and use a framework with pyobjc and py2app? > > I've included the framework using the --framework option to py2app > for startes, but still the symbols isn't available to the NIB. > > After a bit of googling I found this: > > http://livingcode.blogspot.com/2004/11/packaging-frameworks.html > > Is this the correct way to do it? The code on that page should work, but seems unnecesarily complex. To be honest I haven't seriously tried packaging additional frameworks into .app bundles, I've been getting away with either using only Apple's frameworks are relying on already installed frameworks in / Library/Frameworks until know. I'll probably package the BWToolkit sometime in the future, it seems to contain some useful functionality. Ronald |
From: Ronald O. <ron...@ma...> - 2009-04-14 18:14:31
|
On 14 Apr, 2009, at 18:57, Johan Rydberg wrote: > BTW, how do Cocoa know to seach inside English.lproj? Is there > defined search order for > resources? The order is determined by the Language settings in the "International" preference pane. When none of the languages matches a .lproj folder in your .app folder the systems searches directly in the Resources folder. The actual mechanism is described in Apple's documentation somewhere (I don't have a handy reference). Ronald > > On Tue, Apr 14, 2009 at 9:40 AM, Ronald Oussoren <ron...@ma... > > wrote: >> >> On 14 Apr, 2009, at 8:54, Johan Rydberg wrote: >> >>> Odd, because I've seen people just add English.lproj to data_files. >>> For example, look at >>> /Developer/Examples/Python/PyObjC/Cocoa/AppKit/Todo/setup.py. >> >> Adding English.lproj to data_files should just work, if it doesn't >> you have >> found a bug in py2app. >> >> Ronald >> >> |
From: <py...@db...> - 2009-04-14 18:01:35
|
*tap, tap, tap* is this thing on? Re-sending this as it didn't appear to go through the first time. My apologies to the list if both copies somehow make it through eventually.<br /> <br /> I am having trouble building the latest pyobjc from subversion (or easy-install for that matter). A touch of background and then the error:<br /> <br /> I started out doing my python development in XCode using the OOTB templates in Leopard and was able to get a working application. However, after finding that my apps wouldn't run on 10.4, etc, I decided to try to go the py2app route.<br /> <br /> At the admonition of various documents and websites, I installed the latest release of Python 2.x for Mac from python.org (2.6.1). However, after trying (and failing) to get py2app to work with 2.6, I went back and installed a fresh copy of PythonMac's latest 2.5 release. Once I did that, py2app installed well, but now that I have that running, I can't get pyobjc to compile.<br /> <br /> I've tried checking out the source from SVN and doing a ./02-develop-all from the pyobjc directory in my working copy. I also tried "easy-install pyobjc". Both lead to the same result. The easy-install attempt just stopped after the build failure, the 02-develop-all attempt just kept trying over and over to re-download, compile, etc the failing module. Below is one instance of the offending install step.<br /> <br /> Anybody else have this problem and overcome it?<br /> <br /> Downloading http://pypi.python.org/packages/source/p/pyobjc-framework-Cocoa/pyobjc-framework-Cocoa-2.2b1.tar.gz#md5=5ad60a840e0731d8bb12731a91bc9060<br /> Processing pyobjc-framework-Cocoa-2.2b1.tar.gz<br /> Running pyobjc-framework-Cocoa-2.2b1/setup.py -q bdist_egg --dist-dir /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-/easy_install-1whHNo/pyobjc-framework-Cocoa-2.2b1/egg-dist-tmp-nFXLc1<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ëlengthí was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ëPyString_FromStringAndSizeí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ëPyInt_FromLongí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:220: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:220: error: (Each undeclared identifier is reported only once<br /> Modules/_Foundation_nscoder.m:220: error: for each function it appears in.)<br /> Modules/_Foundation_nscoder.m:220: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:228: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:249: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:256: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeArrayOfObjCType_count_at_í:<br /> Modules/_Foundation_nscoder.m:486: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:486: error: syntax error before ëcountí<br /> Modules/_Foundation_nscoder.m:494: error: syntax error before ëií<br /> Modules/_Foundation_nscoder.m:516: error: ëcountí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:538: error: ëií undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:578: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:590: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:590: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_í:<br /> Modules/_Foundation_nscoder.m:612: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:612: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:630: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:665: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:665: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:680: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesWithReturnedLength_í:<br /> Modules/_Foundation_nscoder.m:749: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: ëlengthí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:749: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:755: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:789: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:762: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:795: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:798: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:798: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:798: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:802: error: ëlení undeclared here (not in a function)<br /> Modules/_Foundation_nscoder.m:802: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:807: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:808: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:808: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:808: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:810: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:811: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:811: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:811: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:812: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:819: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:820: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:820: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:821: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:828: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:828: error: syntax error before ësizeí<br /> Modules/_Foundation_nscoder.m:840: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:844: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:844: error: ësizeí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:895: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_decodeBytesForKey_returnedLength_í:<br /> Modules/_Foundation_nscoder.m:915: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:915: error: syntax error before ë)í token<br /> Modules/_Foundation_nscoder.m:922: error: syntax error before ëlení<br /> Modules/_Foundation_nscoder.m:959: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m:929: error: label ëerrorí used but not defined<br /> Modules/_Foundation_nscoder.m: At top level:<br /> Modules/_Foundation_nscoder.m:965: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:968: error: syntax error before string constant<br /> Modules/_Foundation_nscoder.m:968: error: conflicting types for ëPyErr_SetStringí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyerrors.h:78: error: previous declaration of ëPyErr_SetStringí was here<br /> Modules/_Foundation_nscoder.m:968: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:972: error: redefinition of ëlengthí<br /> Modules/_Foundation_nscoder.m:802: error: previous definition of ëlengthí was here<br /> Modules/_Foundation_nscoder.m:972: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:977: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:977: warning: passing argument 1 of ëinitWithBytes:length:í makes pointer from integer without a cast<br /> Modules/_Foundation_nscoder.m:978: warning: initialization discards qualifiers from pointer target type<br /> Modules/_Foundation_nscoder.m:978: error: initializer element is not constant<br /> Modules/_Foundation_nscoder.m:978: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:980: error: syntax error before ëifí<br /> Modules/_Foundation_nscoder.m:981: warning: parameter names (without types) in function declaration<br /> Modules/_Foundation_nscoder.m:981: error: conflicting types for ëPyGILState_Releaseí<br /> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pystate.h:164: error: previous declaration of ëPyGILState_Releaseí was here<br /> Modules/_Foundation_nscoder.m:981: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:982: error: syntax error before ëreturní<br /> Modules/_Foundation_nscoder.m:989: error: syntax error before ë->í token<br /> Modules/_Foundation_nscoder.m:990: error: redefinition of ëpretvalí<br /> Modules/_Foundation_nscoder.m:807: error: previous definition of ëpretvalí was here<br /> Modules/_Foundation_nscoder.m:990: warning: data definition has no type or storage class<br /> Modules/_Foundation_nscoder.m:991: error: syntax error before ë}í token<br /> Modules/_Foundation_nscoder.m: In function ëcall_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1009: error: syntax error before ëNSUIntegerí<br /> Modules/_Foundation_nscoder.m: In function ëimp_NSCoder_encodeBytes_length_forKey_í:<br /> Modules/_Foundation_nscoder.m:1043: error: ëNSUIntegerí undeclared (first use in this function)<br /> Modules/_Foundation_nscoder.m:1043: error: syntax error before ëlengthí<br /> Modules/_Foundation_nscoder.m:1062: warning: passing argument 2 of ëPyString_FromStringAndSizeí makes integer from pointer without a cast<br /> Modules/_Foundation_nscoder.m:1066: warning: passing argument 1 of ëPyInt_FromLongí makes integer from pointer without a cast<br /> lipo: can't figure out the architecture type of: /var/folders/mb/mbL-JoqIES05fxNzlNIb8++++TI/-Tmp-//ccamGYMc.out<br /> error: Setup script exited with error: command 'gcc' failed with exit status 1<br /> <br /> Daniel<br /> |
From: Johan R. <joh...@gm...> - 2009-04-14 17:19:39
|
I would like to use the great BWToolkit in my little application. So, how do I bundle and use a framework with pyobjc and py2app? I've included the framework using the --framework option to py2app for startes, but still the symbols isn't available to the NIB. After a bit of googling I found this: http://livingcode.blogspot.com/2004/11/packaging-frameworks.html Is this the correct way to do it? |
From: Johan R. <joh...@gm...> - 2009-04-14 16:58:00
|
BTW, how do Cocoa know to seach inside English.lproj? Is there defined search order for resources? On Tue, Apr 14, 2009 at 9:40 AM, Ronald Oussoren <ron...@ma...> wrote: > > On 14 Apr, 2009, at 8:54, Johan Rydberg wrote: > >> Odd, because I've seen people just add English.lproj to data_files. >> For example, look at >> /Developer/Examples/Python/PyObjC/Cocoa/AppKit/Todo/setup.py. > > Adding English.lproj to data_files should just work, if it doesn't you have > found a bug in py2app. > > Ronald > > |