-
Notifications
You must be signed in to change notification settings - Fork 12
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
Failing on Windows #5
Comments
Thanks for your message. I think the issue reported in #4 for Mac OS probably has the same root cause. I'll look into it. |
@rado-straka Could you try the example in |
|
As far as I see, there are two problems:
The error message from mvn package posted in the first message only shows that no c++ compiler (cl.exe) can be found during the build. When I run mvn package in the Visual C++ command prompt (both, x86 and x64), the c++ compiler runs, but linking fails:
Comparing the result with vinhkhuc's code base, I see that the
|
@lama0206 thank you very much for your investigation! I am trying to add the binaries for Mac OS and Windows. |
@carschno, sorry for not following up on this.
I'd like to disagree - the error message came from cl during its compile run... (I used MS's developer tools, not the full-blown Visual Studio.) If I run cl directly, the compilation fails with the same error. In the meantime, I was able to build on Windows by changing the call to cl.exe and running it outside the maven build. I changed one parameter in the call to cl: I use /MT (whereas maven uses /MD). Bundling the generated DLLs works fine. This is neither elegant nor a working solution for an (automatic) build on Windows, but it works for me since I now have a JAR with all native libs included. (The MacOs build runs fine for me.) So you could either close this bug (as you've removed the claim from the readme) and create a new one for "Build failing on Windows" - or just keep this one open. :) Some day, we'll figure this one out. Best |
On Win10 64, usage failed. Downstream vinhkhuc/JFastText works as expected. I did not tried on Linux yet.
Usage failure on line
final JFastText jft = new JFastText();
:java.lang.UnsatisfiedLinkError: no jniFastTextWrapper in java.library.path
Also build failure which is the happening with vinhkhuc/JFastText too, but could help to explain what is happening here:
The text was updated successfully, but these errors were encountered: