<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Compiling Gmsh with opencascade sec:u</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi there,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've just started to use gmsh as my meshing tool for openfoam CFD.  Currently I'm trying to install gmsh on my 32bit intel Suse10.1 machine.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I followed the readme for occ and was successful with the installation of opencascade.  However I'm currently trying to compile gmsh with opencascade and I've hit a wall.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I configure opencascade using the following</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">./configure --enable-occ --with-occ-prefix=/usr/local/OpenCASCADE6.2.0/ (since OCC is located in this dir).</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">When I try to "make" gmsh I get the following error;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"></FONT> <FONT SIZE=2 FACE="Courier New">make[1]: Leaving directory `/usr/local/gmsh-2.1.1/contrib/ANN'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: Entering directory `/usr/local/gmsh-2.1.1/contrib/Netgen'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: `../../lib/libGmshNetgen.a' is up to date.</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: Leaving directory `/usr/local/gmsh-2.1.1/contrib/Netgen'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: Entering directory `/usr/local/gmsh-2.1.1/contrib/MathEval'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: `../../lib/libGmshMathEval.a' is up to date.</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make[1]: Leaving directory `/usr/local/gmsh-2.1.1/contrib/MathEval'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">g++ -g -O2 -o bin/gmsh -Llib -lGmshFltk -lGmshParser -lGmshGraphics -lGmshPlugin -lGmshMesh -lGmshGeo -lGmshPost </FONT>

<BR><FONT SIZE=2 FACE="Courier New">-lGmshCommon -lGmshDataStr -lGmshNumeric -lGmshParallel -lGmshNativeFileChooser -L/usr/local/lib -L/usr/X11R6/lib </FONT>

<BR><FONT SIZE=2 FACE="Courier New">-lfltk_images -lpng -lz -lfltk_jpeg -lfltk_gl -lGLU -lGL -lfltk -lm -lXext -lX11 -lpng -lGmshANN -lGmshNetgen -lGmshMathEval </FONT></P>

<P><FONT SIZE=2 FACE="Courier New">-lgsl -lgslcblas -L/usr/local/OpenCASCADE6.2.0//lib -lTKSTEP -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKIGES -lTKXSBase -lTKOffset</FONT></P>

<P><FONT SIZE=2 FACE="Courier New"> -lTKFeat -lTKFillet -lTKBool -lTKShHealing -lTKMesh -lTKHLR -lTKBO -lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep -lTKGeomBase -lTKG3d </FONT></P>

<P><FONT SIZE=2 FACE="Courier New">-lTKG2d -lTKAdvTools -lTKMath -lTKernel -lhdf5 -lz -lm</FONT>

<BR><FONT SIZE=2 FACE="Courier New">/usr/local/lib/libTKernel.so: undefined reference to `pthread_create'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">/usr/local/lib/libTKernel.so: undefined reference to `pthread_detach'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">/usr/local/lib/libTKernel.so: undefined reference to `pthread_mutex_trylock'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">/usr/local/lib/libTKernel.so: undefined reference to `pthread_join'</FONT>

<BR><FONT SIZE=2 FACE="Courier New">collect2: ld returned 1 exit status</FONT>

<BR><FONT SIZE=2 FACE="Courier New">make: *** [link] Error 1</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've made sure the OCC libs and inc dirs are accessible using symbolic links in OpenCASCADE6.2.0 dir following the thread</FONT> <A HREF="http://www.geuz.org/pipermail/gmsh/2007/002498.html"><U></U><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.geuz.org/pipermail/gmsh/2007/002498.html</FONT></U></A><FONT FACE="Arial"> </FONT></P>

<P><FONT SIZE=2 FACE="Arial">I'm not sure what to make of this error so if anyone could help I would really appreciate it. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm trying to compile gmsh-2.1.1 with OpenCascade 6.2.0 using gcc4.1.2.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance and I can't wait try the mesher.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Simon.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">P.S In the spirit of opensource, when I successfully install gmsh I'll happily share my installation process.  </FONT>
</P>


<p><span style="font-family:'Arial';font-size:8pt;"><b>IMPORTANT:</b></span><span style="font-family:'Arial';font-size:8pt;"> This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"> </span></p>
<p><span style="font-family:'Arial';font-size:8pt;"> </span></p></BODY>
</HTML>