[Gmsh] glut missing at link

Jonathan Lambrechts jonathan.lambrechts at uclouvain.be
Mon Oct 15 09:34:13 CEST 2007


Hi,
You are right -lGLU  is enough.
However the fltk version installed on my computer (libfltk 1.1.7 ubuntu
gutsy package) doesn't seems to use GLU.
I've attached the following files :
./configure > log_configure (+ config.log and variables)
ldd /usr/lib/libflt*.so > ldd_fltk

Jonathan

 Le Sun, 14 Oct 2007 12:03:25 +0200,
Christophe Geuzaine <cgeuzaine at ulg.ac.be> a écrit :

> 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
> 
> 
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log_configure
Type: application/octet-stream
Size: 4504 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071015/58e04921/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 24908 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071015/58e04921/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: variables
Type: application/octet-stream
Size: 2509 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071015/58e04921/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldd_fltk
Type: application/octet-stream
Size: 4584 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20071015/58e04921/attachment-0002.obj>