<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Dave,<br><br>Thanks for the prompt reply.<br><br>This hack indeed solved those compilation errors:<br>cd /usr/include/opencascade<br>ln -s /usr/include/opencascade ./inc<br><br>During compilation there are lots of warnings of the form:<br>deprecated conversion from string constant to ‘char*’<br>I eliminated those by adding -Wno-write-strings to the compiler flags in the `variables' file:<br>FLAGS= -Wno-write-strings -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -I/usr/include/opencascade/inc<br><br>You may want to include these two hacks to the Gmsh scripts.<br><br>Gmsh compiles fine but when I try to open an IGES file it gives an error in the `message console' window:<br>Info    : Reading '/home/mike/o.iges'<br>Error   : Gmsh has to be compiled with OpenCascade support to load '/home/mike/o.iges'<br>Info   
 : Read '/home/mike/o.iges'<br><br>Also, the first few lines in the message console are:<br>Info    : -------------------------------------------------------<br>Info    : Gmsh version   : 2.2.3<br>Info    : Build OS       : Linux<br>Info    : Build options  : GSL NETGEN JPEG PNG ZLIB MATHEVAL ANN <br>Info    : Build date     : Tue Jul 15 10:55:18 CEST 2008<br>Info    : Build host     : eta<br>Info    : Packager       : prudhomm<br>Info    : Home directory : /home/mike/<br>Info    : Launch date    : Fri Jun 12 16:05:39 2009<br>Info    : Command line   : gmsh<br>Info    : -------------------------------------------------------<br><br>The `Build options'
 line is much shorter than that reported by .configure:<br>
Gmsh has been configured for Linux with the following options: Fltk TreeBrowser Jpeg Png Ann Gmm Chaco Metis Netgen MathEval Occ Libz Blas Lapack<br><br>Shouldn't the message console show the same build options, or at least OCC as well? why can't it open the IGES file?.<br>
<br>Thanks for your help,<br>Mike.<br><br>--- On <b>Fri, 6/12/09, David Colignon <i><David.Colignon@ulg.ac.be></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: David Colignon <David.Colignon@ulg.ac.be><br>Subject: Re: [Gmsh] Compilation with Opencascade fails (Debian Lenny)<br>To: "Mike B." <mb78aa@yahoo.com><br>Cc: gmsh@geuz.org, "Christophe Geuzaine" <cgeuzaine@ulg.ac.be><br>Date: Friday, June 12, 2009, 4:22 PM<br><br><div class="plainMail">Hi Mike,<br><br>as you can see on the g++ compilation command, the OCC includes are searched in -I/usr/include/opencascade/inc instead of /usr/include/opencascade<br><br>We will have to fix the "./configure" step ...<br><br>As a quick hack , can you add in /usr/include/opencascade a symbolic link from "inc" to "/usr/include/opencascade" ?<br><br>cd /usr/include/opencascade<br>ln -s /usr/include/opencascade
 inc<br><br>You can also edit by hand the "variables" file created by ./configure and modify<br><br># All compiler flags except optimization flags<br>FLAGS= -I/opt -I/opt/include -I/opt/include/FL/images -I/opt/opencascade/inc<br><br><br>Regards,<br><br>Dave<br><br></div></blockquote></td></tr></table><br>