opencascade does not seem to be linked when compiling.
Hello,
I am trying to compile gmsh under windows with Cygwin. In principle it worked kinda, because it created a gmsh.exe that also takes commands, but when I load a GEO file I get the following error message:
Error : Gmsh requires OpenCASCADE to add vertex
Error : 'test.geo', line 1: Could not add point
For compiling I followed this description: https://gitlab.onelab.info/gmsh/gmsh/-/wikis/Gmsh-compilation#windows-environment i.e. installed Cygwin and the dependencies (btw, it lists openssh twice, hopefully something else is not missing for it), set the PATH and edited the .bash_profile. Furthermore I installed opencascade from https://dev.opencascade.org/release. I suspect the error at this point, because the "Windows installer VC++ 2017 64 bit" version is the one I installed and you probably need a Cygwin Versioin, but it is not in the package list of cygwin. The path to opencascades lib and dll files I have also added to the PATH.
Here is the output of cmake:
$ cmake ..
-- The CXX compiler identification is GNU 11.2.0
-- The C compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git.exe (found version "2.33.0")
-- 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 size_t
-- Check size of size_t - done
-- Found 64Bit
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found OpenMP
-- Found Eigen
-- Found Mesh
-- Found Solver
-- Found Post
-- Found Plugins
-- Found Parser
-- Found OpenGL: opengl32
-- Could NOT find X11 (missing: X11_X11_LIB)
-- Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_INCLUDE_DIR)
-- Found ONELAB
-- Found ONELABMetamodel
-- Found ANN
-- Found ALGLIB
-- Found DIntegration
-- Found OptHom
-- Found DomHex
-- Found QuadTri
-- Found Kbipack
-- Found GMP
-- Found MathEx
-- Found Metis
-- Found TetGen/BR
-- Found Voro++
-- Found Blossom
-- Found Netgen
-- Found Bamg
-- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "")
-- HDF5 not found
-- Found Gmm
-- Found Hxt
-- Found QuadMeshingTools
-- Found WinslowUntangler
-- Found Freetype: /cygdrive/c/Program Files/Emacs/emacs-26.2-x86_64/lib/libfreetype.a (found version "2.8.1")
-- 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 - 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 WATTR
-- Performing Test WATTR - Success
-- Performing Test WFORMAT
-- Performing Test WFORMAT - Success
-- Performing Test NOWARN
-- Performing Test NOWARN - Success
-- Performing Test NOOPT
-- Performing Test NOOPT - Success
-- Using static libgfortran
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/extrude/periodic_extruded_layers.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/CylinderInnerLoopCrossingSeam.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/CylinderWithEmbeddedPoints.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/CylindricalSurface.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/OptimizationRotatedSurface.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/PeriodicFaceWithLargeTolerance.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/SlenderSurface.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/TrimmedSurface.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/block_structured.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/boolean_tolerance.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/crooked.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/cube-sphere-cube-compound.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/cylinder_intersects.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/cylinders.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/duplicate_degenerated_edges.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/ellipsoid.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/extrude_embedded_conformal.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/extrude_lc.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/face_orientation.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/hybrid_mesh.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/hybrid_pyramids.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/inclusions_auto_union.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/inner_boundary_layer.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/large_radius_cylinder.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/multisave.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/myCrack2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/naca0012_transfinite.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/partitioning_parent.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/rod_distance_field.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/rod_multibloc.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/size_field.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/skewed_cone.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/sphere.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/sphere_embedded_points.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/surface_filling_constrained.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/thru_section_degree.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/tubes_fullhex.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/unable_to_recover_edge-2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/unable_to_recover_edge.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/benchmarks/occ/yoon3d.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/api/square.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/baffles.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/boolean.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/chamfer.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/coherence.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/compsolid.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/compsolid2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/extrude.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/extrude2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fillet.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fillet2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fillet3.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fillet4.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fillet_chamfer.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fleur.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/fragment_numbering.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/hybrid_occ_builtin.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/import.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/import2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/intersect_line_volume.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/neuron.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/periodic.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/periodic_embedded.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/pipe.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/primitives.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/revolve.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/revolve2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/shell_sewing.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple2.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple3.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple4.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple5.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple6.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/simple7.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/slicer.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/slicer_surfaces.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/spherical_surf.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/spline.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/step_assembly.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/surface_filling.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/thicksolid.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/thrusections.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/transfinite.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/transform.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/boolean/twist.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/demos/post_processing/compute_area_volume.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t16.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t17.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t18.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t19.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t20.geo
Skipping test /cygdrive/c/Users/Sven/gmsh/tutorial/t21.geo
--
-- Gmsh 4.9.0-git-42bcf2b8d has been configured for Windows64
--
-- * Build options: 64Bit ALGLIB ANN Bamg Blossom DIntegration DomHex Eigen GMP Gmm Hxt Kbipack MathEx Mesh Metis Netgen NoSocklenT ONELAB ONELABMetamodel OpenMP OptHom Parser Plugins Post QuadMeshingTools QuadTri Solver TetGen/BR Voro++ WinslowUntangler
-- * 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/Users/Sven/gmsh/build