Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add environment variables for non-default BOOST/CGAL #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,16 +526,14 @@ you can install/upgrade.

#### Troubleshooting

If pygalmesh fails to build due to `fatal error: 'Eigen/Dense' file not found`
you will need to create a symbolic link for Eigen to be detected, e.g.
If pygalmesh fails to build due to `fatal error: 'Eigen/Dense' file not found` set the `EIGEN_INCLUDE_DIR`
environment variable to the path to the Eigen include directory on your system.

```
cd /usr/local/include
sudo ln -sf eigen3/Eigen Eigen
```
There is also an environment variable for the location of `CGAL` includes which is `CGAL_INCLUDE_DIR`. `CGAL`
requires linking, so you will also need to make sure that the path to the `lib` dir is in the `LD_LIBRARY_PATH`
environment variable.

It's possible that `eigen3` could be in `/usr/include` instead of
`/usr/local/install`.
When linking against `CGAL >=5.0`, comment out the following line in the `setup.py` file. `libraries=["gmp","mpfr"]`.

#### Manual installation

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
os.environ.get("EIGEN_INCLUDE_DIR", "/usr/include/eigen3/"),
# macos/brew:
"/usr/local/include/eigen3",
os.environ.get("CGAL_INCLUDE_DIR"),
os.path.join(os.environ.get("BOOST_ROOT"),"include"),
],
# no CGAL libraries necessary from CGAL 5.0 onwards
libraries=["gmp", "mpfr"],
Expand Down