Comments (5)
Google's protoc compiler complains that it can't resolve where the MsgMgtPing.proto
from its list of include paths. Try adding --proto_path=.
to add the current directory as include path. If using protoc-gen-php
, try with protoc-gen-php -o ./php -i . MsgMgtPing.proto
from protobuf-php.
Cleaning this up also gives the same message:
$ protoc --plugin=protoc-gen-php='/usr/bin/protoc-gen-php' \
--proto_path='/usr/share/php/DrSlump/Protobuf/Compiler/protos' \
--php_out='./php' MsgMgtPing.proto
/opt/.../.../message/MsgMgtPing.proto: 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).
Same if I use an absolute path to the .proto file, as well as include an additional proto_path=
containing the path to the file
from protobuf-php.
im getting:
PHP Warning: Module 'dom' already loaded in Unknown on line 0
Protobuf-PHP 0.9.4 by Ivan -DrSlump- Montes
PHP Warning: Module 'dom' already loaded in Unknown on line 0
./php/: No such file or directory
ERROR: protoc exited with an error (1) when executed with:
protoc
--plugin=protoc-gen-php='/usr/bin/protoc-gen-php'
--proto_path='/usr/share/pear/DrSlump/Protobuf/Compiler/protos'
--proto_path='/var/www/path/to/googleProtoBuf'
--php_out=':./php'
'/var/www/path/to/googleProtoBuf/addressbook.proto'
from protobuf-php.
Thanks. Its help for me.
from protobuf-php.
@cmzz how do you solve it ?
from protobuf-php.
Related Issues (20)
- pear.pollinimini.net is down HOT 7
- protoc-gen-php: command not found HOT 4
- getWireType()
- Int64 wrong parsing. HOT 3
- 400 Bad Request when calling Google service
- Again pollinimini.net is down
- Doesn't play well with mbstring plugin with mbstring.func_overload ini set
- You must provide at least 1 argument
- One class per file, PSR-1 Basic Coding Standard
- pear.pollinimini.net down HOT 2
- proto map is not support?
- Incompatible signatures, cannot compile full HOT 1
- Compatible interfaces HOT 1
- could not extract the package.xml file from "Protobuf-1.0.tgz" HOT 2
- Json codec and enum fields
- protoc-gen-php options ignored
- Missing file when running the benchmark
- Message::_set allows potentially unsafe usage
- Add support for standard Timestamp JSON encoding
- pear.pollinimini.net is down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-php.