Re: IO and OpenGL on Linux (glClearColor not found)
Steve Dekorte <[email protected]>
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
Looks like in IoVector_gl.c:
IoObject *self = IoSeq_new(state);
Needed to be:
IoObject *self = IoState_protoWithName_(state, "Sequence");
Due to a relatively recent change in how prototypes are registered.
I've pushed a fix. The example ran after I made this change, but much has changed since the demo was written, so it feels weird.
Hope this helps,
Steve
On 2011-09-21 Wed, at 07:58 AM, Mildred Ki'Lya wrote:
>
>
> Hi,
>
> I'm trying to compile IO and run Flux examples on linux, but I have a few problems:
>
> - First (from git), the addons/CMakeLists.txt disabled the cairo addon necessary to run Flux. I had to reactivate it manually. Is that normal?
> - Then, I'm getting the following error when running Flux examples:
>
> Exception: Color does not respond to 'glClearColor'
> ---------
> Color glClearColor OSWindow.io 208
> OSWindow drawBackground OSWindow.io 200
> OSWindow display Application.io 106
> Application display [GLUT] 0
> Application run main.io 28
> CLI doFile Z_CLI.io 140
> CLI run IoState_runCLI() 1
>
> (running /usr/local/lib/io/addons/Flux/samples/FileBrowser/main.io)
>
> Do you have an idea why I don't have glClearColor on my system?
> Thanks,
>
> Mildred
>
>
>
>