<div dir="ltr">Dear John,<div><br></div><div>I am sorry for not replying before I was unable to check the computer where I did this.</div><div><br></div><div>This was the cmake command I managed to use:</div><div><br></div><div>cmake -DCMAKE_INSTALL_PREFIX=your_gmsh_install_dir -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_DYNAMIC=1 -DENABLE_CAIRO=0 -DENABLE_CHACO=0 -DENABLE_FLTK=0 -DENABLE_GETDP=0 -DENABLE_GMM=0 -DENABLE_GRAPHICS=0 -DENABLE_MED=0 -DENABLE_METIS=0 -DENABLE_MPEG_ENCODE=0 -DENABLE_NATIVE_FILE_CHOOSER=0 -DENABLE_NETGEN=0 -DENABLE_PETSC4PY=0 -DENABLE_OCC=0 -DENABLE_ONELAB=0 -DENABLE_ONELAB_METAMODEL=0 -DENABLE_OPTHOM=0 -DENABLE_PETSC=0 -DENABLE_PLUGINS=0 -DENABLE_POST=0 -DENABLE_POPPLER=0 -DENABLE_SALOME=0  your_gmsh_source_dir<br></div><div><br></div><div>I was getting many problems with compiling petsc and metis (although I managed to install it with apt-cyg, so there should be a way of saying to gmsh that petsc already is installed and to use it maybe Christophe can clarify this).<br><br>Then I had to do the following changes in the root CMakeLists.txt file:</div><div><br></div><div>In this part around lines 158/165</div><div><br></div><div><div>if(APPLE)</div><div>  set(GMSH_OS "MacOSX")</div><div>elseif(CYGWIN)</div><div>  set(GMSH_OS "Windows")</div><div>  # add_definitions(-DWIN32) # recent mingw compiler doesn't define it    <--- THIS IS THE COMMENTED LINE</div><div>else(APPLE)</div><div>  set(GMSH_OS "${CMAKE_SYSTEM_NAME}")</div><div>endif(APPLE)</div></div><div><br></div><div>Then around lines 238/244</div><div><br></div><div><div>if(ENABLE_CXX11)</div><div>  # in recent cmake versions we could do e.g. set(CMAKE_CXX_STANDARD 11)</div><div>  check_cxx_compiler_flag("-std=gnu++11" STDCXX11)           <----- THIS WAS CHANGED FROM -std=c++11 to -std=gnu++11</div><div>  if(STDCXX11)</div><div>    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")    

<span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><----- THIS WAS CHANGED FROM -std=c++11 to -std=gnu++11</span>

</div><div>  endif(STDCXX11)</div><div>endif(ENABLE_CXX11)</div></div><div><br></div><div>Then for some strange reason I had to change the variable names in some functions (_C not valid, I do not know why):</div><div><br></div><div>Mesh\meshGFaceLloyd.cpp</div><div><br></div><div>Line 846:</div><div>double _C[2]   -------> double aC[2]</div><div><br></div><div>Line 851:</div><div>circumcenterXY(_x1, _x2, _x3, _C)  -----> 

<span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">circumcenterXY(_x1, _x2, _x3, aC)</span>

</div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">

<div style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br class="gmail-Apple-interchange-newline">Line 852:</div><div style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">C = SPoint2(_C[0], _C[1])   -----> 

<span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">C = SPoint2(aC[0], aC[1]) </span>

</div>

<br></span></div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Common\StringUtils.cpp</span></div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>Around line 72</div><div><br></div><div>This line</div><div><br></div><div>cygwin_conv_to_win32_path(in.c_str(), tmp);<br></div><div><br></div><div>Had to be substituted by:</div><div><br></div><div><div>ssize_t size = cygwin_conv_path( CCP_POSIX_TO_WIN_A, in.c_str(), NULL, 0);</div><div>cygwin_conv_path( CCP_POSIX_TO_WIN_A, in.c_str(), tmp, size);</div></div><div><br></div><div>The reason being that 

<span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">cygwin_conv_to_win32_path was deprecated in the latest version of Cygwin... I found the solution somewhere online, I am not an expert in Cygwin so do not know if there is a better alternative.</span></div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I think this is it. Let me know if this works. If not just send the error log.</span></div><div><span style="color:rgb(34,34,34);font-family:sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>-artur palha</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 30, 2018 at 7:37 PM John Staples <<a href="mailto:john.f.staples@gmail.com">john.f.staples@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Greetings,</div><div><br></div><div>I will try to replicate the messages this evening and provide description tomorrow.</div><div><br></div><div>Thank you.</div><div><br></div><div>John </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 30, 2018 at 2:38 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi John,<br>
<br>
We currently use Mingw GCC 5.4.0. What kind of errors do you get?<br>
<br>
Christophe<br>
<br>
> On 30 Apr 2018, at 05:21, John Staples <<a href="mailto:john.f.staples@gmail.com" target="_blank">john.f.staples@gmail.com</a>> wrote:<br>
> <br>
> Greetings,<br>
> I remember seeing that the MINGW GCC-4.5.3 compiler in CYGWIN shell  was used to compile GMSH for windows.  I'm experiencing  numerous warnings and now errors trying to compile with the latest version of GCC avail with the CYGWIN installation.  Just was wondering if I'm using too recent a version?<br>
> <br>
> Regards,<br>
> John<br>
> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
</blockquote></div><br></div>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div>