-
Notifications
You must be signed in to change notification settings - Fork 25
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 fails on 64-bit Windows at hawtjni-plugin #13
Comments
By default the yara-java build process will look for the libyara source and libraries in the parent directory of yara-java. You can modify src/main/native-package/m4/custom.m4 if you have libyara somewhere else. |
Alternatively, you could try building from some unmerged tara isolation changes in my forked version. |
Both vcbuild and msbuild have a command line option/property "useenv" which allows you to specify additional include and lib folders but looking a hawtjni's code (what yara-java uses for native build) is not set. One thing you can try is build yara for windows following their instructions, build yara-java (mvn clean build) then modify the visual studio project from yara-java/target/native-build with your additional include/lib and build again (without a clean). Since most of the problems people are running into seem build related in the future I will look at providing prebuilt packages. Thanks. |
Did any of the above suggestions work ? |
@p8a I have got the same problem on building libyara through the maven install. |
Hello, I have got the same problem when building the maven. |
Hello, I have got the same problem when building the maven. |
Merged these changes but still encountering an issue with mvn 3.8.7:
|
update-hawtjni-add-yara-home.patch.gz I have added a patch that adds support for YARA_HOME (per @siddharthTyagi 's fork) and also updates the version and plugin references to HawtJNI. Unfortunately, it still fails with a non descriptive error, but it;s a step in the right direction. |
I'm building yara-java on a 64-bit Windows 7 machine. Following the instructions on the main Github page, I get stuck at "mvn clean install":
I essentially understand the "No such file or directory" errors - it can't locate the rest of the YARA C++ files it needs to build the wrapper project - but I'm not sure what to try debugging from here. It just looks like some of the C++ source files aren't getting copied, or maybe the yara-wrapper header can't locate the source files in their original locations.
I'm not an expert with Maven or C++ compilers, but I noticed that there's no profile in the pom file for Windows... does this need to be added?
Let me know if I can provide any additional information.
The text was updated successfully, but these errors were encountered: