10gic / vanitygen-plusplus

A vanity address generator for BTC, ETH, LTC, TRX and 100+ more crypto currencies.
GNU Affero General Public License v3.0
268 stars 94 forks source link

Mac mini M1 - 'openssl/sha.h' file not found #40

Closed bane77111 closed 1 month ago

bane77111 commented 2 years ago

Do anyone knows how to resolve the issue for this error, on Mac mini M1:

-Mac-mini vanitygen-plusplus % make cc -ggdb -O3 -Wall -I/usr/local/opt/openssl/include -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found

include <openssl/sha.h>

     ^~~~~~~~~~~~~~~

Thanks!

10gic commented 2 years ago

May be you need install openssl. Try run brew install openssl@1.1 firstly.

bane77111 commented 2 years ago

i already have it,...

May be you need install openssl. Try run brew install openssl@1.1 firstly.

I already have it

10gic commented 2 years ago

Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.

bane77111 commented 2 years ago

Sorry, I don't have a Mac mini M1 on hand. Hope others can help you.

np, thanks for trying

cbrunnkvist commented 1 year ago

Assuming you have already installed OpenSSL via Homebrew (brew install openssl), the easiest way is something like:

C_INCLUDE_PATH=/opt/homebrew/opt/openssl/include:/opt/homebrew/include LIBRARY_PATH=/opt/homebrew/opt/openssl/lib make all

There might be some ld: warning: directory not found warning, but it's just the linker that gets confused. Ideally the Makefile should be rewritten for portability, as suggested in a different issue, but in a less hardcoded way.

(footnote: the make all target will successfully compile all the ocl- variant executables too, but I can not say how well or bad they will work on macOS/arm64. You probably need a "Pro" CPU model for any OCL stuff to have any positive impact either way.)

8eS3rz4sDu8oUx4q39hhv8o2k2e72dkb commented 6 months ago

Do anyone knows how to resolve the issue for this error, on Mac mini M1:

-Mac-mini vanitygen-plusplus % make cc -ggdb -O3 -Wall -I/usr/local/opt/openssl/include -c -o vanitygen.o vanitygen.c vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^~~~~~~

Thanks!

Have you solved your issue? I have troubles to make it on a Mac too!