Hi Alex, Yes, it is the same issue as Mike pointed out: accessing the main binary with “@“ does not work.
But with some cheating: ===> ./pil + : (de %@ @ (pass 'native "libSystem.B.dylib")) # %@ redefined -> %@ : (scl 6) -> 6 : (%@ "cos" 1.0 (1.0 . 1.0)) -> 540302 : (load "misc/pyramids.l") pyramids.l works as expected. Regards, Andras > On 2020. Nov 7., at 17:36, Alexander Burger <a...@software-lab.de> wrote: > > Hi Jon & Andras, > >> I have now changed lib/openGl.l as you described, and when I do > > OK, so "Darwin" is generated in 'make', and not "Macos". I change it back. > >> $ ./pil misc/sphere.l + >> then I get a nice sphere. > > Cool! > > >> If I do >> $ ./pil misc/cube.l + >> then I get a window with a gray background, but no visible cube. > > So this might be what Andras wrote: It needs glutCheckLoop instead of > glutMainLoopEvent? > > >> If I do >> $ ./pil misc/pyramids.l + >> then I get no graphics, only this: >> [misc/pyramids.l:182] !? (%@ "cos" 1000000 "Dbl1") >> Bad ffi > > And this is the issue Mike talked about: Accessing code in the main binary > with > "@" does not work. > > Perhaps it is only '%@'? If > > : (%@ "cos" 1.0 (1.0 . 1.0)) > -> 540302 > > does not work, how about this one? > > : (native "@" "cos" 1.0 (1.0 . 1.0)) > -> 540302 > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe