Hi again:
I tried to work around the error in my previous email by simply commenting out the source line in question.
No I cannot get past the call to 'glut-create-window :
When I use the original code in function 'lesson-14 that provides a window title using uffi:with-cstring OpenMCL decides to die without even telling me or SLIME.
I then went on to call 'glut-create-window as in
(glut-create-window nil)
but that obviously also does not work because
"value NIL is not of the exptected type MACPTR".
While this is just a question of digging into the OpenMCL specifcs of UFFI and also finding out about MACPTRs in OpenMCL I thought it's better to check if you have a solution for this already.
See ya, guys.
Frank
On Sat, 2004-10-23 at 22:23, Frank Goenninger wrote:
Hi all:
I'm stuck. I tried to understand what SLIME, OpenMCL and the cl-opencl source want to tell me. Somehow this is beyond my ability to Just Get It.
Where I'm stuck:
Getting glut-functions.lisp to use function 'glut-set-option which apparently is not in Apple's GLUT.
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. 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 ;-)
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 ????
Thx for any help.
Cheers, Frank