[cells-devel] [Fwd: Re: [Fwd: I'm stuck ... pse help!]]
Kenny Tilton
ktilton at nyc.rr.com
Sat Oct 23 22:28:12 UTC 2004
-------- Original Message --------
Subject: Re: [Fwd: I'm stuck ... pse help!]
Date: Sat, 23 Oct 2004 18:27:15 -0400
From: Kenny Tilton <ktilton at nyc.rr.com>
To: frank_goenninger at t-online.de
References: <1098563096.1653.66.camel at stargate.de.goenninger.com>
Frank Goenninger wrote:
>Where I'm stuck:
>
>Getting glut-functions.lisp to use function 'glut-set-option which
>apparently is not in Apple's GLUT.
>
Not a problem! We need to put a #+FREEGLUT feature on any
glut-set-option call, or anything else corresponding to the FG way of
fixing the Glut problem with closing windows. Apple's fix was to specify
a new callback, glutWMCloseFunc. We have to supply that callback to
avoid the standard Glut behavior of calling exit() when a window closes,
cuz that would also close the Lisp IDE after each test run.
I have to do some research to find out what we should do inside our
glutWMCloseFunc -- maybe nothing, maybe call glutDestroyWindow, maybe
just do our Lisp housekeeping for window closes.
>
>Of course I had to make some changes to various sources:
>
>Notably I found that OpenMCL does not need to use a CLOS package because
>this is already built-in and accessable in the CL-USER package.
>
Ah, yes, sounds familiar.
> Hell,
>why is there no CLOS entry in the OpenMCL docs ?!
>
>Ehem, Kenny, I found a
>
>/* stencils */
>
>in the gl-functions.lisp file. Where did that come from? I changed this
>to use #| and |# as comment delimiters. Well, now it's fixed ;-)
>
yeah, that was the right thing to do. I do not know why ACL and LW have
not complained about that.
>
>ImageMagick and FTGL also work now on Mac OS X for me. I also modified
>the Imakefile in the ftgl-int directory to build a dynamic library on OS
>X. So that's working also with the test program being available.
>
>Back to what's not working
>
>The error I get is:
>
>Can't resolve foreign symbol "_glutSetOption"
>
>For detailed info pls see the attached PDF file - a screen dump showing
>Emacs with a backtrace.
>
>Also, I attached the files I changed in a tar file so you can follow my
>adaptions.
>
>I used "nm" and "otool" on OS X to track down the glutSetOption thingy
>but with no luck.
>
>So, my question is:
>
>How did you do it ????
>
?? Is it possible I have misled you into thinking I have anything
working on OS X? If so, sorry. No, all I have done is use Freeglut on
win32 (and you got it working on Linux!) so fair warning: as I feared
(and hoped!) you got to these Apple Glut differences before I did and
are bearing the brunt. I will try to stop playing with my new G5 and
help. :) More on glutWMCloseFunc ASAP...ok, here goes:
Apple Glut doc says they copied Rob Fletcher's Glut fixes. Here is Rob:
http://www-users.york.ac.uk/~rpf1/glut.html
In there he offers WMTest.c, which I see works as I suspected: provide a
callback that does nothing. So I think all we have to do is duplicate
this line of code in glut-callbacks-set:
(glut-callback-set 'glut-close-func close)
#-FREEGLUT
(glut-callback-set 'glut-wm-close-func close)
I guess a danger is that both might get called under Apple's, in which
case just put a #-FREEGLUT on the glut-close-func call.
#+FREEGLUT (glut-callback-set 'glut-close-func close)
#-FREEGLUT (glut-callback-set 'glut-wm-close-func close)
btw, the (ogl::lesson-14) test requires only gl, glu and glut to run,
not FTGL or ImageMagick -- it uses the limited built-in glut fonts.
congrats again on the (usual <g>) rapid progress. now back to my G5! :)
kt
--
Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
--
Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film
More information about the cells-devel
mailing list