<html>
<body>
Hi Nicolas, <br><br>
I just made the modification in order to build with MSVC 2005. It should
be in the nightly version of tonight ? tomorrow morning.<br>
However, you can replace the fmax with std::max, fminf with std::min and
add include <time.h> in the beginning of the file
SOrientedBoundingBox.cpp.<br><br>
You should also have some problems in OCC_Connect.{h, cpp},
GeomMeshMatcher, <br>
replace <br><br>
<br>
<b>struct LessThanIntegerSet {<br>
<x-tab> </x-tab>bool
operator()(std::set<int> const &a, std::set<int> const
&b) ;<br>
};<br><br>
</b>by this<br><br>
<b>struct LessThanIntegerSet {<br>
<x-tab> </x-tab>bool
operator()(std::set<int> const &a, std::set<int> const
&b) <font color="#FF0000">const</font>;<br>
};<br><br>
<br><br>
</b>and<br>
<b>bool OCC_Connect::LessThanIntegerSet::operator()(std::set<int>
const &a,<br>
std::set<int> const &b) <br>
{<br>
std::set<int>::iterator pa=a.begin(),
pb=b.begin();<br>
for(; pa!=a.end() && pb!=b.end(); pa++, pb++ )
{<br>
<x-tab> </x-tab>
if(*pa<*pb)<br>
<x-tab> </x-tab>
return 1;<br>
<x-tab> </x-tab>
if(*pb<*pa)<br>
<x-tab> </x-tab>
return 0;<br>
}<br>
if(pb!=b.end())<br>
<x-tab> </x-tab>return
1;<br>
return 0;<br>
}<br><br>
</b>by<br><br>
<b>bool OCC_Connect::LessThanIntegerSet::operator()(std::set<int>
const &a,<br>
std::set<int> const &b)
<font color="#FF0000">const<br>
</font>{<br>
std::set<int>::<font color="#FF0000">const_iterator
</font>pa=a.begin(), pb=b.begin();<br>
for(; pa!=a.end() && pb!=b.end(); pa++, pb++ )
{<br>
<x-tab> </x-tab>
if(*pa<*pb)<br>
<x-tab> </x-tab>
return 1;<br>
<x-tab> </x-tab>
if(*pb<*pa)<br>
<x-tab> </x-tab>
return 0;<br>
}<br>
if(pb!=b.end())<br>
<x-tab> </x-tab>return
1;<br>
return 0;<br>
}<br><br>
</b>and SaveBRep should return 1.<br><br>
<br>
Cheers<br>
Laurent<br><br>
<br>
Le 16:51 18/06/2009,Nicolas.Saugnier@loria.fr écrit:<br>
<blockquote type=cite class=cite cite="">Hi!<br><br>
I've been trying to build Gmsh on Windows with OpenCASCADE support,
<br>
and I'm runnig into a few problems:<br><br>
Here is the configuration I used :<br><br>
ENABLE_GUI=0<br>
ENABLE_BLAS_LAPACK=0<br>
ENABLE_PARSER=1<br>
ENABLE_POSTPRO=1<br>
ENABLE_TETGEN=0<br>
ENABLE_NETGEN=0<br>
ENABLE_METIS=0<br>
ENABLE_OCC=1<br>
ENABLE_MED=0<br><br>
<br>
I used Visual C++ express 2008 on Windows XP Pro 64bits, with a
<br>
default install of OpenCascade 6.3.0 and the nightly package
sources <br>
20090615.<br><br>
- in the topmost Makefile:<br>
GMSH_EXTRA_VERSION = "-cvs-20090615"<br>
The double quotes seams to be the origin of an error
when <br>
generating GmshVersion.h, as the resulting version number was :<br>
"2.3.1"-cvs-20090615""<br>
Removing them in the Makefile allowed me to go further.<br><br>
<br>
- in variables.msvc, the relative path for OCC libs did not match
the <br>
one of the OCC installation (I used a default OCC installation):<br>
ifeq (${ENABLE_OCC},1)<br>
FLAGS+=/DHAVE_OCC /DHAVE_NO_OCC_CONFIG_H /DWNT
/I${OCC_PREFIX}/inc<br>
GMSH_LIBS+=${OCC_PREFIX}/win32/bin/*.lib<br>
endif<br><br>
I modified the corresponding line to:<br>
GMSH_LIBS+=${OCC_PREFIX}/win32/lib/*.lib<br><br>
<br>
- and in the 20090618 version of the nightly sources :<br><br>
gmake.exe[1]: Entering directory
`C:/Gmsh_stuff/gmsh-2.3.1-cvs-20090618/Geo'<br>
cl /EHsc /nologo /GR /MT /O2 /DWIN32 /D_USE_MATH_DEFINES /DNOMINMAX
<br>
/D_CRT_SECURE_NO_DEPRECATE /DHAVE_NO_DLL /DHAVE_ANN
/DHAVE_MATH_EVAL <br>
/I../Common /I../Geo /I../Mesh /I../Post /I../Numeric /I../Parser
<br>
/I../contrib/ANN/include /I../contrib/kbipack /I../contrib/MathEval
<br>
/I../contrib/gmm /I"C:\Program Files (x86)\Microsoft Visual
Studio <br>
9.0\VC\INCLUDE;C:\Program Files\Microsoft
SDKs\Windows\v6.0A\include;" <br>
/c SOrientedBoundingBox.cpp<br>
SOrientedBoundingBox.cpp<br>
SOrientedBoundingBox.cpp(164) : error C3861: 'fmaxf': identifier not
found<br>
SOrientedBoundingBox.cpp(164) : error C3861: 'fmaxf': identifier not
found<br>
SOrientedBoundingBox.cpp(292) : error C3861: 'fmaxf': identifier not
found<br>
SOrientedBoundingBox.cpp(293) : error C3861: 'fminf': identifier not
found<br>
SOrientedBoundingBox.cpp(343) : error C3861: 'time': identifier not
found<br>
SOrientedBoundingBox.cpp(469) : error C3861: 'fminf': identifier not
found<br>
SOrientedBoundingBox.cpp(470) : error C3861: 'fmaxf': identifier not
found<br><br>
<br><br>
In the meantime, I switched to a Linux plateform, where I also had
a <br>
few problems, i'll put it in an other thread.<br>
Hope this can be of use to you.<br><br>
<br>
Best Regards,<br>
Nicolas SAUGNIER<br><br>
_______________________________________________<br>
gmsh mailing list<br>
gmsh@geuz.org<br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" eudora="autourl">
http://www.geuz.org/mailman/listinfo/gmsh</a></blockquote>
<x-sigsep><p></x-sigsep>
<div align="center"><font face="arial" size=2>
__________________________________________________________________________________________________<br>
<br>
</div>
<b>Laurent Van Miegroet</b> <br>
Ingénieur de recherche<br>
LTAS - Service d'Ingénierie des Véhicules Terrestres <br>
Université de Liège <br>
Institut de Mécanique et de Génie Civil, Bât. B52 <br>
Chemin des Chevreuils, 1 <br>
B-4000 Liège, Belgique <br>
Tél : +32.4.366.92.70 <br>
Fax: +32.4.366.91.59 <br>
E-Mail :
<a href="mailto:L.VanMiegroet@ULg.ac.be">L.VanMiegroet@ULg.ac.be</a>
<br>
URL: <a href="http://www.ingveh.ulg.ac.be">www.ingveh.ulg.ac.be</a> <br>
SHELLECO :
<a href="http://www.shelleco.ulg.ac.be/" eudora="autourl">
www.shelleco.ulg.ac.be<br><br>
<br>
</a></font></body>
</html>