Re: critcl 64bit on MacOSX not working

Zbigniew Diaczyszyn <[email protected]> Mon, 19 Dec 2011 19:52:56 +0100
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Am 17.12.2011 12:09, schrieb Zbigniew Diaczyszyn:
> Am 16.12.2011 22:37, schrieb Zbigniew Diaczyszyn:
>> I tried to compile a 64 bit sha256 C extension from the tcllib package with AS ./tclkit-8.5.11-macosx-universal and a critcl.kit from digitalsmarties.com (1. April 2010). MacOSX is Snow Leopard 10.6.2.
>>
>> Compiling failed with this mysterious error message:
>>
>> $ ./tclkit-8.5.11-macosx-universal critcl.kit -target macosx-x86_64 -pkg sha256c.tcl
>> cannot load gbutton
>> cannot load Wikit::Gui
>>
>> Can anybody help?
>>
>> Zbigniew
>>
> 
> I had chosen the Tk-basekit version.
> 
> My new trial was:
> 
> $ ./base-tcl8.5-thread-macosx10.5-i386-x86_64 critcl.kit -I macosx-86_64 -lib sha256c.tcl
> Source: sha256c.tcl
> Library: sha256c.dylib
> 
> Alas:
> 
> $ file sha256c.dylib
> sha256c.dylib: Mach-O dynamically linked shared library i386
> 
> So this is the way I should call critcl?
> 
> 

Cross-compiling a 64bit extension on a 32bit MacOSX host worked finally with the critcl2.kit from the digitalsmarties' site. Fortunately Snow Leopard 10.6.2 has already all the necessary 64bit libraries:

$ ./base-tcl8.5-thread-macosx10.5-i386-x86_64 critcl2.kit -pkg -target macosx-ix86 sha256c.tcl
Target:   macosx-ix86
Source:   sha256c.tcl 
Library:  sha256c.dylib
Package:  lib/sha256c

$ file lib/sha256c/macosx-ix86/sha256c.dylib 
lib/sha256c/macosx-ix86/sha256c.dylib: Mach-O universal binary with 2 architectures
lib/sha256c/macosx-ix86/sha256c.dylib (for architecture i386):	Mach-O bundle i386
lib/sha256c/macosx-ix86/sha256c.dylib (for architecture x86_64):  Mach-O 64-bit bundle x86_64

Great work, this kit!

Sure, I will investigate the new critcl v3 ... 


-- 
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en