Skip to content
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

Generating php classes script error #20

Closed
acwind opened this issue Sep 25, 2012 · 2 comments
Closed

Generating php classes script error #20

acwind opened this issue Sep 25, 2012 · 2 comments

Comments

@acwind
Copy link

acwind commented Sep 25, 2012

When Generating PHP classes, it report error:

File does not reside within any path specified using --proto_path (or -I). You must specify a --proto_path which encompasses this file. Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).

ERROR: protoc exited with an error (1) when executed with:
protoc
--plugin=protoc-gen-php='/Users/myproject/libs/Protobuf-PHP/protoc-gen-php.php'
--proto_path='/myproject/libs/Protobuf-PHP/library/DrSlump/Protobuf/Compiler/protos'
--php_out=':./'
'/myproject/test.proto'

@acwind acwind closed this as completed Sep 25, 2012
@acwind
Copy link
Author

acwind commented Sep 25, 2012

forget import "php.proto"

@nalagg
Copy link

nalagg commented Sep 28, 2012

im getting the same error, what do you mean forget import "php.proto"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants