[Openmcl-devel] Core Animation ?

Didier Verna didier at lrde.epita.fr
Fri Apr 11 08:08:10 PDT 2008


Gary Byers <gb at clozure.com> wrote:

>>  Cool ! Now, I can't load the framework because I have nothing in
>> darwin-x86-headers64/ apart from the populate.sh script. I could try
>> to run it myself, but then I'm missing an h-to-ffi.sh script that I
>> can't find anywhere. I couldn't find premade database files on the
>> ftp website either. What should I do ?
>
> 1) wait a couple of days.  Really.
> 2) go to "http://openmcl.clozure.com/cgi-bin/viewvc.cgi/trunk/darwin-x86-headers64/?root=svn"; click on the "download GNU tarball" link.
> 3) use svn
> shell> svn co http://svn.clozure.com/pubicsvn/openmcl/trunk/darwin-x86-headers64
> 4) probably other ways to do this

OK, I guess I have to put a logical OR between these options right ? :-)
So I chose 3/ and was able to do this at runtime:

(require 'cocoa)
(ccl::define-special-objc-word "CA")
(objc:load-framework "QuartzCore" :quartzcore)
> ns:ca-layer
=> #<OBJC:OBJC-CLASS NS:CA-LAYER bla bla>

However, if I put these 3 lines of code in a build script (ending with a
call to build-application), the app doesn't run anymore, as show below. 
I've also tried to put these lines so that they are evaluated also at
application run time (not [only] when I build it), but this doesn't work
either.


Should I really be 2 days patient, or is it something else ?


Thanks !


===========

Error during early application initialization:

value #<A Dead Mac Pointer> is not of the expected type MACPTR.
? for help
[6277] OpenMCL kernel debugger: B   
current thread: tcr = 0x100770, native thread ID = 0x10b, interrupts disabled


(#x0000000000442DA0) #x0000300040560A6C : #<Anonymous Function #x000030004055FB7F> + 3821
(#x0000000000442E00) #x00003000404C94BC : #<Function FUNCALL-WITH-ERROR-REENTRY-DETECTION #x00003000404C93EF> + 205
(#x0000000000442E40) #x0000300040560FBC : #<Function %XERR-DISP #x0000300040560DCF> + 493
(#x0000000000442E78) #x0000300040129504 : #<Function %PASCAL-FUNCTIONS% #x000030004012936F> + 405
(#x0000000000442EE0) #x0000000000000000 : #<Function SEND-UNAMBIGUOUS-MESSAGE #x0000300040DCCD8F> + ??
(#x0000000000442F40) #x000030004122C16C : #<Function CREATE-AUTORELEASE-POOL #x000030004122C13F> + 45
(#x0000000000442F50) #x000030004123A5AC : #<Function %RELOAD-OBJC-FRAMEWORK #x000030004123A30F> + 669
(#x0000000000442F80) #x0000300040D6FABC : #<Function REVIVE-OBJC-CLASSES #x0000300040D6F9FF> + 189
(#x0000000000442FB0) #x0000300040B8858C : #<Function RESTORE-LISP-POINTERS #x0000300040B884BF> + 205
[6277] OpenMCL kernel debugger: K
zsh: killed     ./iOwn.app/Contents/MacOS/iOwn


-- 
5th European Lisp Workshop at ECOOP 2008, July 7: http://elw.bknr.net/2008/

Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-Bicêtre, France   Fax.+33 (0)1 53 14 59 22  didier at xemacs.org



More information about the Openmcl-devel mailing list