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: macOS configure fails to find gmp installed by brew #6507

Open
PastaPastaPasta opened this issue Dec 24, 2024 · 0 comments
Open

build: macOS configure fails to find gmp installed by brew #6507

PastaPastaPasta opened this issue Dec 24, 2024 · 0 comments

Comments

@PastaPastaPasta
Copy link
Member

On macOS, when compiling without depends, I get this output from configure

checking if evhttp_connection_get_peer expects const char**... no
checking for libqrencode... yes
checking for libzmq >= 4... yes
CPPFLAGS =  -DHAVE_BUILD_INFO -DGSL_NO_IOSTREAMS -I/opt/homebrew/opt/gmp/include -I/opt/homebrew/opt/miniupnpc/include -I/opt/homebrew/opt/libnatpmp/include -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -DPROVIDE_FUZZ_MAIN_FUNCTION
checking for gmp.h... no
configure: error: libgmp headers missing

However if I first:

export CPPFLAGS="-I/opt/homebrew/opt/gmp/include"
export LDFLAGS="-L/opt/homebrew/opt/gmp/lib"

Then configure works as expected, and I am able to compile

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

1 participant