On Sat, Oct 27, 2018 at 4:42 PM tim Rowledge <tim@rowledge.org> wrote:
Trying this out on a Raspberry Pi (obviously).
First major problem is that

OGLUnix>>openGLLibraryName
        ^Smalltalk osVersion = 'linux'
                ifTrue: ['libGL.so.1']
                ifFalse: ['GL']
has a #'' (apparently a ByteSymbol with just char value 0 in it) at the end of the method ; which of course a BlockClosure does not understand.

After 'fixing' that it goes on a little until we get to OpenGL>>#glMatrixMode:
glMatrixMode: mode
        "This method was automatically generated."
        "void glMatrixMode(GLenum mode);"
        <apicall: void 'glMatrixMode' (ulong) module: '#openGLLibraryName'>
        ^self externalCallFailed

The" module: '#openGLLibraryName'>" looks a bit odd to me... shouldn't that have been recompiled to use the real library name?

Yes, but it doesn't change the source code. Follow the senders of openGLLibraryName to see the magic.

- Bert -