Cannot compile admission_control.proto

I am trying to integrate with LIbra in order to build a client.

When compliing admission_control.proto it fails with error messages as it cannot locate referenced .proto files…also on searching the repo they are not there e.g. transaction.proto

If there is a better way to build a client to post txns would appreciate a steer / steps…thanks !

Errors:

protoc -I=. --java_out=. admission_control.proto

get_with_proof.proto: File not found.

transaction.proto: File not found.

proof.proto: File not found.

ledger_info.proto: File not found.

vm_errors.proto: File not found.

mempool_status.proto: File not found.

admission_control.proto: Import “get_with_proof.proto” was not found or had errors.

admission_control.proto: Import “transaction.proto” was not found or had errors.

admission_control.proto: Import “proof.proto” was not found or had errors.

admission_control.proto: Import “ledger_info.proto” was not found or had errors.

admission_control.proto: Import “vm_errors.proto” was not found or had errors.

admission_control.proto: Import “mempool_status.proto” was not found or had errors.

admission_control.proto:21:3: “types.SignedTransaction” is not defined.

admission_control.proto:51:5: “types.VMStatus” is not defined.

admission_control.proto:53:5: “mempool.MempoolAddTransactionStatus” is not defined.

admission_control.proto:74:7: “types.UpdateToLatestLedgerRequest” is not defined.

admission_control.proto:75:16: “types.UpdateToLatestLedgerResponse” is not defined.

1 Like

trying add argument -I=src/proto

@Fremen, many of the files you reference are located in types/src/proto, so you would need to include those also