j-asefa / slsqp4j

A JVM wrapper for the popular SLSQP optimizer
Other
27 stars 7 forks source link

buildJniLib failing with architecture Exception #16

Open hudda10 opened 1 year ago

hudda10 commented 1 year ago

The command to build JniLib is failing on Mac M1 , OS Sonoma 14

gcc -shared -lgfortran -L /usr/local/gfortran/lib/ -o /slsqp4j/slsqp4j/build/libs/libslsqp.so /slsqp4j/slsqp4j/build/c/slsqp.o /slsqp4j/slsqp4j/build/fortran/slsqp.o

with error

found architecture 'arm64', required architecture 'x86_64' ld: Undefined symbols: slsqp, referenced from: _Java_com_skew_slsqp4j_util_NativeUtils_slsqp in slsqp.o clang: error: linker command failed with exit code 1