Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T ThirdParty-common
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • ThirdParty-common
  • Issues
  • #4
Closed
Open
Issue created Sep 12, 2016 by Sergiy Khan@sergiykhan

CGAL wmake sets incorrect paths to MPFR and GMP

When compiling OpenFOAM v1606, the ./makeGcc script gets the MPFR and GMP libraries placed in the lib64/ sub-directory, while $WM_PROJECT_DIR/wmake/rules/General/CGAL sets paths explicitly to /lib.

$ ls -al $WM_THIRD_PARTY_DIR/platforms/linux64/gmp-5.1.2 include lib64 share

$ ls -al $WM_THIRD_PARTY_DIR/platforms/linux64/mpfr-3.1.2 include lib64 share

$ cat $WM_PROJECT_DIR/wmake/rules/General/CGAL CGAL_INC = \ -I$(CGAL_ARCH_PATH)/include \ -I$(MPFR_ARCH_PATH)/include \ -I$(GMP_ARCH_PATH)/include \ -I$(BOOST_ARCH_PATH)/include

CGAL_LIBS = \ -L$(MPFR_ARCH_PATH)/lib \ -L$(GMP_ARCH_PATH)/lib \ -L$(BOOST_ARCH_PATH)/lib \ -L$(CGAL_ARCH_PATH)/lib \ -lCGAL \ -lmpfr

The simple fix is to create symlinks like so:

$ cd $WM_THIRD_PARTY_DIR $ (cd platforms/linux64/gmp-5.1.2; ln -s lib64 lib) $ (cd platforms/linux64/mpfr-3.1.2; ln -s lib64 lib)

Assignee
Assign to
Time tracking