-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
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
Static linking of MKL library #601
Comments
We just need remove the |
Please let me know if this isn't working properly though, thanks! |
Thanks a lot for the quick answer. It worked on my mac, and I am now trying on Linux. |
BTW, the new license actually permits redistributing the libraries, so they are now being bundled! Enjoy |
I successfully used the mkl preset. Thanks for the very good work!
Now I would like to use this preset on a server where MKL is not installed. From what I understood, the MKL is not bundled in the jar available on Maven Central for licensing issue.
Is there a way to do it, preferably without meddling in javacpp source code?
Below is my unsuccessful (and maybe clumsy) attempt at doing it on macos (though my compilation target is Linux):
I have seen that the compilation flags were taken from https://github.com/bytedeco/javacpp/blob/master/src/main/resources/org/bytedeco/javacpp/properties/macosx-x86_64.properties
I thus added a "static" field in the "compiler" property in mkl/src/main/java/org/bytedeco/javacpp/presets/mkl_rt.java
I called maven trying to pass the "static" property as follows:
mvn install -Dplatform.compiler.static="-static" --projects mkl
But maven tells me just before calling clang++ that the static property was not found:
[WARNING] Could not get the property named "platform.compiler.static"
I am taking the right path?
The text was updated successfully, but these errors were encountered: