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
failing to compile on Windows OS: "Missing output directives." #270
Comments
javanano is only available from v3.0.0-alpha-2. You can download its sources here: https://github.com/google/protobuf/releases |
@xfxyjwf I still fail to compile (getting the same message), using the same command. I've tried running the command on all possible files: I've used the latest compiler: Can you please provide a step by step explanation? |
Is that a single dash in the option, i.e., |
@cfallin Can you please point me to the correct file? so that we could continue in the right direction? |
As @xfxyjwf said above, you need 3.0.0-alpha-2. The windows compiler binary should be fine, unless I'm mistaken. Basically, I'm just pointing out a typo (two dashes instead of one). |
@cfallin But which file? I've found 3 possible candidates... |
Use this to get Do exactly the same thing you did before, except for these changes we have suggested: (i) use 3.0.0-alpha-2 instead of the old version you had, and (ii) fix the dash typo. |
@cfallin I meant, which file should I download and perform the compilation command on? What you've provided is the compiler. For Android, which of those should I work on:
Anyway, I've tried doing it for each of those files, and now I get this error for all of them:
So I created a folder ".../protos/backup.proto" , and then I got this error (again, for all of those files):
I used this command this time:
|
I'm afraid I don't understand what you're trying to do. It doesn't make sense to "perform the [protoc] compilation command" on the Protocol Buffers source code distribution. If you had literally invoked Other parts of your last message also don't make sense. Why do you create a folder with the name Could you explain from first principles what you are trying to do? |
Please read the first post. I don't perform the command on zipped file. I do it on the extracted one, as the instructions say. I've tried now to run the command on the cloned "Launcher3" project, and this is what I got:
|
OK, making progress. It seems you've been able to invoke Do you see the output files in the output directory you specified? If so, protoc is working correctly (and any further issues should go to this "Launcher3" project). If not, let us know and we'll diagnose further. |
I assume the input is the "protos/backup.proto" file, and the output is inside the "src" folder, but all I can see there is a single file : "...src\com\android\launcher3\backup\BackupProtos.java" . Shouldn't there be more files? Or at least a jar file? |
The It sounds like everything is working as intended. Please let us know if there are any other issues. |
After downloading "protobuf-java-3.0.0-alpha-2.zip" from here: I got all source code errors figured out, so I think you've solved everything. Thank you. |
How can i use this: |
@yuchuangu85 see: This tutorial talks about Java but it's mostly the same for javanano regarding how to compile proto files. |
@xfxyjwf : |
I've downloaded those files:
Protocol Buffers 2.6.1 full source: https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
Protocol Compiler 2.6.1 binary for windows: https://github.com/google/protobuf/releases/download/v2.6.1/protoc-2.6.1-win32.zip
from here:
https://developers.google.com/protocol-buffers/docs/downloads
Then, I've decompressed them to the same folder, and created a folder "protos" within, and I called this command to compile:
(as this website said : https://plus.google.com/+fabiolobrutto/posts/KJeyKMBHVT7 ).
But I get this error:
What should I do?
I just want to create a launcher, based on on the updated launcher3 app (lollipop).
The text was updated successfully, but these errors were encountered: