[Openmcl-devel] Gtk examples in openmcl?

Gary Byers gb at clozure.com
Tue Jun 15 03:08:33 PDT 2004



On Tue, 15 Jun 2004, Andrew P. Lentvorski, Jr. wrote:

> Greetings,
>
> I was trying to get the gtk examples to work in openmcl, but I don't
> seem to be getting very far.
>
> First, the gtk libraries are looking for "libgdk.so".  I don't think
> this is correct.  So, I changed it to "libgdk.dylib".  This still
> didn't work until I specified the full fink path of
> "/sw/lib/libgdk.dylib".  At this point, the system recognized and
> pulled in the library.

The GTK examples were written for LinuxPPC.

>
> However, once I do that, then I get another error:
> Andrew-Lentvorskis-Computer:/home/alpha/ccl/examples andrewl$ openmcl
> Welcome to OpenMCL Version (Beta: Darwin) 0.14.2-p1!
> ? (require "gtk-minesweeper.lisp")
> ; Warning: Interface file #4P"ccl:darwin-headers;gtk;functions.cdb"
> does not exist.
> ; While executing: CDB-OPEN
>  > Error in process listener(1): Foreign function not found:
> OS::|gtk_init|
>  > While executing: LOAD-EXTERNAL-FUNCTION
>  > Type :POP to abort.
>

GTK isn't distrubuted as part of OSX (though you can use things like
Fink or Darwinports to install an X11-based version.)  I think that
there's been some progress in creating an Aqua-native version, but
haven't followed this too closely.

If you -really- want to, you can try to use the interface translator
to produce "cdb" files for GTK/GDK on OSX.  GTK 1.x isn't particularly
thread-safe, and I'm not sure what you'd need to do to to really be
able to exploit GTK 2.x under OpenMCL: the header files make heavy
use of the C preprocessor, and it's not clear how much of that can
get automatically translated into something useful.

> In addition, I tried to pull the latest devel CVS, but it just seems to
> hang at the MacOS directory.

At one point, I accidentally checked in a "real"
"ccl:OpenMCL.app;Contents;MacOS;dppccl" ; it takes CVS quite a while to
either check this out or figure out that that wouldn't be a good idea.
I replaced the copy that's in the repository and it seems that I can
update working copies without confusing CVS.

Until you're more comfortable with OpenMCL, you probably want to mostly
ignore the development ("bleeding edge") CVS tree.

>
> I'm running OS X 10.3.4 on a 15" AlBook G4.
>
> I'm sorry that I'm asking such newbie questions, but I'm just coming
> back to Lisp.  I'm still struggling with getting a decent environment
> wrapped together to do work on this.
>
> Thanks,
> -a
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list