-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Build java ffi with cmake #131
Build java ffi with cmake #131
Conversation
Thank you for the patch. I have one question.
|
Hello @herumi, the CMake-configuration expects the libmcl.a to be installed in the system library directory (/usr/lib) per default. You can set the |
Thank you. I've merged it. |
Hello,
I tried to build the Java FFI libraries on both Windows and Linux. While this worked on Linux using the Makefile, the Windows library would not link properly.
Instead of trying to fix the Windows build scripts which I thought were difficult to understand and maintain and error-prone, I created a CMakeLists.txt which compiles both the native bindings and the test JARs and performs the tests using ctest. It was useful for me, so I wanted to contribute it back.
I have tested the CMakeLists and the corresponding documentation on both Windows 10 x86_64 and Ubuntu 20.04 amd64, and the mclwrap library worked without issue on both. The mclelgamalwrap library still fails to compile on Windows and crashes on Linux, but I don't think that this is related to the build script. It did the same for me when I tried to build it using the existing scripts.