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

Build eigen (autotools) #3487

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

d-torrance
Copy link
Member

As suggested in #3485 (comment), we add an option to build eigen to the autotools build.

We also update the check to see if eigen already exists on the system so that it doesn't require pkg-config to know about eigen -- all that matters is whether we can find the headers. We still use pkg-config to get any flags we might need to find those headers.

Here's a link to a successful build with this update: https://github.com/d-torrance/M2/actions/runs/10933847386/job/30352967367

We're now able to build eigen if it doesn't exist or if we pass the
--enable-build-libraries option.  We also don't require pkg-config
support, but still use it to find the location of the headers (which
we'll need on Debian systems where they're install in /usr/include/eigen3).
TARFILE = eigen-$(VERSION).tar.gz
LICENSEFILES = COPYING.* README.md

CONFIGURECMD = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you still want to run configure for best results, because it checks for CPU features (e.g. SIMD) and (presumably) stores those in a custom header.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the docs:

The header files are the same for all platforms. It is not necessary to use CMake or install anything.

There's some CPU feature stuff in CMakeLists.txt, but it looks to be for enabling them just for eigen's own tests and examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants