Javier: I cannot help you, but I can advice you to ask this VM related questions not only in Pharo but also in the VM mailing list:<br><br><a href="mailto:vm-dev@lists.squeakfoundation.org">vm-dev@lists.squeakfoundation.org</a><br>
<br>as you will probably receive more help :)<br><br>Cheers<br><br>Mariano<br><br><div class="gmail_quote">2010/2/23 Javier Pimás <span dir="ltr"><<a href="mailto:elpochodelagente@gmail.com">elpochodelagente@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Made some tests to find out what is happening, and found the problem. I can confirm that this happens both in squeak and pharo. The thing is that B3DAccelerator doesn't work as internal plugin in unix. Making it external worked fine.<br>
<br>This lead me to some questions:<br><br>- To make it work as internal the only thing needed is to add that -lGL to the linking process. Does anybody know how to modify the cmake files to do that? Maybe it's just a thing of adding a line to unix/plugins/B3DAcceleratorPlugin/config.cmake or unix/vm/config.cmake??<br>
<br>- Does anybody build the VM in unix? using cmake?<br><br>Regards,<br><font color="#888888"> Javier.</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Mon, Feb 22, 2010 at 1:07 PM, Javier Pimás <span dir="ltr"><<a href="mailto:elpochodelagente@gmail.com" target="_blank">elpochodelagente@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm cross-posting to vm-dev because I get the same errors with Squeak 3.10.2.7179 image. I have<br><br>GL_VERSION = 3.2.0 NVIDIA 190.53 <br><br>After navigating trough the makefiles, I found I was right, it's not linking to opengl. The linking command was autogenerated and sitting in blddir/CMakeFiles/squeakvm.dir/link.txt. Adding -lGL to it solved that problem. Does anybody know what caused the missing "-lGL" and how to solve it?<br>
<br>Now I can get back to trying to compile alien!<br><br>Regards,<br> Javier.<br><br><br><br>But I don't think it's a version problem, these undefined functions are there since OpenGL 1. the <br><div><div>
</div><div><br><div class="gmail_quote">
On Sun, Feb 21, 2010 at 4:27 PM, Martin McClure <span dir="ltr"><<a href="mailto:martin@hand2mouse.com" target="_blank">martin@hand2mouse.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>Javier Pimás wrote:<br>
><br>
> Linking C executable squeakvm<br>
><br>
><br>
> B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In<br>
> function<br>
> `glRenderVertexBuffer':<br>
><br>
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846:<br>
> undefined reference to<br>
> `glColorMaterial'<br>
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847:<br>
> undefined reference to<br>
> `glGetError'<br>
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848:<br>
> undefined reference to<br>
> `glEnable'<br>
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849:<br>
> undefined reference to `glGetError'<br>
><br>
> ...<br>
><br>
> /home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159:<br>
> undefined reference to `glLightModelfv'<br>
> /home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160:<br>
> undefined reference to `glGetError'<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [squeakvm] Error 1<br>
> make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
><br>
> Maybe it should be linking to opengl lib but it isn't, what do you think?<br>
<br>
</div></div>What version of OpenGL do you have installed on your machine? I haven't<br>
looked at the details, but I believe that the interface changed quite a<br>
lot between OpenGL 1.x and OpenGL 2.x, so if B3D is expecting 2.x and<br>
you have 1.x, or the other way around, you might get problems like this.<br>
<br>
Regards,<br>
<font color="#888888"><br>
-Martin<br>
</font><div><div></div><div><br>
_______________________________________________<br>
Pharo-project mailing list<br>
<a href="mailto:Pharo-project@lists.gforge.inria.fr" target="_blank">Pharo-project@lists.gforge.inria.fr</a><br>
<a href="http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project" target="_blank">http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div>-- <br>Javier Pimás<br>Ciudad de Buenos Aires<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Javier Pimás<br>Ciudad de Buenos Aires<br>
</div></div><br>_______________________________________________<br>
Pharo-project mailing list<br>
<a href="mailto:Pharo-project@lists.gforge.inria.fr">Pharo-project@lists.gforge.inria.fr</a><br>
<a href="http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project" target="_blank">http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project</a><br></blockquote></div><br>