This looks like a bug in gl-world.<br><br>gl-world fails to specify the style 'gl to the canvas% constructor.<br><br>See: <a href="http://docs.racket-lang.org/gui/canvas_.html?q=canvas">http://docs.racket-lang.org/gui/canvas_.html?q=canvas</a><br>
<br>I guess Jay is using a platform on which it happens to work without style 'gl.<br><br>Stephan<br><br><div class="gmail_quote">2012/5/18 JP Verkamp <span dir="ltr"><<a href="mailto:racket@jverkamp.com" target="_blank">racket@jverkamp.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Interesting. Taking away the gl-world code and using the code to<br>
create a canvas% with a gl-context from here (<br>
<a href="http://lists.racket-lang.org/users/archive/attachments/20100118/4272caa0/attachment-0001.ksh" target="_blank">http://lists.racket-lang.org/users/archive/attachments/20100118/4272caa0/attachment-0001.ksh</a><br>
) works just fine (albeit slowly, I need to get the OpenGL drivers<br>
working correctly again).<br>
<br>
Perhaps I'm using gl-world incorrectly. It would still be helpful if<br>
there was a way to get a better error message to tell me what was<br>
going wrong though.<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, May 17, 2012 at 6:09 PM, JP Verkamp <<a href="mailto:racket@jverkamp.com">racket@jverkamp.com</a>> wrote:<br>
> For whatever reason I don't have that directory. I ran this version instead:<br>
> <a href="https://raw.github.com/plt/racket/master/collects/sgl/examples/gears.rkt" target="_blank">https://raw.github.com/plt/racket/master/collects/sgl/examples/gears.rkt</a><br>
><br>
> That worked fine, rotating the gears as expected and printing this to<br>
> the console:<br>
> RENDERER: Mesa DRI Intel(R) 945GM x86/MMX/SSE2<br>
> VERSION: 1.4 Mesa 8.0.2<br>
> VENDOR: Tungsten Graphics, Inc<br>
> EXTENSIONS: ...<br>
><br>
> If it helps, I'm using Ubuntu 12.04 which either didn't have Racket or<br>
> at least not a newer version, so I'm installing from this PPA:<br>
> deb <a href="http://ppa.launchpad.net/plt/racket/ubuntu" target="_blank">http://ppa.launchpad.net/plt/racket/ubuntu</a> precise main<br>
><br>
> On Thu, May 17, 2012 at 4:58 PM, Michael Wilber <<a href="mailto:mwilber@uccs.edu">mwilber@uccs.edu</a>> wrote:<br>
>> Can you run other OpenGL Racket programs? For example, try the gears example:<br>
>><br>
>> racket /usr/lib/racket/collects/sgl/examples/gears.rkt<br>
>><br>
>> On Thu, 17 May 2012 17:49:21 -0400, JP Verkamp <<a href="mailto:racket@jverkamp.com">racket@jverkamp.com</a>> wrote:<br>
>>> Hopefully someone out there can help me out, I've run into a a bit of<br>
>>> a problem with the gl2d and gl-world packages from PLaneT. I've got a<br>
>>> relatively small sample and whenever I run the code (even after<br>
>>> commenting out all of the OpenGL specific code other than the big-bang<br>
>>> call), I always get this error:<br>
>>><br>
>>> send: target is not an object: #f for method: call-as-current<br>
>>><br>
>>> The one relevant response I've found thus far on the subject is from<br>
>>> Matthew Flatt from last December on the mailing list (<br>
>>> <a href="http://lists.racket-lang.org/users/archive/2011-October/048813.html" target="_blank">http://lists.racket-lang.org/users/archive/2011-October/048813.html</a> )<br>
>>> which says to check "Do you have "libgdkglext-x11-1.0" and<br>
>>> "libgtkglext-x11-1.0" installed?", which I do. There's a .so for each<br>
>>> in my /usr/lib directory. After that though, I'm not sure where to go.<br>
>>> Is there perhaps some way to check which libraries that Racket is<br>
>>> trying to load / what else might be causing the error?<br>
>>><br>
>>> Thanks,<br>
>>> JP<br>
>>> ____________________<br>
>>> Racket Users list:<br>
>>> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br>