Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gmsh gmsh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gmshgmsh
  • gmshgmsh
  • Issues
  • #1007

Building gmsh 4.7.0 from source

Hello,

I'm attempting to build gmsh 4.7.0 from source using CMake as I require some features that are only currently available in gmsh 4.7.0. Specifically, I'd like to use mesh size functions from pygmsh.

However, when I go to build gmsh from commit 0e1e5c of master, the linking stage fails stating:

[ 92%] Linking CXX shared library libgmsh.dylib
ld: library not found for -lpng
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgmsh.4.7.0.dylib] Error 1
make[1]: *** [CMakeFiles/shared.dir/all] Error 2
make: *** [all] Error 2

I followed the instructions with regard to typical CMake operations. libpng is installed on my MacOS (Catalina) and linked on my system. brew reports this in regard to libpng

Warning: libpng 1.6.37 is already installed and up-to-date
To reinstall 1.6.37, run `brew reinstall libpng`

I tried reinstalling libpng and received the same error as above with regard to linking when building gmsh from source.

Thank you for any help you can provide!

Assignee
Assign to
Time tracking