<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Bert,<br></div><div><br></div><div>The actual error is "externalCallFailed" output.<br></div><div><br></div><div>I will do the FFI stuff tomorrow.<br></div><div><br></div><div>Much appreciated.<br></div><div><br></div><div>tty.</div><div><br></div><div><br></div><div><br></div><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Tue, 24 Mar 2020 18:20:46 -0400 <b>Bert Freudenberg <bert@freudenbergs.de></b> wrote ----<br></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div><div dir="ltr"><div style="font-family: arial, helvetica, sans-serif;font-size: small;color: rgb(0,0,0);" class="x_2071329682gmail_default">What's the actual error in 32 bits?<br></div><div style="font-family: arial, helvetica, sans-serif;font-size: small;color: rgb(0,0,0);" class="x_2071329682gmail_default"><br></div><div style="font-family: arial, helvetica, sans-serif;font-size: small;color: rgb(0,0,0);" class="x_2071329682gmail_default">Also, make sure that FFI works at all - I think there are test examples in the FFI package.<br></div><div style="font-family: arial, helvetica, sans-serif;font-size: small;color: rgb(0,0,0);" class="x_2071329682gmail_default"><br></div><div style="font-family: arial, helvetica, sans-serif;font-size: small;color: rgb(0,0,0);" class="x_2071329682gmail_default">- Bert -<br></div><div><br></div><div class="x_2071329682gmail_quote"><div class="x_2071329682gmail_attr" dir="ltr">On Tue, Mar 24, 2020 at 11:59 AM gettimothy <<a target="_blank" href="mailto:gettimothy@zoho.com">gettimothy@zoho.com</a>> wrote:<br></div><div><br></div></div></div></div><blockquote style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;" class="x_2071329682gmail_quote"><div><u></u><br></div><div><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><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><div>Same error as on the 64 bit box:<br></div><div><br></div><div><br></div><blockquote style="border: 1.0px solid rgb(204,204,204);padding: 7.0px;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><div><br></div><div>cheers,<br></div><div><br></div><div>tty<br></div><div><br></div><div>---- On Wed, 11 Mar 2020 18:57:39 -0400 <b>Bert Freudenberg <<a target="_blank" href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>></b> wrote ----<br></div><div><br></div><blockquote style="border-left: 1.0px solid rgb(204,204,204);padding-left: 6.0px;margin: 0.0px 0.0px 0.0px 5.0px;"><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 target="_blank" href="http://www.squeaksource.com/CroquetGL.html">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 class="font" 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 class="font" 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 class="font" 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><div><br></div><div><div dir="ltr">On Wed, Mar 11, 2020 at 2:54 PM gettimothy via Squeak-dev <<a target="_blank" href="mailto:squeak-dev@lists.squeakfoundation.org">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;"><div><u></u><br></div><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><div><br></div></div><div><br></div></blockquote></blockquote></div><div><br></div></div><div><br></div></div></blockquote></blockquote></div><div><br></div></div><br></body></html>