[Gmsh] glut missing at link
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Tue Oct 30 20:26:52 CET 2007
Jonathan Lambrechts wrote:
> 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
It seems like Debian (and thus Ubuntu) changed the way the fltk-config
script works. Sigh...
I've added a check in our configure script to handle this bug.
Thanks for the report,
Christophe
>
> 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
>>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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