Hi,
I need to compile openCARP on a machine with Apple M1 chip. I followed the instruction in one of the previous answers (
https://opencarp.org/q2a/189/compiling-opencarp-on-an-apple-m1-machine?show=189#q189 ), but I still have errors. Here I report what I get:
The commands I provided are
cmake -S. -B_build -DDLOPEN=ON -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=llvm-gcc -D CMAKE_CXX_COMPILER=llvm-g++
cmake --build _build
with last part of the output (just before the error)
[ 80%] Building CXX object CMakeFiles/opencarp-bin.dir/simulator/main.cc.o
[ 80%] Linking CXX executable bin/openCARP
ld: library not found for -lLIB_gfortran-NOTFOUND
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [CMakeFiles/opencarp-bin.dir/build.make:124: bin/openCARP] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:336: CMakeFiles/opencarp-bin.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
From the output of ccmake _build I found I miss other dependencies I do not know how to link:
LIB_emutls_w LIB_emutls_w-NOTFOUND
[...]
LIB_gfortran LIB_gfortran-NOTFOUND
[...]
LIB_quadmath LIB_quadmath-NOTFOUND
Thank you in advance,
Edoardo