I'm cross-posting to vm-dev because I get the same errors with Squeak 3.10.2.7179 image. I have
GL_VERSION =�� 3.2.0 NVIDIA 190.53��������������������������
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?
Now I can get back to trying to compile alien!
Regards,
�������������������� Javier.
But I don't think it's a version problem, these undefined functions are there since OpenGL 1. the
What version of OpenGL do you have installed on your machine? I haven'tJavier Pim��s wrote:
>
> Linking C executable squeakvm
>
>
> B3DAcceleratorPlugin/libB3DAcceleratorPlugin.a(sqOpenGLRenderer.c.o): In
> function
> `glRenderVertexBuffer':
>
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:846:
> undefined reference to
> `glColorMaterial'
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:847:
> undefined reference to
> `glGetError'
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:848:
> undefined reference to
> `glEnable'
> /home/javier/st/squeak-svn/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c:849:
> undefined reference to `glGetError'
>
> ...
>
> /home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:159:
> undefined reference to `glLightModelfv'
> /home/javier/st/squeak-svn/platforms/unix/plugins/B3DAcceleratorPlugin/sqUnixOpenGL.c:160:
> undefined reference to `glGetError'
> collect2: ld returned 1 exit status
> make[2]: *** [squeakvm] Error 1
> make[1]: *** [CMakeFiles/squeakvm.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Maybe it should be linking to opengl lib but it isn't, what do you think?
looked at the details, but I believe that the interface changed quite a
lot between OpenGL 1.x and OpenGL 2.x, so if B3D is expecting 2.x and
you have 1.x, or the other way around, you might get problems like this.
Regards,
-Martin
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project