<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">What's the actual error in 32 bits?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">Also, make sure that FFI works at all - I think there are test examples in the FFI package.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000">- Bert -</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 24, 2020 at 11:59 AM gettimothy <<a href="mailto:gettimothy@zoho.com">gettimothy@zoho.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div>Hi Bert,<br></div><div><br></div><div>I got the latest 5.3 32 bit installed on the old laptop.<br></div><div><br></div><div>on linux, glxgears works.<br></div><div><br></div><div>OpenGL example does not work.<br></div><div><br></div>Same error as on the 64 bit box:<br><br><div><br></div><blockquote style="border:1px solid rgb(204,204,204);padding:7px;background-color:rgb(245,245,245)"><div><div>glPixelStorei: pname with: param<br></div><div>"This method was automatically generated."<br></div><div>"void glPixelStorei(GLenum pname, GLint param);"<br></div><div><apicall: void 'glPixelStorei' (ulong long) module: '#openGLLibraryName'><br></div><div>^self externalCallFailed<br></div></div></blockquote><div><br>cheers,<br><br>tty<br><br><div id="m_-5913568260361506586Zm-_Id_-Sgn1">---- On Wed, 11 Mar 2020 18:57:39 -0400 <b>Bert Freudenberg <<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></b> wrote ----<br></div><br><blockquote style="border-left:1px solid rgb(204,204,204);padding-left:6px;margin:0px 0px 0px 5px"><div><div dir="ltr"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">I'd suggest to get OpenGL working outside of Croquet first:<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><a href="http://www.squeaksource.com/CroquetGL.html" target="_blank">http://www.squeaksource.com/CroquetGL.html</a><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Step 1: Verify this works in 32 bits. (assuming you are doing this on Linux, you can run 32 bit Squeak side-by-side with the 64 bit one)<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Step 2: Make it work in 64 bits.<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">The second step requires that you understand how FFI works, and how it handles e.g. pointers and integer sizes.<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">I am assuming we do have a working 64 bit FFI, at least for x86_64 machines.<br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">E.g. the OGLUnix>><span style="font-family:Arial,Helvetica,sans-serif;text-align:justify">glExtGetProcAddress: method returns a pointer. On a 32 bit system, that fits into a 'ulong' which is 32 bits. On a 64 bit system, a pointer is 64 bits wide so it would not fit into a 32 bit word. Now I don't know how many bits 'ulong' has in our 64 bit FFI, but that declaration may have to change. Etc. pp.</span><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;text-align:justify"><br></span></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><span style="font-family:Arial,Helvetica,sans-serif;text-align:justify">If you have questions about FFI then those are best directed at the vm-dev list since it is dealing with VM-level interfaces. CC'ing, please follow up there.</span><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">- Bert -<br></div></div><br><div><div dir="ltr">On Wed, Mar 11, 2020 at 2:54 PM gettimothy via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org" target="_blank">squeak-dev@lists.squeakfoundation.org</a>> wrote:<br></div><div><br></div></div></div></div><blockquote style="margin:0.0px 0.0px 0.0px 0.8ex;border-left:1.0px solid rgb(204,204,204);padding-left:1.0ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10.0pt"><div>Okey dokey,<br></div><div><br></div><div>Poking along, there is a stray glyph in OGLUnix openGLLibraryName after<br></div><blockquote style="border:1.0px solid rgb(204,204,204);padding:7.0px;background-color:rgb(245,245,245)"><div><div>openGLLibraryName<br></div><div>^Smalltalk osVersion = 'linux'<br></div><div>ifTrue: ['libGL.so.1']<br></div><div>ifFalse: ['GL']<br></div></div></blockquote><div>I removed it in my install and got past that error.<br></div><div><br></div><div>Working exclusively with Croquet(Master)...<br></div><div><br></div><div><br></div><div><br></div><div>My next error is in OGLUnixX11LE(OpenGL)>>glMatrixMode: <br></div><blockquote style="border:1.0px solid rgb(204,204,204);padding:7.0px;background-color:rgb(245,245,245)"><div><div>glMatrixMode: mode<br></div><div>"This method was automatically generated."<br></div><div>"void glMatrixMode(GLenum mode);"<br></div><div><apicall: void 'glMatrixMode' (ulong) module: '#openGLLibraryName'><br></div><div>^self externalCallFailed<br></div></div></blockquote><div>The <apicall:...> fails<br></div><div><br></div><div>How to think about this?<br></div><div><br></div><div>Is Croquet behind OpenGL latest?<br></div><div>Would teaching myself OpenGL programming be of use to the Croquet project?<br></div><div><br></div><div>cheers,<br></div><div><br></div><div>tty<br></div></div><br></div><br></blockquote></blockquote></div><div><br></div></div><br></div></blockquote></div></div>