[cells-devel] Small progress: GLUT-INIT not called due to false init value checking

Frank Goenninger frank_goenninger at t-online.de
Sun Oct 24 22:42:02 UTC 2004


Hi Kenn & all:

I just discovered that GLUT wasn't initialized properly in cl-glut-init.

This is due to the (zerop glut-state) which I turned into

(or (eq glut-state 0) (eq glut-state -1))

Also, I found that when calling glut-init I run into a 

"a MACPTR cannot be coerced to INTEGER"

error. So I fiddled with the call to glut-init (all in file
glut-extras.lisp) and replaced the argc argument with a fixed integer
value, 1. Now I see a new Dock element, a terminal that shows the
OpenMCL text when going over it with the mouse. Unfortunately, OpenMCL
now does not return from that call.

So I suppose we have a FFI problem here, most probably some problems
with pointers. Now, this is a new one for me, so it will take some time
to fix it. Suggestions?

Thx!

Happy Hacking - Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/cells-devel/attachments/20041025/ff14bb9a/attachment.sig>


More information about the cells-devel mailing list