Skip to content

buildJniLib failing with architecture Exception #16

@hudda10

Description

@hudda10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions