Hello everyone,
I am trying to install Garfield++ on my M1 MacBook Air running MacOS version Sonoma 14.4.1.
I followed the Cern guide and, after the download, when the terminal processes the command ’ make -j 4 ’ in the Garfield build directory I eventually get a very long warning which can be summarized with the lines:
[ 59%] Linking CXX shared library libGarfield.dylib
ld: warning: ignoring file ‘/Users/Elisa/Applications/Garfield/build/Magboltz/libmagboltz.11.dylib’: found architecture ‘arm64’, required architecture ‘x86_64’
ld: warning: ignoring file ‘/Users/Elisa/Applications/Garfield/build/Degrade/libdegrade.3.dylib’: found architecture ‘arm64’, required architecture ‘x86_64’
Undefined symbols for architecture x86_64:
[…]
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libGarfield.0.3.0.dylib] Error 1
make[1]: *** [CMakeFiles/Garfield.dir/all] Error 2
make: *** [all] Error 2
Am I doing something wrong? How can I fix this?
Thank you.