We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On intel i7 2015 MacBook Pro running HighSierra 10.13.5
Mismatch between "os.arch" in sbt.build vs NativeUtils.java path.
path
In sbt.build os.arch = x86_64.
Building beanpiece libsentencepiece.dylib is placed in /osx/x86_64/libsentencepiece.dylib.
libsentencepiece.dylib
/osx/x86_64/libsentencepiece.dylib
However at runtime when NativeUtils.java attempts to load the appropriate libary it searches in /osx/i386/libsentencepiece.dylib
NativeUtils.java
/osx/i386/libsentencepiece.dylib
in NativeUtils path returns i386 due to
private static Architecture architecture() { String arch = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH); // arch = "x86_64" if (arch.contains("ppc")) { return Architecture.PPC; } else if (arch.contains("i386") || arch.contains("x86")) { return Architecture.I386; } else if (arch.contains("amd64") || arch.contains("x86_64")) { return Architecture.AMD64; } else { throw new IllegalArgumentException("Unsupported architecture: " + arch); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On intel i7 2015 MacBook Pro running HighSierra 10.13.5
Mismatch between "os.arch" in sbt.build vs NativeUtils.java
path
.In sbt.build os.arch = x86_64.
Building beanpiece
libsentencepiece.dylib
is placed in/osx/x86_64/libsentencepiece.dylib
.However at runtime when
NativeUtils.java
attempts to load the appropriate libary it searches in/osx/i386/libsentencepiece.dylib
in NativeUtils path returns i386 due to
The text was updated successfully, but these errors were encountered: