critcl 64bit on MacOSX not working

13 views
Skip to first unread message

Zbigniew Diaczyszyn

unread,
Dec 16, 2011, 4:37:03 PM12/16/11
to sta...@googlegroups.com
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

Zbigniew Diaczyszyn

unread,
Dec 17, 2011, 6:09:44 AM12/17/11
to sta...@googlegroups.com

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?


Steve Landers

unread,
Dec 17, 2011, 7:02:20 AM12/17/11
to Zbigniew Diaczyszyn, sta...@googlegroups.com
Check out Andreas Kupries critcl3 http://wiki.tcl.tk/2523

-- Steve

Sent from my iPhone

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

Zbigniew Diaczyszyn

unread,
Dec 19, 2011, 1:52:56 PM12/19/11
to sta...@googlegroups.com

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 ...


Reply all
Reply to author
Forward
0 new messages