[Gmsh] Cannot compile with tetgen

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sat Jun 20 18:10:39 CEST 2009


Mike B. wrote:
> Hi All.
> 
> Compilation fails for Gmsh nightly build (gmsh-2.3.1-cvs-20090611) with 
> tetgen enabled.
> 
> I've installed libtet1.4.2 libtet1.4.2-dev tetgen. At first attempt 
> `configure' did not find `tetgen.h' and disabled the `tetgen' option. I 
> solved this by making a softlink from
> /usr/include/tetgen.h to contrib/Tetgen.
> 
> Now configure enables the `tetgen' option but `make' gives the following 
> error (after a while):
> /usr/bin/ar: creating ../../lib/libGmshNetgen.a
> make[1]: *** No rule to make target `behavior.cxx', needed by 
> `behavior.o'.  Stop.
> /usr/bin/ar: creating ../../lib/libGmshMathEval.a
> /usr/bin/ld: cannot find -lGmshTetgen
> collect2: ld returned 1 exit status
> make: *** [link] Error 1
> 
> I am able to compile gmsh fine when the `tetgen' option is disabled. 
> Would appreciate help in solving this issue.

At the moment compiling with tetgen assumes that the tetgen source code
will reside in contrib/Tetgen.

(We don't use an external tetgen lib because the next version of Gmsh
will switch to a modified, subset of tetgen.)

> 
> Thanks,
> Mike.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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