google / binexport

Export disassemblies into Protocol Buffers
Apache License 2.0
1.03k stars 197 forks source link

Build failed while building BinExport plugin for Ghidra #44

Closed r0ny123 closed 4 years ago

r0ny123 commented 4 years ago

Tried to build the plugin but got the following error:

> Task :generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateProto'.
> protoc: stdout: . stderr: [libprotobuf WARNING T:\src\github\protobuf\src\google\protobuf\compiler\parser.cc:646] No syntax specified for the proto file: binexport2.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
  binexport2.proto:1:1: Expected top-level statement (e.g. "message").

More info on this error : here

cblichmann commented 4 years ago

That's odd, I was just able to build the current version via Gradle on Linux. Judging by the error message, the link in java/BinExport/src/main/proto/binexport2.proto does not work on Windows.

Can you try and copy this the binexport2.proto directly into that directory?

r0ny123 commented 4 years ago

Thanks! It worked. Seemed it couldn't able to follow the sym link.