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

internal GPTL with autotools build #1892

Open
rjdave opened this issue Dec 6, 2021 · 1 comment
Open

internal GPTL with autotools build #1892

rjdave opened this issue Dec 6, 2021 · 1 comment

Comments

@rjdave
Copy link

rjdave commented Dec 6, 2021

When I add --enable-timing in the autotools build configure line for PIO 2.5.4 on a system that does not have an existing GPTL library built, configure fails:

checking gptl.h usability... no
checking gptl.h presence... no
checking for gptl.h... no
checking for GPTLinitialize in -lgptl... no
configure: error: Can't find or link to the GPTL library.

instead of falling back to building the gptl library provided in the PIO source code. The cmake build does not suffer from this shortcoming and happily builds the GPTL shipped with PIO.

@edwardhartnett
Copy link
Collaborator

Correct. That is a feature not a bug.

Shipping code from the GPTL project is incorrect. Get your GPTL from GPTL and get PIO from PIO.

Provide the location to GPTL as you would with any other library, in CPPFLAGS and LDFLAGS.

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

No branches or pull requests

2 participants