[Gmsh] glut missing at link
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Sun Oct 14 12:03:25 CEST 2007
Jonathan Lambrechts wrote:
> Hi,
> I got a lot of missing references when compiling with the Makefile. If I
> link manually with -lglut everything goes fine.
Hello Jonathan - GLUT should not be required (the missing symbols come
from GLU, not GLUT).
Can you send the output from configure + your "variables" file? FLTK
should link with GLU automatically.
>
> Jonathan
>
> g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshParser -lGmshGraphics
> -lGmshMesh -lGmshGeo -lGmshPlugin -lGmshPost -lGmshCommon -lGmshDataStr
> -lGmshNumeric -lGmshParallel -lfltk_images -lfltk_gl -lfltk -ljpeg
> -lpng -lGmshTriangle -lGmshANN -lGmshNetgen -lGmshTetgen -lGmshMathEval
> -lgsl -lgslcblas -lz -lm lib/libGmshGraphics.a(Draw.o): In function
> `World2Viewport(double*,
> double*)': /media/sda6/home/jon/code/gmsh/Graphics/Draw.cpp:402:
> undefined reference to `gluProject' lib/libGmshGraphics.a(Draw.o): In
> function `Viewport2World(double*,
> double*)': /media/sda6/home/jon/code/gmsh/Graphics/Draw.cpp:392:
> undefined reference to `gluUnProject' lib/libGmshGraphics.a(Draw.o): In
> function `Unproject(double, double, double*,
> double*)': /media/sda6/home/jon/code/gmsh/Graphics/Draw.cpp:368:
> undefined reference to
> `gluUnProject' /media/sda6/home/jon/code/gmsh/Graphics/Draw.cpp:370:
> undefined reference to `gluUnProject' lib/libGmshGraphics.a(Draw.o): In
> function `InitProjection(int, int, int,
> int)': /media/sda6/home/jon/code/gmsh/Graphics/Draw.cpp:167: undefined
> reference to `gluPickMatrix' lib/libGmshGraphics.a(Entity.o): In
> function `Draw_3DArrow(double, double, double, double, double, double,
> double, double, double, double,
> int)': /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:368:
> undefined reference to
> `gluDisk' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:370:
> undefined reference to
> `gluDisk' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:373:
> undefined reference to
> `gluCylinder' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:374:
> undefined reference to
> `gluDisk' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:346:
> undefined reference to
> `gluNewQuadric' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:366:
> undefined reference to `gluCylinder' lib/libGmshGraphics.a(Entity.o):
> In function `Draw_Cylinder(double, double*, double*, double*,
> int)': /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:140:
> undefined reference to
> `gluCylinder' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:117:
> undefined reference to `gluNewQuadric' lib/libGmshGraphics.a(Entity.o):
> In function `Draw_TapCylinder(double, double, double, double, double,
> double*, double*, double*,
> int)': /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:102:
> undefined reference to
> `gluCylinder' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:78:
> undefined reference to `gluNewQuadric' lib/libGmshGraphics.a(Entity.o):
> In function `Draw_Sphere(double, double, double, double,
> int)': /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:51: undefined
> reference to
> `gluNewQuadric' /media/sda6/home/jon/code/gmsh/Graphics/Entity.cpp:54:
> undefined reference to `gluSphere' lib/libGmshPlugin.a(CutSphere.o): In
> function
> `GMSH_CutSpherePlugin::draw()': /media/sda6/home/jon/code/gmsh/Plugin/CutSphere.cpp:64:
> undefined reference to
> `gluNewQuadric' /media/sda6/home/jon/code/gmsh/Plugin/CutSphere.cpp:75:
> undefined reference to `gluSphere' collect2: ld a retourné 1 code
> d'état d'exécution
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine