-
Notifications
You must be signed in to change notification settings - Fork 18
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
Instructions for building on Window #43
Comments
No one on the LOCI ImageJ team has ever tried building on Windows 10. If you get it working, feel free to contribute some instructions on how to do so, via a pull request. For anyone else finding this issue: @jpsacha also posted this question on the ImageJ forum. |
I don't have access to the computer I did this on until later today. When I am able to retrace my steps, I'll post a short guide here and cross-post in the forum. |
@jpsacha Could you check if that works for you (on 64-bit I assume), please? |
@stelfrich Thank you very much for taking the time to write this up! |
@ctrueden Should I open a PR for the |
It's true that that |
@stelfrich Thanks for documenting the steps. It mostly worked. It may need a tweak to pom.xml for copying Maven first reports something that look like an "error":
Though on closer look, it is not clear of this is really an actual error from a compiler or "label" added by Maven. The compilation actually completes. Binaries are created, but Maven build fails later with a message:
That is probably an issue the Ant task definition. I was running this with Maven 3.3.9. I got what I needed, the binaries for the launcher :) BTW: I was also able to build the binaries using CLion and the same mingw (v.4.9.3). Nice thing is that I can debug the launcher C code from CLion, though it is using CMake instead of Maven. |
@jpsacha The NAR Maven plugin is not smart enough to distinguish between compiler errors and compiler warnings. So both such output gets prefixed with The Maven build is failed only when the compiler returns a non-zero error code. |
That's the only reason you wanted to build? Why not extract them from the Maven repository instead then? http://maven.imagej.net/#nexus-search;gav~net.imagej~imagej-launcher~~~ Unless you needed to modify the code...? |
I was hoping to fix some issues. There are a couple of different things I was going after. I also launcher for ImageJ 1, so I may be touching its parts that are not frequently used. One, as reported is issue #42, with the way launcher converts paths. For instance, Another thing was with high DPI displays (4K) that use scaling. Seems that the launcher worked better than ImageJ 1 launcher (Java 8). I was trying to figure out why. Turns out though that it only works till you try to create JavaFX thread, then UI suddenly shrinks. Not clear if this launcher or Java issue, though pure JavaFX applications work fine. Java 9 works better (with Swing), but many libraries do not yet correctly work with Java 9, like jai_imageio, FontAwsomeFX, etc (though I was able to patch a few, still need to post that code to GitHub/Bitbucket :). |
@jpsacha Thanks for the info. I'm glad someone is exploring these things, since I personally have not had time. If you want to play with the JavaFX launcher, you can generate it by cloning https://github.com/imagej/imagej and then running See also #33 |
I tried |
After reboot and doing the same things. There were no issues with Symantec. |
The instructions provided by @stelfrich work on Windows, so I am closing this issue. The JavaFX launcher is better discussed at #33. |
Please provide prerequisites and instructions for building imagej-launcher on Windows 10.
The text was updated successfully, but these errors were encountered: