-
Notifications
You must be signed in to change notification settings - Fork 15
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
Installation on MacOS X #21
Comments
Hey, JDime uses JNativeMerge under the hood to implement linebased merging via the libgit2 native library. This library ('libgit2.dylib' on MacOS) needs to be provided to the JVM. JNativeMerge includes the native library for Windows and Unix but we don't have any MacOS devices and therefore it doesn't for MacOS. You need to compile or download libgit2 for MacOS and make it available to JNA (which is used by JNativeMerge for native library access). Read this tutorial (below the first code block) for how to do that. Make sure that you use version 0.28.XX of libgit2, that's the only one we test with. Best, |
Hi Georg, and thanks a lot for your fast response. I got it to work thank to your tutorial. I don't know why but I had no success with
|
That's good to hear. I had a look at the JNativeMerge source code and it seems that I enforced loading the library from the classpath (instead of other locations that one might specify via the properties you mentioned). I think that is because this way it's a lot harder to use an invalid version of the library. Your modifications will only survive until the next time you rebuild JDime. Here is how to include an arbitrary library in the .jar file generated for JNativeMerge (and thereby the classpath).
This should work with the develop branch of JDime. |
Hi Georg and thanks for the tip! Quick question, wouldn't it be possible for JNativeMerge to try to load first the library from the resource classpath and only if it does not found it, try loading it from the system path (that implies removing the |
Hey, please apply the following patch to your
Also set Best, |
Hi! Thanks a lot, it's awesome! Unfortunately, but I do not get it to work. When you mean rebuilt you mean gradle build followed by gradle installDist on the develop branch right? Maybe I should not set JNM_MAVEN to false, since I need to download the dependency from maven according to your patch? |
(for info, I set JAVA_OPTS this way : |
Oh sorry, I meant Rebuilding would be |
OK still no luck with |
Hi all!
I have tried to install JDime on last version of MacOS X but no success so far.
I installed libgit2 (brew install libgit2), and compiled JDime from develop (./gradlew installDist). I ran into an error:
Any I idea what I am doing wrong?
The text was updated successfully, but these errors were encountered: