[Gmsh] "CMAKE" SUCCEEDS but "MAKE" FAILS for GMSH 3.0.7 (and earlier versions) with MinGW compiler toolchain (gcc 6.4.0) using CYGWIN
John Staples
john.f.staples at gmail.com
Mon Feb 26 19:16:16 CET 2018
Thank you again. I'm having trouble getting FTLK to see the libraries
libpng16-16.dll, libstdc++-6.dll, etc. THese are located in the
/usr/x86_64-w64-
mingw32/sys-root/mingw/bin directory. I tried the LDFLAGS setting, but
without luck. Do you have any suggestion.
Thank you so very much.
John
johnf at INSPI13 /cygdrive/c/fltk
$ ./configure CC=/usr/bin/x86_64-w64-mingw32-gcc.exe
CXX=/usr/bin/x86_64-w64-mingw32-g++.exe LDFLAGS=-L/usr/x86_64-w64-
mingw32/sys-root/mingw/bin
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for gcc... /usr/bin/x86_64-w64-mingw32-gcc.exe
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/x86_64-w64-mingw32-gcc.exe accepts -g... yes
checking for /usr/bin/x86_64-w64-mingw32-gcc.exe option to accept ISO
C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/x86_64-w64-mingw32-g++.exe accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for nroff... /usr/bin/nroff
checking for doxygen... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for windres... /usr/bin/windres
checking how to run the C preprocessor...
/usr/bin/x86_64-w64-mingw32-gcc.exe -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking whether byte ordering is bigendian... no
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking whether we have the POSIX compatible scandir() prototype... no
checking for scandir... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for strings.h... (cached) yes
checking for strcasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for localeconv... yes
checking for library containing pow... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for long long int... yes
checking for library containing dlsym... -ldl
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for jpeg_CreateCompress in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for gzgets in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_read_info in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking for png_get_valid in -lpng... yes
checking for png_set_tRNS_to_alpha in -lpng... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking if GCC supports -fno-exceptions... yes
checking if GCC supports -fno-strict-aliasing... yes
checking if ld supports -no-undefined... yes
checking if ld supports -Bsymbolic-functions... yes
checking if toolchain supports sections... yes
Configuration Summary
-------------------------------------------------------------------------
Directories: prefix=/usr/local
bindir=${exec_prefix}/bin
datadir=${datarootdir}
datarootdir=${prefix}/share
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
mandir=${datarootdir}/man
Graphics: GDI
Image Libraries: JPEG=System
PNG=System
ZLIB=System
Large Files: YES
OpenGL: YES
Threads: YES
configure: creating ./config.status
config.status: creating makeinclude
config.status: creating fltk.list
config.status: creating fltk-config
config.status: creating fltk.spec
config.status: creating FL/Makefile
config.status: creating config.h
config.status: creating FL/abi-version.h
johnf at INSPI13 /cygdrive/c/fltk
$ make
=== making src ===
Compiling Fl.cxx...
Compiling Fl_Adjuster.cxx...
Compiling Fl_Bitmap.cxx...
Compiling Fl_Browser.cxx...
Compiling Fl_Browser_.cxx...
Compiling Fl_Browser_load.cxx...
Compiling Fl_Box.cxx...
Compiling Fl_Button.cxx...
Compiling Fl_Chart.cxx...
Compiling Fl_Check_Browser.cxx...
Compiling Fl_Check_Button.cxx...
Compiling Fl_Choice.cxx...
Compiling Fl_Clock.cxx...
Compiling Fl_Color_Chooser.cxx...
Compiling Fl_Copy_Surface.cxx...
Compiling Fl_Counter.cxx...
Compiling Fl_Dial.cxx...
Compiling Fl_Device.cxx...
Compiling Fl_Double_Window.cxx...
Compiling Fl_File_Browser.cxx...
Compiling Fl_File_Chooser.cxx...
Compiling Fl_File_Chooser2.cxx...
Compiling Fl_File_Icon.cxx...
Compiling Fl_File_Input.cxx...
Compiling Fl_Group.cxx...
Compiling Fl_Help_View.cxx...
Compiling Fl_Image.cxx...
Compiling Fl_Image_Surface.cxx...
Compiling Fl_Input.cxx...
Compiling Fl_Input_.cxx...
Compiling Fl_Light_Button.cxx...
Compiling Fl_Menu.cxx...
Compiling Fl_Menu_.cxx...
Compiling Fl_Menu_Bar.cxx...
Compiling Fl_Menu_Button.cxx...
Compiling Fl_Menu_Window.cxx...
Compiling Fl_Menu_add.cxx...
Compiling Fl_Menu_global.cxx...
Compiling Fl_Multi_Label.cxx...
Compiling Fl_Native_File_Chooser.cxx...
Compiling Fl_Overlay_Window.cxx...
Compiling Fl_Pack.cxx...
Compiling Fl_Paged_Device.cxx...
Compiling Fl_Pixmap.cxx...
Compiling Fl_PostScript.cxx...
Compiling Fl_Positioner.cxx...
Compiling Fl_Preferences.cxx...
Compiling Fl_Printer.cxx...
Compiling Fl_Progress.cxx...
Compiling Fl_Repeat_Button.cxx...
Compiling Fl_Return_Button.cxx...
Compiling Fl_Roller.cxx...
Compiling Fl_Round_Button.cxx...
Compiling Fl_Scroll.cxx...
Compiling Fl_Scrollbar.cxx...
Compiling Fl_Shared_Image.cxx...
Compiling Fl_Single_Window.cxx...
Compiling Fl_Slider.cxx...
Compiling Fl_Table.cxx...
Compiling Fl_Table_Row.cxx...
Compiling Fl_Tabs.cxx...
Compiling Fl_Text_Buffer.cxx...
Compiling Fl_Text_Display.cxx...
Compiling Fl_Text_Editor.cxx...
Compiling Fl_Tile.cxx...
Compiling Fl_Tiled_Image.cxx...
Compiling Fl_Tree.cxx...
Compiling Fl_Tree_Item.cxx...
Compiling Fl_Tree_Item_Array.cxx...
Compiling Fl_Tree_Prefs.cxx...
Compiling Fl_Tooltip.cxx...
Compiling Fl_Valuator.cxx...
Compiling Fl_Value_Input.cxx...
Compiling Fl_Value_Output.cxx...
Compiling Fl_Value_Slider.cxx...
Compiling Fl_Widget.cxx...
Compiling Fl_Window.cxx...
Compiling Fl_Window_fullscreen.cxx...
Compiling Fl_Window_hotspot.cxx...
Compiling Fl_Window_iconize.cxx...
Compiling Fl_Window_shape.cxx...
Compiling Fl_Wizard.cxx...
Compiling Fl_XBM_Image.cxx...
Compiling Fl_XPM_Image.cxx...
Compiling Fl_abort.cxx...
Compiling Fl_add_idle.cxx...
Compiling Fl_arg.cxx...
Compiling Fl_compose.cxx...
Compiling Fl_display.cxx...
Compiling Fl_get_key.cxx...
Compiling Fl_get_system_colors.cxx...
Compiling Fl_grab.cxx...
Compiling Fl_lock.cxx...
Compiling Fl_own_colormap.cxx...
Compiling Fl_visual.cxx...
Compiling Fl_x.cxx...
Compiling filename_absolute.cxx...
Compiling filename_expand.cxx...
Compiling filename_ext.cxx...
Compiling filename_isdir.cxx...
Compiling filename_list.cxx...
Compiling filename_match.cxx...
Compiling filename_setext.cxx...
Compiling fl_arc.cxx...
Compiling fl_arci.cxx...
Compiling fl_ask.cxx...
Compiling fl_boxtype.cxx...
Compiling fl_color.cxx...
Compiling fl_cursor.cxx...
Compiling fl_curve.cxx...
Compiling fl_diamond_box.cxx...
Compiling fl_dnd.cxx...
Compiling fl_draw.cxx...
Compiling fl_draw_image.cxx...
Compiling fl_draw_pixmap.cxx...
Compiling fl_encoding_latin1.cxx...
Compiling fl_encoding_mac_roman.cxx...
Compiling fl_engraved_label.cxx...
Compiling fl_file_dir.cxx...
Compiling fl_font.cxx...
Compiling fl_gleam.cxx...
Compiling fl_gtk.cxx...
Compiling fl_labeltype.cxx...
Compiling fl_line_style.cxx...
Compiling fl_open_uri.cxx...
Compiling fl_oval_box.cxx...
Compiling fl_overlay.cxx...
Compiling fl_overlay_visual.cxx...
Compiling fl_plastic.cxx...
Compiling fl_read_image.cxx...
Compiling fl_rect.cxx...
Compiling fl_round_box.cxx...
Compiling fl_rounded_box.cxx...
Compiling fl_set_font.cxx...
Compiling fl_set_fonts.cxx...
Compiling fl_scroll_area.cxx...
Compiling fl_shadow_box.cxx...
Compiling fl_shortcut.cxx...
Compiling fl_show_colormap.cxx...
Compiling fl_symbols.cxx...
Compiling fl_vertex.cxx...
Compiling screen_xywh.cxx...
Compiling fl_utf8.cxx...
Compiling ps_image.cxx...
Compiling fl_call_main.c...
Compiling flstring.c...
Compiling scandir.c...
Compiling numericsort.c...
Compiling vsnprintf.c...
Compiling fl_utf.c...
Compiling xutf8/case.c...
Compiling xutf8/is_right2left.c...
Compiling xutf8/is_spacing.c...
Compiling xutf8/keysym2Ucs.c...
Compiling xutf8/utf8Input.c...
Compiling xutf8/utf8Utils.c...
Compiling xutf8/utf8Wrap.c...
/usr/bin/ar cr ../lib/libfltk.a ...
Compiling forms_compatability.cxx...
Compiling forms_bitmap.cxx...
Compiling forms_free.cxx...
Compiling forms_fselect.cxx...
Compiling forms_pixmap.cxx...
Compiling forms_timer.cxx...
/usr/bin/ar cr ../lib/libfltk_forms.a ...
Compiling Fl_Gl_Choice.cxx...
Compiling Fl_Gl_Overlay.cxx...
Compiling Fl_Gl_Device_Plugin.cxx...
Compiling Fl_Gl_Window.cxx...
Compiling freeglut_geometry.cxx...
Compiling freeglut_stroke_mono_roman.cxx...
Compiling freeglut_stroke_roman.cxx...
Compiling freeglut_teapot.cxx...
Compiling gl_draw.cxx...
Compiling gl_start.cxx...
Compiling glut_compatability.cxx...
Compiling glut_font.cxx...
/usr/bin/ar cr ../lib/libfltk_gl.a ...
Compiling fl_images_core.cxx...
Compiling Fl_BMP_Image.cxx...
Compiling Fl_File_Icon2.cxx...
Compiling Fl_GIF_Image.cxx...
Compiling Fl_Help_Dialog.cxx...
Compiling Fl_JPEG_Image.cxx...
Compiling Fl_PNG_Image.cxx...
Compiling Fl_PNM_Image.cxx...
/usr/bin/ar cr ../lib/libfltk_images.a ...
=== making fluid ===
Compiling CodeEditor.cxx...
Compiling ExternalCodeEditor_UNIX.cxx...
Compiling ExternalCodeEditor_WIN32.cxx...
Compiling Fl_Function_Type.cxx...
Compiling Fl_Group_Type.cxx...
Compiling Fl_Menu_Type.cxx...
Compiling Fl_Type.cxx...
Compiling Fl_Widget_Type.cxx...
Compiling Fl_Window_Type.cxx...
Compiling Fluid_Image.cxx...
Compiling about_panel.cxx...
Compiling align_widget.cxx...
Compiling alignment_panel.cxx...
Compiling code.cxx...
Compiling factory.cxx...
Compiling file.cxx...
Compiling fluid.cxx...
Compiling function_panel.cxx...
Compiling template_panel.cxx...
Compiling undo.cxx...
Compiling widget_panel.cxx...
Linking fluid.exe...
=== making test ===
Compiling unittests.cxx...
Linking unittests.exe...
Compiling animated.cxx...
Linking animated.exe...
Compiling adjuster.cxx...
Linking adjuster.exe...
Compiling arc.cxx...
Linking arc.exe...
Compiling ask.cxx...
Linking ask.exe...
Compiling bitmap.cxx...
Linking bitmap.exe...
Compiling blocks.cxx...
Linking blocks.exe...
Compiling boxtype.cxx...
Linking boxtype.exe...
Compiling browser.cxx...
Linking browser.exe...
Compiling button.cxx...
Linking button.exe...
Compiling buttons.cxx...
Linking buttons.exe...
Compiling cairo_test.cxx...
Linking cairo_test.exe...
Compiling checkers.cxx...
Linking checkers.exe...
Compiling clock.cxx...
Linking clock.exe...
Compiling colbrowser.cxx...
Linking colbrowser.exe...
Compiling color_chooser.cxx...
Linking color_chooser.exe...
Compiling cursor.cxx...
Linking cursor.exe...
Compiling curve.cxx...
Linking curve.exe...
Compiling demo.cxx...
Linking demo.exe...
Compiling device.cxx...
Linking device.exe...
Compiling doublebuffer.cxx...
Linking doublebuffer.exe...
Compiling editor.cxx...
Linking editor.exe...
Generating fast_slow.cxx and header from fast_slow.fl...
C:/fltk/fluid/fluid.exe: error while loading shared libraries:
libpng16-16.dll: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:279: fast_slow.cxx] Error 127
make: *** [Makefile:24: all] Error 1
johnf at INSPI13 /cygdrive/c/fltk
$ test/demo
C:/fltk/test/demo.exe: error while loading shared libraries:
libstdc++-6.dll: cannot open shared object file: No such file or directory
On Mon, Feb 26, 2018 at 5:16 AM, <cgeuzaine at uliege.be> wrote:
>
> Recompile fltk from scratch : we’ve also experienced problems with the
> version shipped with mingw.
>
> CG
>
> On 26 Feb 2018, at 11:13, John Staples <john.f.staples at gmail.com> wrote:
>
> Greetings,
>
> I reinstalled CYGWIN64 making sure to not ask for any of the cygwin native
> compilers. This seems to have resolved the previous "compiler
> contamination" issue. Thank you for that.
>
> Now it looks like the problem has to do with an unresolved reference
> within FLTK. Any suggestions will be much appreciated.
>
>
>
>
> johnf at INSPI13 /cygdrive/c/gmsh/build9
> $ cmake -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe
> -DCMAKE_C_COMPILER
> =/usr/bin/x86_64-w64-mingw32-gcc.exe -DCMAKE_Fortran_COMPILER=/usr/
> bin/x86_64-w64-m
> ingw32-gfortran.exe ..
> -- The CXX compiler identification is GNU 6.4.0
> -- The C compiler identification is GNU 6.4.0
> -- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++.exe
> -- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++.exe --
> works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe
> -- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe --
> works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of void*
> -- Check size of void* - done
> -- Found 64Bit
> -- Performing Test STDCXX11
> -- Performing Test STDCXX11 - Success
> -- The Fortran compiler identification is GNU 6.4.0
> -- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-
> gfortran.exe
> -- Check for working Fortran compiler: /usr/bin/x86_64-w64-mingw32-gfortran.exe
> -- works
> -- Detecting Fortran compiler ABI info
> -- Detecting Fortran compiler ABI info - done
> -- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran.exe supports
> Fortran 90
> -- Checking whether /usr/bin/x86_64-w64-mingw32-gfortran.exe supports
> Fortran 90 -- yes
> -- Looking for Fortran sgemm
> -- Looking for Fortran sgemm - found
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - found
> -- Found Threads: TRUE
> -- A library with BLAS API found.
> -- Found Blas
> -- A library with BLAS API found.
> -- Looking for Fortran cheev
> -- Looking for Fortran cheev - found
> -- A library with LAPACK API found.
> -- Found Lapack
> -- Found Mesh
> -- Found Solver
> -- Found Post
> -- Found Plugins
> -- Found Parser
> -- Found Fltk
> -- Using fltk-config script for Fltk 1.3
> -- Found NativeFileChooser
> -- Found ONELAB
> -- Found ONELABMetamodel
> -- Found JPEG: /usr/lib/libjpeg.dll.a
> -- Found Jpeg
> -- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")
> -- Found Zlib
> -- Found PNG: /usr/lib/libpng.dll.a (found version "1.6.34")
> -- Found Png
> -- Found Mpeg
> -- Found OpenGL: /usr/lib/libGL.dll.a
> -- Found OpenGL
> -- System ANN not found: using contrib/ANN instead
> -- Found Ann
> -- Found Bfgs
> -- Found DIntegration
> -- Found OptHom
> -- Found Kbipack
> -- GMP not found: Kbipack uses long int
> -- Found MathEx
> -- System METIS not found: using contrib/metis instead
> -- Found Metis
> -- Found TetGen/BR
> -- System voro++ not found: using contrib/voro++ instead
> -- Found Voro++
> -- Found Blossom
> -- Found Netgen
> -- Found Bamg
> -- System MMG3D not found: using contrib/mmg3d instead
> -- Found Mmg3d
> -- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS
> HDF5_HL_LIBRARIES)
> -- HDF5 not found
> -- System GMM not found: using contrib/gmm instead
> -- Found Gmm
> -- Looking for vsnprintf
> -- Looking for vsnprintf - found
> -- Looking for sys/socket.h
> -- Looking for sys/socket.h - not found
> -- Check size of socklen_t
> -- Check size of socklen_t - failed
> -- Found NoSocklenT
> -- Check size of intptr_t
> -- Check size of intptr_t - done
> -- Looking for dlfcn.h
> -- Looking for dlfcn.h - found
> -- Found Dlopen
> -- Looking for linux/joystick.h
> -- Looking for linux/joystick.h - not found
> -- Performing Test WALL
> -- Performing Test WALL - Success
> -- Performing Test WCAST
> -- Performing Test WCAST - Failed
> -- Performing Test WDEPREC
> -- Performing Test WDEPREC - Success
> -- Performing Test WIND
> -- Performing Test WIND - Success
> -- Performing Test NOWARN
> -- Performing Test NOWARN - Success
> -- Performing Test NOOPT
> -- Performing Test NOOPT - Success
> --
> -- Gmsh 3.0.7 has been configured for Windows64
> --
> -- * Build options: 64Bit Ann Bamg Bfgs Blas Blossom DIntegration Dlopen
> Fltk Gmm Jpeg Kbipack Lapack MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser
> Netgen NoSocklenT ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png
> Post Solver TetGen/BR Voro++ Zlib
> -- * Build type: RelWithDebInfo
> -- * C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe
> -- * C++ compiler: /usr/bin/x86_64-w64-mingw32-g++.exe
> -- * Install prefix: /usr/local
> --
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /cygdrive/c/gmsh/build9
> j
> johnf at INSPI13 /cygdrive/c/gmsh/build9
> $ make
> Scanning dependencies of target gmsh
> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.o
> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o
> [.....
>
> [ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GEdge.cpp.o
> /cygdrive/c/gmsh/Geo/GEdge.cpp:56:2: warning: #warning
> missing:computation of affine transformation during setMeshMaster [-Wcpp]
> #warning missing:computation of affine transformation during setMeshMaster
> ^~~~~~~
> /cygdrive/c/gmsh/Geo/GEdge.cpp: In member function ‘virtual
> SBoundingBox3d GEdge::bounds() const’:
> /cygdrive/c/gmsh/Geo/GEdge.cpp:214:33: warning: comparison between signed
> and unsigned integer expressions [-Wsign-compare]
> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices();
> j++)
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GFace.cpp.o
> /cygdrive/c/gmsh/Geo/GFace.cpp: In member function ‘virtual
> SBoundingBox3d GFace::bounds() const’:
> /cygdrive/c/gmsh/Geo/GFace.cpp:224:33: warning: comparison between signed
> and unsigned integer expressions [-Wsign-compare]
> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices();
> j++)
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GRegion.cpp.o
> /cygdrive/c/gmsh/Geo/GRegion.cpp: In member function ‘virtual
> SBoundingBox3d GRegion::bounds() const’:
> /cygdrive/c/gmsh/Geo/GRegion.cpp:151:33: warning: comparison between
> signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int j = 0; j < getMeshElement(i)->getNumVertices();
> j++)
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/GEdgeLoop.cpp.o
> [ 9%] Building CXX object CMakeFiles/gmsh.dir/Geo/gmshVertex.cpp.o
>
> ...
>
> [ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH2.cpp.o
> /cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp: In function ‘MElement*
> createElementMSH2(GModel*, int, int, int, int, int, std::vector<MVertex*>&,
> std::map<int, std::vector<MElement*> >*, std::map<int, std::map<int,
> std::__cxx11::basic_string<char> > >*, bool, MElement*, MElement*,
> MElement*)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp:89:11: warning: comparison between
> signed and unsigned integer expressions [-Wsign-compare]
> if(part > m->getNumPartitions()) m->setNumPartitions(part);
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp: In member function ‘int
> GModel::_writePartitionedMSH2(const string&, bool, bool, bool, double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH2.cpp:990:36: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(int partition = 1; partition <= getNumPartitions(); partition++){
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
> [ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH3.cpp.o
> /cygdrive/c/gmsh/Geo/GModelIO_MSH3.cpp: In member function ‘int
> GModel::_writePartitionedMSH3(const string&, double, bool, bool, bool,
> double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH3.cpp:745:36: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(int partition = 0; partition < getNumPartitions(); partition++){
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
> [ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MSH4.cpp.o
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘bool
> readMSH4Entities(GModel*, FILE*, bool, bool, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:286:59: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> if(fread(ghostTags, sizeof(int), 2*ghostSize, fp) != 2*ghostSize){
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:302:35: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int i = 0; i < 2*ghostSize; i+=2){
> ~~^~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:312:31: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int i = 0; i < 2*ghostSize; i+=2){
> ~~^~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘bool
> readMSH4GhostElements(GModel*, FILE*, bool, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1040:31: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int j = 0; j < numGhost; j++){
> ~~^~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1050:14: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> if(j == numGhost-1){
> ~~^~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4Physicals(FILE*, GEntity*, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1357:35: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::vector<int>::size_type {aka long long unsigned int}’ [-Wformat=]
> fprintf(fp, "%lu", phys.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4Entities(GModel*, FILE*, bool, bool, double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::set<GVertex*, GEntityLessThan>::size_type {aka long long unsigned
> int}’ [-Wformat=]
> vertices.size(), edges.size(), faces.size(), regions.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 4 has type
> ‘std::set<GEdge*, GEntityLessThan>::size_type {aka long long unsigned int}’
> [-Wformat=]
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 5 has type
> ‘std::set<GFace*, GEntityLessThan>::size_type {aka long long unsigned int}’
> [-Wformat=]
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1638:72: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 6 has type
> ‘std::set<GRegion*, GEntityLessThan>::size_type {aka long long unsigned
> int}’ [-Wformat=]
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1683:42: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::__cxx11::list<GVertex*>::size_type {aka long long unsigned int}’
> [-Wformat=]
> fprintf(fp, "%lu ", vertices.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1710:39: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::__cxx11::list<GEdge*>::size_type {aka long long unsigned int}’
> [-Wformat=]
> fprintf(fp, "%lu ", edges.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1742:39: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::__cxx11::list<GFace*>::size_type {aka long long unsigned int}’
> [-Wformat=]
> fprintf(fp, "%lu ", faces.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4Nodes(GModel*, FILE*, bool, bool, int, double, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:1966:40: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::set<GVertex*, GEntityLessThan>::size_type {aka long long unsigned
> int}’ [-Wformat=]
> regions.size(), numVertices);
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4Elements(GModel*, FILE*, bool, bool, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2182:66: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::map<std::pair<int, GEntity*>, std::vector<MElement*> >::size_type
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(fp, "%lu %lu\n", elementsByDegree.size(), numElements);
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2199:49: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 6 has type
> ‘std::vector<MElement*>::size_type {aka long long unsigned int}’
> [-Wformat=]
> it->first.first, it->second.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4PeriodicNodes(GModel*, FILE*, bool, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2290:67: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 3 has type
> ‘std::map<MVertex*, MVertex*>::size_type {aka long long unsigned int}’
> [-Wformat=]
> fprintf(fp, "%lu\n", g_slave->correspondingVertices.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In function ‘void
> writeMSH4GhostCells(GModel*, FILE*, bool)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2356:45: warning: format ‘%ld’
> expects argument of type ‘long int’, but argument 3 has type
> ‘std::map<MElement*, std::vector<unsigned int> >::size_type {aka long long
> unsigned int}’ [-Wformat=]
> fprintf(fp, "%ld\n", ghostCells.size());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2360:89: warning: format ‘%ld’
> expects argument of type ‘long int’, but argument 5 has type
> ‘std::vector<unsigned int>::size_type {aka long long unsigned int}’
> [-Wformat=]
> fprintf(fp, "%d %d %ld", it->first->getNum(), it->second[0],
> it->second.size()-1);
>
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In member function ‘int
> GModel::_writeMSH4(const string&, double, bool, bool, bool, double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2386:71: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 5 has type ‘long
> long unsigned int’ [-Wformat=]
> fprintf(fp, "%g %d %lu\n", version, (binary ? 1 : 0), sizeof(double));
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp: In member function ‘int
> GModel::_writePartitionedMSH4(const string&, double, bool, bool, bool,
> double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_MSH4.cpp:2634:35: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int k = 0; k < ghostEntity->getMeshElement(j)->getNumVertices();
> k++){
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~~~~~~~~~~~~
> [ 14%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_VTK.cpp.o
> [...
>
>
> [ 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_DIFF.cpp.o
> /cygdrive/c/gmsh/Geo/GModelIO_DIFF.cpp: In member function ‘int
> GModel::readDIFF(const string&)’:
> /cygdrive/c/gmsh/Geo/GModelIO_DIFF.cpp:333:20: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> if(partition > getNumPartitions()) setNumPartitions(partition);
> ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
> [ 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_GEOM.cpp.o
> ....[
> 16%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_NEU.cpp.o
> /cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp: In member function ‘int
> GModel::writeNEU(const string&, bool, double)’:
> /cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:222:19: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 5 has type
> ‘std::unordered_map<unsigned int, std::vector<unsigned int>,
> std::hash<unsigned int>, std::equal_to<unsigned int>,
> std::allocator<std::pair<const unsigned int, std::vector<unsigned int> > >
> >::size_type {aka long long unsigned int}’ [-Wformat=]
> getDim());
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:222:19: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 6 has type
> ‘std::unordered_map<unsigned int, std::vector<std::pair<unsigned int,
> unsigned int> >, std::hash<unsigned int>, std::equal_to<unsigned int>,
> std::allocator<std::pair<const unsigned int, std::vector<std::pair<unsigned
> int, unsigned int> > > > >::size_type {aka long long unsigned int}’
> [-Wformat=]
> /cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:255:44: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 4 has type
> ‘std::vector<unsigned int>::size_type {aka long long unsigned int}’
> [-Wformat=]
> it->first, it->second.size(), 1);
> ^
> /cygdrive/c/gmsh/Geo/GModelIO_NEU.cpp:276:43: warning: format ‘%lu’
> expects argument of type ‘long unsigned int’, but argument 5 has type
> ‘std::vector<std::pair<unsigned int, unsigned int> >::size_type {aka long
> long unsigned int}’ [-Wformat=]
> gambitBoundaryCode(regionName));
> ^
> [ 17%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_ACTRAN.cpp.o
> ...[
> 19%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElement.cpp.o
> /cygdrive/c/gmsh/Geo/MElement.cpp: In member function ‘MElement*
> MElementFactory::create(int, int, const std::vector<int>&, GModel*)’:
> /cygdrive/c/gmsh/Geo/MElement.cpp:1919:11: warning: comparison between
> signed and unsigned integer expressions [-Wsign-compare]
> if(part > model->getNumPartitions()) model->setNumPartitions(part);
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 19%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElementOctree.cpp.o
> ......
> [ 20%] Building CXX object CMakeFiles/gmsh.dir/Geo/MElementCut.cpp.o
> /cygdrive/c/gmsh/Geo/MElementCut.cpp: In function ‘GModel*
> buildCutMesh(GModel*, gLevelset*, std::map<int, std::vector<MElement*> >*,
> std::map<int, MVertex*>&, std::map<int, std::map<int,
> std::__cxx11::basic_string<char> > >*, bool)’:
> /cygdrive/c/gmsh/Geo/MElementCut.cpp:1518:30: warning: comparison between
> signed and unsigned integer expressions [-Wsign-compare]
> if(e->getPartition() > cutGM->getNumPartitions())
> cutGM->setNumPartitions(e->getPartition());
> ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
> /cygdrive/c/gmsh/Geo/MElementCut.cpp:1548:28: warning: comparison between
> signed and unsigned integer expressions [-Wsign-compare]
> if(e->getPartition() > cutGM->getNumPartitions())
> cutGM->setNumPartitions(e->getPartition());
> ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 20%] Building CXX object CMakeFiles/gmsh.dir/Geo/MSubElement.cpp.o
> ...
> [ 27%] Building CXX object CMakeFiles/gmsh.dir/Mesh/meshPartition.cpp.o
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp: In member function ‘void
> Graph::eraseVertex()’:
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp:241:33: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int i = 0; i < _vertexSize; i++) _vertex[i] = -1;
> ~~^~~~~~~~~~~~~
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp: In function ‘int
> MakeGraph(GModel*, Graph&, int)’:
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp:505:37: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int k = 0; k < entities[i]->getMeshElement(j)->getNumVertices()
> ; k++){
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~~~~~~~~~~~~
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp: In function ‘int
> computeOrientation(MElement*, MElement*)’:
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp:1775:31: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int i = 0; i < reference->getNumFaces(); i++){
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
> /cygdrive/c/gmsh/Mesh/meshPartition.cpp:1790:31: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int i = 0; i < reference->getNumEdges(); i++){
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
> [ 27%] Building CXX object CMakeFiles/gmsh.dir/Mesh/meshRefine.cpp.o
> ...
> [ 34%] Building CXX object CMakeFiles/gmsh.dir/Post/adaptiveData.cpp.o
> /cygdrive/c/gmsh/Post/adaptiveData.cpp: In member function ‘void
> VTKData::finalizeVTKFile()’:
> /cygdrive/c/gmsh/Post/adaptiveData.cpp:1935:182: warning: format ‘%u’
> expects argument of type ‘unsigned int’, but argument 5 has type ‘uint64_t
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(vtkFile,"<DataArray type=\"Float64\" Name=\"%s\"
> NumberOfComponents=\"%d\" format=\"appended\" offset=\"%" PRIu64 "\"/>\n",
> vtkFieldName.c_str(), vtkNumComp,byteoffset);
>
>
> ^
> /cygdrive/c/gmsh/Post/adaptiveData.cpp:1945:151: warning: format ‘%u’
> expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(vtkFile,"<DataArray type=\"Float64\" Name=\"Points\"
> NumberOfComponents=\"3\" format=\"appended\" offset=\"%" PRIu64
> "\"/>\n",byteoffset);
>
>
> ^
> /cygdrive/c/gmsh/Post/adaptiveData.cpp:1951:130: warning: format ‘%u’
> expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(vtkFile,"<DataArray type=\"Int64\" Name=\"connectivity\"
> format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);
>
> ^
> /cygdrive/c/gmsh/Post/adaptiveData.cpp:1953:125: warning: format ‘%u’
> expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(vtkFile,"<DataArray type=\"Int64\" Name=\"offsets\"
> format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);
>
> ^
> /cygdrive/c/gmsh/Post/adaptiveData.cpp:1955:123: warning: format ‘%u’
> expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t
> {aka long long unsigned int}’ [-Wformat=]
> fprintf(vtkFile,"<DataArray type=\"UInt8\" Name=\"types\"
> format=\"appended\" offset=\"%" PRIu64 "\"/>\n",byteoffset);
>
> ^
> [ 34%] Building CXX object CMakeFiles/gmsh.dir/Post/shapeFunctions.cpp.o
> ...
> [ 42%] Building CXX object CMakeFiles/gmsh.dir/Plugin/
> SimplePartition.cpp.o
> /cygdrive/c/gmsh/Plugin/SimplePartition.cpp: In member function ‘virtual
> void GMSH_SimplePartitionPlugin::run()’:
> /cygdrive/c/gmsh/Plugin/SimplePartition.cpp:115:33: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(unsigned int k = 0; k < numSlices; k++){
> ~~^~~~~~~~~~~
> [ 42%] Building CXX object CMakeFiles/gmsh.dir/Plugin/Crack.cpp.o
> [...
> [ 45%] Building CXX object CMakeFiles/gmsh.dir/Fltk/visibilityWindow.cpp.o
> /cygdrive/c/gmsh/Fltk/visibilityWindow.cpp: In member function ‘void
> VisibilityList::update(VisibilityList::VisibilityType)’:
> /cygdrive/c/gmsh/Fltk/visibilityWindow.cpp:252:30: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> for(int part = 0; part < m->getNumPartitions(); part++)
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
> [ 45%] Building CXX object CMakeFiles/gmsh.dir/Fltk/
> highOrderToolsWindow.cpp.o
> ...
> [100%] Building C object CMakeFiles/gmsh.dir/contrib/mmg3d/build/sources/
> analarcutting.c.o
> [100%] Building C object CMakeFiles/gmsh.dir/contrib/
> mmg3d/build/sources/analar.c.o
> [100%] Linking CXX executable gmsh.exe
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(gl_draw.o):(.text$_Z7gl_drawPKci+0x56): undefined reference to
> `__imp_wglUseFontBitmapsW'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x2d):
> undefined reference to `__imp_wglCreateLayerContext'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x78):
> undefined reference to `__imp_wglCreateContext'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_create_gl_contextP9Fl_WindowPK12Fl_Gl_Choicei+0x89):
> undefined reference to `__imp_wglShareLists'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z17fl_set_gl_contextP9Fl_WindowP7HGLRC__+0x25):
> undefined reference to `__imp_wglMakeCurrent'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z16fl_no_gl_contextv+0x1d): undefined
> reference to `__imp_wglMakeCurrent'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_delete_gl_contextP7HGLRC__+0x1c):
> undefined reference to `__imp_wglDeleteContext'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk_
> gl.a(Fl_Gl_Choice.o):(.text$_Z20fl_delete_gl_contextP7HGLRC__+0xc3):
> undefined reference to `__imp_wglMakeCurrent'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(Fl.o):(.text$_Z15fl_open_displayv.part.41+0x10): undefined reference to
> `__imp_OleInitialize'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$__tcf_1+0x10):
> undefined reference to `__imp_OleUninitialize'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(Fl.o):(.text$_ZN4Fl_X4makeEP9Fl_Window+0x2f8): undefined reference to
> `__imp_RegisterDragDrop'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.a(Fl.o):(.text$_ZL7WndProcP6HWND__jyx+0x5c0):
> undefined reference to `__imp__TrackMouseEvent'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x266): undefined
> reference to `__imp_ReleaseStgMedium'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x4ea): undefined
> reference to `__imp_ReleaseStgMedium'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget4DropEP11IDataObjectm7_POINTLPm]+0x5cb): undefined
> reference to `__imp_ReleaseStgMedium'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x257): undefined
> reference to `__imp_ReleaseStgMedium'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x42c): undefined
> reference to `__imp_ReleaseStgMedium'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm[_
> ZN12FLDropTarget9DragEnterEP11IDataObjectm7_POINTLPm]+0x59b): more
> undefined references to `__imp_ReleaseStgMedium' follow
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.text$_ZN2Fl3dndEv+0x5c): undefined reference to
> `__imp_DoDragDrop'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.rdata$.refptr.IID_IDropTarget[.refptr.IID_IDropTarget]+0x0):
> undefined reference to `IID_IDropTarget'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.rdata$.refptr.IID_IDropSource[.refptr.IID_IDropSource]+0x0):
> undefined reference to `IID_IDropSource'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.rdata$.refptr.IID_IDataObject[.refptr.IID_IDataObject]+0x0):
> undefined reference to `IID_IDataObject'
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libfltk.
> a(fl_dnd.o):(.rdata$.refptr.IID_IUnknown[.refptr.IID_IUnknown]+0x0):
> undefined reference to `IID_IUnknown'
> collect2: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/gmsh.dir/build.make:18360: gmsh.exe] Error 1
> make[1]: *** [CMakeFiles/Makefile2:548: CMakeFiles/gmsh.dir/all] Error 2
> make: *** [Makefile:161: all] Error 2
>
>
>
> Best regards
> John
>
> On Sat, Feb 24, 2018 at 11:48 AM, Christophe Geuzaine <cgeuzaine at uliege.be
> > wrote:
>
>>
>>
>> On 24 Feb 2018, at 17:09, John Staples <john.f.staples at gmail.com> wrote:
>>
>> Thank you for the advice to use the -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe
>> option on the cmake command line. Your help is very much appreciated.
>>
>> I am now stumbling on something that may be simple: how to specify the
>> path to the linker libraries? I am guessing -Dlink_directories(directory1
>> directory2 ...) but can't find the paths for 'ldl' and 'lcgywin'
>>
>>
>> -ldl and -lcygwin should not be used when you compile with the mingw
>> toolchain: these would lead to a executable that is not pure Windows. These
>> might be pulled in by some dependencies compiled with the cygwin compile -
>> you should remove these dependencies (or compile them with the mingw
>> toolchain).
>>
>>
>> as identified in the following:
>>
>> johnf at INSPI13 /cygdrive/c/gmsh/build
>>
>> $ make
>> Scanning dependencies of target gmsh
>> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.o
>> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o
>> ---
>> ----
>> [ 99%] Building C object CMakeFiles/gmsh.dir/contrib/mm
>> g3d/build/sources/analarcutting.c.o
>> [ 99%] Building C object CMakeFiles/gmsh.dir/contrib/mm
>> g3d/build/sources/analar.c.o
>> [100%] Linking CXX executable gmsh.exe
>> /usr/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/bin/ld:
>> cannot find -ldl
>> /usr/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/bin/ld:
>> cannot find -ldl
>> /usr/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/bin/ld:
>> cannot find -lcygwin
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [CMakeFiles/gmsh.dir/build.make:18362: gmsh.exe] Error 1
>> make[1]: *** [CMakeFiles/Makefile2:420: CMakeFiles/gmsh.dir/all] Error 2
>> make: *** [Makefile:161: all] Error 2
>>
>> Thank you again for any hints/assistance.
>>
>> John
>>
>> On Thu, Feb 22, 2018 at 3:29 AM, Christophe Geuzaine <cgeuzaine at uliege.be
>> > wrote:
>>
>>>
>>>
>>> On 19 Feb 2018, at 04:20, John Staples <john.f.staples at gmail.com> wrote:
>>>
>>> Greetings All,
>>>
>>> Thank you for any help with the following:
>>>
>>> On Windows10, I've successfully installed CYGWIN 64bit shell (
>>> https://cygwin.com/install.html) with FLTK, OPENGL, BLAS, LAPACK, etc..
>>> (everything but OCC for now)
>>>
>>> Make doesn't build - aborts with errors, ‘usleep’ was not declared in
>>> this scope, etc.
>>>
>>> $ make
>>> Scanning dependencies of target gmsh
>>> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Fltk/Main.cpp.o
>>> [ 0%] Building CXX object CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o
>>> In file included from /cygdrive/c/gmsh/Common/onelab.h:40:0,
>>> from /cygdrive/c/gmsh/Common/onelabUtils.h:9,
>>> from /cygdrive/c/gmsh/Common/GmshGlobal.cpp:36:
>>> /cygdrive/c/gmsh/Common/GmshSocket.h: In member function ‘void
>>> GmshSocket::_Sleep(int)’:
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:150:21: error: ‘usleep’ was not
>>> declared in this scope
>>> usleep(1000 * ms);
>>> ^
>>> /cygdrive/c/gmsh/Common/GmshSocket.h: In member function ‘int
>>> GmshSocket::Select(int, int, int)’:
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:179:5: error: ‘fd_set’ was not
>>> declared in this scope
>>> fd_set rfds;
>>> ^~~~~~
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:180:14: error: ‘rfds’ was not
>>> declared in this scope
>>> FD_ZERO(&rfds);
>>> ^~~~
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:180:18: error: ‘FD_ZERO’ was not
>>> declared in this scope
>>> FD_ZERO(&rfds);
>>> ^
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:181:20: error: ‘FD_SET’ was not
>>> declared in this scope
>>> FD_SET(s, &rfds);
>>> ^
>>> /cygdrive/c/gmsh/Common/GmshSocket.h:184:48: error: ‘select’ was not
>>> declared in this scope
>>> return select(s + 1, &rfds, NULL, NULL, &tv);
>>> ^
>>> make[2]: *** [CMakeFiles/gmsh.dir/build.make:87:
>>> CMakeFiles/gmsh.dir/Common/GmshGlobal.cpp.o] Error 1
>>> make[1]: *** [CMakeFiles/Makefile2:420: CMakeFiles/gmsh.dir/all] Error 2
>>> make: *** [Makefile:161: all] Error 2
>>>
>>>
>>>
>>>
>>> Results from "cmake .." command are good:
>>>
>>> $ cmake ..
>>> -- The CXX compiler identification is GNU 6.4.0
>>> -- The C compiler identification is GNU 6.4.0
>>> -- Check for working CXX compiler: /usr/bin/c++.exe
>>> -- Check for working CXX compiler: /usr/bin/c++.exe -- works
>>>
>>>
>>> It seems that you are using the cygwin compilers, not the mingw ones.
>>> You can specify the compiler with e.g.
>>>
>>> cmake -DCMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++.exe
>>>
>>> Christophe
>>>
>>>
>>>
>>>
>>> -- Detecting CXX compiler ABI info
>>> -- Detecting CXX compiler ABI info - done
>>> -- Detecting CXX compile features
>>> -- Detecting CXX compile features - done
>>> -- Check for working C compiler: /usr/bin/cc
>>> -- Check for working C compiler: /usr/bin/cc -- works
>>> -- Detecting C compiler ABI info
>>> -- Detecting C compiler ABI info - done
>>> -- Detecting C compile features
>>> -- Detecting C compile features - done
>>> -- Looking for sys/types.h
>>> -- Looking for sys/types.h - found
>>> -- Looking for stdint.h
>>> -- Looking for stdint.h - found
>>> -- Looking for stddef.h
>>> -- Looking for stddef.h - found
>>> -- Check size of void*
>>> -- Check size of void* - done
>>> -- Found 64Bit
>>> -- Performing Test STDCXX11
>>> -- Performing Test STDCXX11 - Success
>>> -- The Fortran compiler identification is GNU 6.4.0
>>> -- Check for working Fortran compiler: /usr/bin/gfortran.exe
>>> -- Check for working Fortran compiler: /usr/bin/gfortran.exe -- works
>>> -- Detecting Fortran compiler ABI info
>>> -- Detecting Fortran compiler ABI info - done
>>> -- Checking whether /usr/bin/gfortran.exe supports Fortran 90
>>> -- Checking whether /usr/bin/gfortran.exe supports Fortran 90 -- yes
>>> -- Looking for Fortran sgemm
>>> -- Looking for Fortran sgemm - found
>>> -- Looking for pthread.h
>>> -- Looking for pthread.h - found
>>> -- Looking for pthread_create
>>> -- Looking for pthread_create - found
>>> -- Found Threads: TRUE
>>> -- A library with BLAS API found.
>>> -- Found Blas
>>> -- A library with BLAS API found.
>>> -- Looking for Fortran cheev
>>> -- Looking for Fortran cheev - found
>>> -- A library with LAPACK API found.
>>> -- Found Lapack
>>> -- Found Mesh
>>> -- Found Solver
>>> -- Found Post
>>> -- Found Plugins
>>> -- Found Parser
>>> -- Found Fltk
>>> -- Using fltk-config script for Fltk 1.3
>>> -- Found NativeFileChooser
>>> -- Found ONELAB
>>> -- Found ONELABMetamodel
>>> -- Found JPEG: /usr/lib/libjpeg.dll.a
>>> -- Found Jpeg
>>> -- Found ZLIB: /usr/lib/libz.dll.a (found version "1.2.11")
>>> -- Found Zlib
>>> -- Found PNG: /usr/lib/libpng.dll.a (found version "1.6.34")
>>> -- Found Png
>>> -- Found Mpeg
>>> -- Found OpenGL: /usr/lib/libGL.dll.a
>>> -- Found OpenGL
>>> -- System ANN not found: using contrib/ANN instead
>>> -- Found Ann
>>> -- Found Bfgs
>>> -- Found DIntegration
>>> -- Found OptHom
>>> -- Found Kbipack
>>> -- Found GMP
>>> -- Found MathEx
>>> -- System METIS not found: using contrib/metis instead
>>> -- Found Metis
>>> -- Found TetGen/BR
>>> -- System voro++ not found: using contrib/voro++ instead
>>> -- Found Voro++
>>> -- Found Blossom
>>> -- Found Netgen
>>> -- Found Bamg
>>> -- System MMG3D not found: using contrib/mmg3d instead
>>> -- Found Mmg3d
>>> -- HDF5: Using hdf5 compiler wrapper to determine C configuration
>>> -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
>>> -- 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")
>>> -- System GMM not found: using contrib/gmm instead
>>> -- Found Gmm
>>> -- Looking for vsnprintf
>>> -- Looking for vsnprintf - found
>>> -- Looking for sys/socket.h
>>> -- Looking for sys/socket.h - found
>>> -- Check size of socklen_t
>>> -- Check size of socklen_t - done
>>> -- Check size of intptr_t
>>> -- Check size of intptr_t - done
>>> -- Looking for dlfcn.h
>>> -- Looking for dlfcn.h - found
>>> -- Found Dlopen
>>> -- Looking for linux/joystick.h
>>> -- Looking for linux/joystick.h - not found
>>> -- Performing Test WALL
>>> -- Performing Test WALL - Success
>>> -- Performing Test WCAST
>>> -- Performing Test WCAST - Failed
>>> -- Performing Test WDEPREC
>>> -- Performing Test WDEPREC - Success
>>> -- Performing Test WIND
>>> -- Performing Test WIND - Success
>>> -- Performing Test NOWARN
>>> -- Performing Test NOWARN - Success
>>> -- Performing Test NOOPT
>>> -- Performing Test NOOPT - Success
>>> --
>>> -- Gmsh 3.0.7 has been configured for Windows64
>>> --
>>> -- * 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
>>> -- * Build type: RelWithDebInfo
>>> -- * C compiler: /usr/bin/cc
>>> -- * C++ compiler: /usr/bin/c++.exe
>>> -- * Install prefix: /usr/local
>>> --
>>> -- Configuring done
>>> -- Generating done
>>> -- Build files have been written to: /cygdrive/c/gmsh/build
>>>
>>> Any help would be much appreciated.
>>>
>>> Thanks,
>>> Joh
>>>
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at onelab.info
>>> http://onelab.info/mailman/listinfo/gmsh
>>>
>>>
>>> —
>>> Prof. Christophe Geuzaine
>>> University of Liege, Electrical Engineering and Computer Science
>>> http://www.montefiore.ulg.ac.be/~geuzaine
>>>
>>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>>>
>>>
>>
>> —
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science
>> http://www.montefiore.ulg.ac.be/~geuzaine
>>
>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>>
>>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180226/7f70d767/attachment-0001.html>
More information about the gmsh
mailing list