herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
450 stars 151 forks source link

build error at Mac M1 #165

Closed NP-h closed 1 year ago

NP-h commented 1 year ago

Hi, leaving a post because there was an error in my process of building your library. I'm using Mac M1, but there's error that says i can't find the library with linker command failed with exit code 1. But it works normally in my another laptop(Ubuntu) i want to solve the problem on my Mac M1 but i don't know even if i find a way... Can you help me?

Thank you

herumi commented 1 year ago

Could you tell me what command you typed and what error you got?

make test and make bin/pairing.exe run well on my M1 MacBook Pro + clang 14.0.0.

NP-h commented 1 year ago
error

Thank you for your reply maybe this is a point... when i type make -j4 I don't know what should i do..

please let me know how can i get to the next step

Thank you

herumi commented 1 year ago

gmpxx is not found, then please type brew install gmp.

NP-h commented 1 year ago

I already have a gmp, so I didn't know it would be a problem, but I updated it the way you told me, so it works normally. Thank you