Hi there. I'm trying to run the ./build.sh script on macOS, but am getting the following error:
src/driver.hpp:8:10: fatal error: 'gmp.h' file not found
I do indeed have gmp installed and up-to-date with homebrew:
$ find /usr /opt -name "gmp.h"
/opt/homebrew/include/gmp.h
/opt/homebrew/Cellar/gmp/6.2.1_1/include/gmp.h
I tried adding the flag -I/opt/homebrew/include but received:
+ c++ -std=c++11 -pthread -g -O -o minroot -Wall -Wextra -Ilibft4222 -Isrc -I/opt/homebrew/include src/main.cpp src/driver.cpp src/ftdi_driver.cpp pasta_vdf.o assembly.o -Llibft4222/build -lft4222 -lgmp -framework Foundation -framework IOKit
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm a bit of a c++ noob, so I suspect I'm doing something wrong - any help would be appreciated!
Hi there. I'm trying to run the
./build.shscript on macOS, but am getting the following error:I do indeed have
gmpinstalled and up-to-date with homebrew:I tried adding the flag
-I/opt/homebrew/includebut received:I'm a bit of a c++ noob, so I suspect I'm doing something wrong - any help would be appreciated!