<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 19 Feb 2018, at 04:20, John Staples <<a href="mailto:john.f.staples@gmail.com" class="">john.f.staples@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><span style="text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline; white-space: pre; float: none; background-color: transparent;" class="">Greetings All,</span></div><div class=""><span style="text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline; white-space: pre; float: none; background-color: transparent;" class=""><br class=""></span></div><div class=""><span style="text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline; white-space: pre; float: none; background-color: transparent;" class="">Thank you for any help with the following:</span></div><div class=""><span style="text-align: left; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Consolas; font-size: 13.33px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline; white-space: pre; float: none; background-color: transparent;" class=""><br class=""></span></div><div class="">On Windows10, I've successfully installed CYGWIN 64bit shell (<a href="https://cygwin.com/install.html" class="">https://cygwin.com/install.html</a>) with FLTK, OPENGL, BLAS, LAPACK, etc..  (everything but OCC for now)</div><div class=""><br class=""></div><div class="">Make doesn't build - aborts with <span style="text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;font-family:arial,sans-serif;font-size:13.33px;font-style:normal;font-variant:normal;font-weight:400;text-decoration:none;word-spacing:0px;display:inline;white-space:normal;float:none;background-color:transparent" class="">errors,  ‘usleep’ was not declared in this scope, etc.</span></div><div class=""><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1198px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal" class=""><div class=""><b class=""><br class=""></b></div><div class="">$ make<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">Scanning dependencies of target gmsh<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">[  0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.o<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">[  0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">In file included from /cygdrive/c/gmsh/Common/onelab.h:40:0,<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                 from /cygdrive/c/gmsh/Common/onelabUtils.h:9,<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                 from /cygdrive/c/gmsh/Common/GmshGlobal.cpp:36:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h: In member function ‘void GmshSocket::_Sleep(int)’:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:150:21: error: ‘usleep’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     usleep(1000 * ms);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                     ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h: In member function ‘int GmshSocket::Select(int, int, int)’:<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:179:5: error: ‘fd_set’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     fd_set rfds;<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     ^~~~~~<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:180:14: error: ‘rfds’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     FD_ZERO(&rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">              ^~~~<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:180:18: error: ‘FD_ZERO’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     FD_ZERO(&rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                  ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:181:20: error: ‘FD_SET’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     FD_SET(s, &rfds);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                    ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">/cygdrive/c/gmsh/Common/GmshSocket.h:184:48: error: ‘select’ was not declared in this scope<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">     return select(s + 1, &rfds, NULL, NULL, &tv);<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">                                                ^<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">make[2]: *** [CMakeFiles/gmsh.dir/build.make:87: CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o] Error 1<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">make[1]: *** [CMakeFiles/Makefile2:420: CMakeFiles/gmsh.dir/all] Error 2<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class="">make: *** [Makefile:161: all] Error 2<br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class=""><br style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class=""></div></div><div style="background:none;font:400 13.33px arial,sans-serif;outline:transparent 0px;border:0px rgb(34,34,34);width:1198px;text-align:left;color:rgb(34,34,34);text-transform:none;text-indent:0px;letter-spacing:normal;overflow:visible;text-decoration:none;word-spacing:0px;white-space:normal;font-size-adjust:none;font-stretch:normal" class=""><font color="#b00000" face="Consolas" style="background:none;font:400 13.33px Consolas;outline:transparent 0px;border:0px rgb(176,0,0);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class=""><br style="background:none;font:400 13.33px Consolas;outline:transparent 0px;border:0px rgb(176,0,0);width:auto;overflow:visible;font-size-adjust:none;font-stretch:normal" class=""></font></div></div><div class=""><b class=""><br class=""></b></div><div class=""><br class=""></div><div class="">Results from  "cmake .." command are good:</div><div class=""><br class=""></div><div class="">$ cmake ..<br class="">-- The CXX compiler identification is GNU 6.4.0<br class="">-- The C compiler identification is GNU 6.4.0<br class="">-- Check for working CXX compiler: /usr/bin/c++.exe<br class="">-- Check for working CXX compiler: /usr/bin/c++.exe -- works<br class=""></div></div></div></blockquote><div><br class=""></div><div>It seems that you are using the cygwin compilers, not the mingw ones. You can specify the compiler with e.g.</div><div><br class=""></div><div>cmake -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe</div><div><br class=""></div><div>Christophe</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">-- Detecting CXX compiler ABI info<br class="">-- Detecting CXX compiler ABI info - done<br class="">-- Detecting CXX compile features<br class="">-- Detecting CXX compile features - done<br class="">-- Check for working C compiler: /usr/bin/cc<br class="">-- Check for working C compiler: /usr/bin/cc -- works<br class="">-- Detecting C compiler ABI info<br class="">-- Detecting C compiler ABI info - done<br class="">-- Detecting C compile features<br class="">-- Detecting C compile features - done<br class="">-- Looking for sys/types.h<br class="">-- Looking for sys/types.h - found<br class="">-- Looking for stdint.h<br class="">-- Looking for stdint.h - found<br class="">-- Looking for stddef.h<br class="">-- Looking for stddef.h - found<br class="">-- Check size of void*<br class="">-- Check size of void* - done<br class="">-- Found 64Bit<br class="">-- Performing Test STDCXX11<br class="">-- Performing Test STDCXX11 - Success<br class="">-- The Fortran compiler identification is GNU 6.4.0<br class="">-- Check for working Fortran compiler: /usr/bin/gfortran.exe<br class="">-- Check for working Fortran compiler: /usr/bin/gfortran.exe  -- works<br class="">-- Detecting Fortran compiler ABI info<br class="">-- Detecting Fortran compiler ABI info - done<br class="">-- Checking whether /usr/bin/gfortran.exe supports Fortran 90<br class="">-- Checking whether /usr/bin/gfortran.exe supports Fortran 90 -- yes<br class="">-- Looking for Fortran sgemm<br class="">-- Looking for Fortran sgemm - found<br class="">-- Looking for pthread.h<br class="">-- Looking for pthread.h - found<br class="">-- Looking for pthread_create<br class="">-- Looking for pthread_create - found<br class="">-- Found Threads: TRUE<br class="">-- A library with BLAS API found.<br class="">-- Found Blas<br class="">-- A library with BLAS API found.<br class="">-- Looking for Fortran cheev<br class="">-- Looking for Fortran cheev - found<br class="">-- A library with LAPACK API found.<br class="">-- Found Lapack<br class="">-- Found Mesh<br class="">-- Found Solver<br class="">-- Found Post<br class="">-- Found Plugins<br class="">-- Found Parser<br class="">-- Found Fltk<br class="">-- Using fltk-config script for Fltk 1.3<br class="">-- Found NativeFileChooser<br class="">-- Found ONELAB<br class="">-- Found ONELABMetamodel<br class="">-- Found JPEG: /usr/lib/libjpeg.dll.a<br class="">-- Found Jpeg<br class="">-- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")<br class="">-- Found Zlib<br class="">-- Found PNG: /usr/lib/libpng.dll.a (found version "1.6.34")<br class="">-- Found Png<br class="">-- Found Mpeg<br class="">-- Found OpenGL: /usr/lib/libGL.dll.a<br class="">-- Found OpenGL<br class="">-- System ANN not found: using contrib/ANN instead<br class="">-- Found Ann<br class="">-- Found Bfgs<br class="">-- Found DIntegration<br class="">-- Found OptHom<br class="">-- Found Kbipack<br class="">-- Found GMP<br class="">-- Found MathEx<br class="">-- System METIS not found: using contrib/metis instead<br class="">-- Found Metis<br class="">-- Found TetGen/BR<br class="">-- System voro++ not found: using contrib/voro++ instead<br class="">-- Found Voro++<br class="">-- Found Blossom<br class="">-- Found Netgen<br class="">-- Found Bamg<br class="">-- System MMG3D not found: using contrib/mmg3d instead<br class="">-- Found Mmg3d<br class="">-- HDF5: Using hdf5 compiler wrapper to determine C configuration<br class="">-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration<br class="">-- Found HDF5: hdf5_cpp;hdf5;z;dl;m;/usr/lib/libhdf5_cpp.dll.a;HDF5_hdf5_fortran_LIBRARY-NOTFOUND;/usr/lib/libhdf5.dll.a (found version "1.8.20")<br class="">-- System GMM not found: using contrib/gmm instead<br class="">-- Found Gmm<br class="">-- Looking for vsnprintf<br class="">-- Looking for vsnprintf - found<br class="">-- Looking for sys/socket.h<br class="">-- Looking for sys/socket.h - found<br class="">-- Check size of socklen_t<br class="">-- Check size of socklen_t - done<br class="">-- Check size of intptr_t<br class="">-- Check size of intptr_t - done<br class="">-- Looking for dlfcn.h<br class="">-- Looking for dlfcn.h - found<br class="">-- Found Dlopen<br class="">-- Looking for linux/joystick.h<br class="">-- Looking for linux/joystick.h - not found<br class="">-- Performing Test WALL<br class="">-- Performing Test WALL - Success<br class="">-- Performing Test WCAST<br class="">-- Performing Test WCAST - Failed<br class="">-- Performing Test WDEPREC<br class="">-- Performing Test WDEPREC - Success<br class="">-- Performing Test WIND<br class="">-- Performing Test WIND - Success<br class="">-- Performing Test NOWARN<br class="">-- Performing Test NOWARN - Success<br class="">-- Performing Test NOOPT<br class="">-- Performing Test NOOPT - Success<br class="">--<br class="">-- Gmsh 3.0.7 has been configured for Windows64<br class="">--<br class="">--  * Build options: 64Bit Ann Bamg Bfgs Blas Blossom DIntegration Dlopen Fltk GMP Gmm Jpeg Kbipack Lapack MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png Post Solver TetGen/BR Voro++ Zlib<br class="">--  * Build type: RelWithDebInfo<br class="">--  * C compiler: /usr/bin/cc<br class="">--  * C++ compiler: /usr/bin/c++.exe<br class="">--  * Install prefix: /usr/local<br class="">--<br class="">-- Configuring done<br class="">-- Generating done<br class="">-- Build files have been written to: /cygdrive/c/gmsh/build</div><div class=""><br class=""></div><div class="">Any help would be much appreciated.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Joh<br class=""></div><div class=""><font color="#007600" face="Consolas" class=""><font color="#004000" face="Arial" class=""></font><br class=""></font></div></div>
_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>