Skip to content

Build fails on Windows 8.1....missing yara.h file.  #21

Open

Description

@GShepherdTC

Trying to build yara-java on Windows 8.1/64 bit. Per the readme.md file, I installed the Windows 7 SDK (which went fine) and then when building, I get the following. I must be missing something as I don't see a yara.h file anywhere. You can I use Netbeans. I also just tried it directly in a command window running:

vcbuild /platform:x64 vs2008.vcproj release

And got the same set of errors:

Compiling...
yara-wrapper_structs.c
c:\users\gshepherd\documents\netbeansprojects\yara-java\target\native-build\src\yara-wrapper.h(4) : fatal error C1083: Cannot open include file: 'yara.h': No such file or directory
yara-wrapper.c
c:\users\gshepherd\documents\netbeansprojects\yara-java\target\native-build\src\yara-wrapper.h(4) : fatal error C1083: Cannot open include file: 'yara.h': No such file or directory
Build log was saved at "file://c:\Users\gshepherd\Documents\NetBeansProjects\yara-java\target\native-build\target\x64-release\obj\BuildLog.htm"
yara-wrapper - 2 error(s), 0 warning(s)

What am I missing?

Activity

  1. GShepherdTC commented on Mar 22, 2017

    @GShepherdTC
    Author

    So...I see my issue is the same as the other issue open for this project. What I did to get pass it though do an initial "mvn clean install", let it fail. Then copy the files in:
    \yara\libyara\include
    to the directory:
    yara-java\api\target\native-build\src\windows
    As I see defined in the vc2008.vsproj file for the AdditionalIncludeDirectories:
    (ProjectDir)\src\windows
    and then run "mvn install" it gets farther. I get an actual C code issue:
    \yara-java\target\native-build\src\windows\stdint.h(89) : error C2371: 'int64_t' : redefinition; different basic types
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\wchar.h(479) : see declaration of 'int64_t'
    Which is complaining about the typedef for int64_t. Not sure I want to go down that road to figure that out. Any help would be appreciated.

  2. GShepherdTC commented on Mar 22, 2017

    @GShepherdTC
    Author

    More info, I did try https://github.com/siddharthTyagi/yara-java forked version. Used Master and had to apply the same fix (i.e. copy of those files) and then ran into the same typedef issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions