GLUT Fails to build ( LINUX )

Hi when i try too build glut i get this:

gcc -o origami -O2 -fno-strength-reduce -L/usr/X11R6/lib origami.o …/…/lib/glut/libglut.a -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm
origami.o: In function display': origami.o(.text+0x665): undefined reference to glPolygonOffsetEXT’
origami.o(.text+0x6bc): undefined reference to glPolygonOffsetEXT' collect2: ld returned 1 exit status make[2]: *** [origami] Error 1 make[2]: Leaving directory /home/brendan/glut-3.7/progs/examples’
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/brendan/glut-3.7/progs’
gmake: *** [all] Error 2

I’m using NVIDIA’s GL and GLX implementations.
hardk0re# ldd /usr/lib/ => /usr/lib/ (0x40061000) => /lib/ (0x404f3000) => /usr/X11R6/lib/ (0x40515000) => /usr/X11R6/lib/ (0x40522000) => /lib/ (0x405d9000) => /lib/ (0x405dd000)
/lib/ => /lib/ (0x80000000)


This is actually not glut itself but a demo.THe problem is that the code is old from when glPolygonOffset was an extension(gl 1.0?).Try buildng w/o the demos or if you really want them you might want to change glPolygonOffsetEXT to glPolygonOffset inside the code.

thanks mate!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.