Giter Club home page Giter Club logo

Comments (5)

drslump avatar drslump commented on August 30, 2024 2

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.

nabeelio avatar nabeelio commented on August 30, 2024

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.

nalagg avatar nalagg commented on August 30, 2024

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.

cmzz avatar cmzz commented on August 30, 2024

Thanks. Its help for me.

from protobuf-php.

yangyf1990 avatar yangyf1990 commented on August 30, 2024

@cmzz how do you solve it ?

from protobuf-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.