Thread: [Pyobjc-dev] Not able to install pyobjc-framework-FSEvents-2.2b1 on my Mac
Brought to you by:
ronaldoussoren
|
From: Vijayendra B. <vij...@Xo...> - 2009-03-20 12:12:05
|
Hi, I am getting an gcc compilation error while installing pyobjc-framework-FSEvents-2.2b1 on my Mac (OS X 10.4.11, Intel Core Duo 32 bit processor, Python2.6.1, gcc: i686-apple- darwin8-gcc-4.0.1) Here is the error log. $python setup.py install running install_lib running build_py running build_ext building 'FSEvents._callbacks' extension gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk - fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/ Frameworks/Python.framework/Versions/2.6/include/python2.6 -c Modules/ _callbacks.m -o build/temp.macosx-10.3-i386-2.6/Modules/_callbacks.o - O0 Modules/_callbacks.m:60: error: parse error before 'm_python_context_template' Modules/_callbacks.m:62: warning: excess elements in scalar initializer Modules/_callbacks.m:62: warning: (near initialization for 'm_python_context_template') Modules/_callbacks.m:63: warning: excess elements in scalar initializer . . . . (Error ending with) Modules/_callbacks.m:133: error: previous definition of 'result' was here Modules/_callbacks.m:353: error: parse error before 'FSEventStreamRef' lipo: can't figure out the architecture type of: /var/tmp// cco6kalc.out error: command 'gcc' failed with exit status 1 Could someone help me in solving this compilation error? Regards, Vijayendra |
|
From: Ronald O. <ron...@ma...> - 2009-03-22 18:01:10
Attachments:
smime.p7s
|
On 20 Mar, 2009, at 12:59, Vijayendra Bapte wrote: > Hi, > > I am getting an gcc compilation error while installing pyobjc- > framework-FSEvents-2.2b1 > on my Mac (OS X 10.4.11, Intel Core Duo 32 bit processor, > Python2.6.1, gcc: i686-apple- > darwin8-gcc-4.0.1) > I'll have to find a way to disable this framework wrapper on Tiger systems, it wraps some API's that aren't available on Tiger systems. Ronald |
|
From: Vijayendra B. <vij...@xo...> - 2009-03-23 03:59:13
|
Hi Ronald, Thanks for your reply. I want to develop a directory watcher on Mac so that I can get the notification as soon as any file added//modified/deleted from the marked directory. Is there any alternate way detecting File System Events on Tiger? Thanks, Vijayendra. On 3/22/09 11:30 PM, "Ronald Oussoren" <ron...@ma...> wrote: > > On 20 Mar, 2009, at 12:59, Vijayendra Bapte wrote: > >> Hi, >> >> I am getting an gcc compilation error while installing >> pyobjc-framework-FSEvents-2.2b1 >> on my Mac (OS X 10.4.11, Intel Core Duo 32 bit processor, Python2.6.1, gcc: >> i686-apple- >> darwin8-gcc-4.0.1) >> > > I'll have to find a way to disable this framework wrapper on Tiger systems, it > wraps some API's that aren't available on Tiger systems. > > Ronald > > |
|
From: Ronald O. <ron...@ma...> - 2009-03-23 06:43:48
Attachments:
smime.p7s
|
On 23 Mar, 2009, at 4:58, Vijayendra Bapte wrote: > Hi Ronald, > > Thanks for your reply. > > I want to develop a directory watcher on Mac so that I can get the > notification as soon as any file added//modified/deleted from the > marked directory. Is there any alternate way detecting File System > Events on Tiger? Not really. Spotlight uses a private API to look for changes on Tiger. It might be possible to emulate the behaviour using kevent/ kqueue, although I've never tried doing that. The other alternative is polling for changes. Ronald > > Thanks, > Vijayendra. > > > On 3/22/09 11:30 PM, "Ronald Oussoren" <ron...@ma...> wrote: > >> >> On 20 Mar, 2009, at 12:59, Vijayendra Bapte wrote: >> >>> Hi, >>> >>> I am getting an gcc compilation error while installing pyobjc- >>> framework-FSEvents-2.2b1 >>> on my Mac (OS X 10.4.11, Intel Core Duo 32 bit processor, >>> Python2.6.1, gcc: i686-apple- >>> darwin8-gcc-4.0.1) >>> >> >> I'll have to find a way to disable this framework wrapper on Tiger >> systems, it wraps some API's that aren't available on Tiger systems. >> >> Ronald >> >> > |
|
From: Vijayendra B. <vij...@xo...> - 2009-03-23 07:30:30
|
Yaa, I have tried kqueue/kevent. But it does not give me the granularity as FSEvents i.e I am not able to detect which file is modified/added/deleted inside the marked directory. So finally, I will have to use polling. :-( Thanks for your help. - Vijayendra On 3/23/09 12:13 PM, "Ronald Oussoren" <ron...@ma...> wrote: > > On 23 Mar, 2009, at 4:58, Vijayendra Bapte wrote: > >> Hi Ronald, >> >> Thanks for your reply. >> >> I want to develop a directory watcher on Mac so that I can get the >> notification as soon as any file added//modified/deleted from the marked >> directory. Is there any alternate way detecting File System Events on Tiger? > > Not really. Spotlight uses a private API to look for changes on Tiger. It > might be possible to emulate the behaviour using kevent/kqueue, although I've > never tried doing that. The other alternative is polling for changes. > > Ronald > >> >> Thanks, >> Vijayendra. >> >> >> On 3/22/09 11:30 PM, "Ronald Oussoren" <ron...@ma...> wrote: >> >> >>> >>> On 20 Mar, 2009, at 12:59, Vijayendra Bapte wrote: >>> >>> >>>> Hi, >>>> >>>> I am getting an gcc compilation error while installing >>>> pyobjc-framework-FSEvents-2.2b1 >>>> on my Mac (OS X 10.4.11, Intel Core Duo 32 bit processor, Python2.6.1, >>>> gcc: i686-apple- >>>> darwin8-gcc-4.0.1) >>>> >>>> >>> >>> I'll have to find a way to disable this framework wrapper on Tiger systems, >>> it wraps some API's that aren't available on Tiger systems. >>> >>> Ronald >>> >>> >>> >> >> >> > > |