Issue 673 in protobuf: protoc: can't control output directory
<protobuf <at> googlecode.com>
2014-10-18 19:17:39 GMT
Owner: liujisi <at> google.com
Labels: Type-Defect Priority-Medium
New issue 673 by weegreen... <at> gmail.com: protoc: can't control output
I am working on integrating the protoc compiler to my build system, however
I'm finding it difficult to control where the output files are saved.
What steps will reproduce the problem?
1. unzip project
2. change directories
$ cd protobuf_bug
3. execute expected use case:
$ protoc --cpp_out=src/audacity/messages/pb
4. observe output files not placed in specified output directory:
$ find .
5. clean up the mess
$ rm -rf src/audacity/messages/pb/src
6. execute next expected use case:
$ protoc --cpp_out=. src/audacity/messages/pb/Type.proto
7. observe correct output:
$ find .
What is the expected output? What do you see instead?
I expect the generated files to be placed in the directory specified,
instead funny path manipulation is occurring.
What version of the product are you using? On what operating system?
$ protoc --version
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Please provide any additional information below.
Please add some option to explicitly place the generated files to
specified location, similar to how gcc -o works, as protoc is advertised as
The location where protoc places output files isn't explained in the
documentation, if the default is to always place the output files next to
the .proto file, then there should be a set of --cpp, --python, --java
switches which does this, rather some --XXX_out=DIR switch.
protobuf_buf.zip 1.2 KB
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.