Atry / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
55 stars 18 forks source link

Update Main.java #49

Open leo-on-hill opened 9 years ago

leo-on-hill commented 9 years ago

fixed: The invalid import of PluginProtos caused compile errors

leo-on-hill commented 9 years ago

PROTOBUF_VERSION=2.6.1

Atry commented 9 years ago

Could you please update the build script as well?

mroohian commented 9 years ago

hi, is it also possible to compile against v3 of protobuf with this fix?

pm-nsimic commented 8 years ago

I get this error when i try to run with 2.6.1 (compilation works):

../protobuf-2.6.1/src/protoc \
    --plugin=protoc-gen-as3=dist/protoc-gen-as3 \
    "--proto_path=../protobuf-2.6.1/src" \
    --as3_out=descriptor.proto.as3 \
    "../protobuf-2.6.1/src/google/protobuf/descriptor.proto"
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/protobuf/Extension
Atry commented 8 years ago

Sorry but I don't understand the purpose of your guys.

Isn't the published binary of this plugin works with protoc 2.6.x ?

johndpope commented 8 years ago

probably best to include a Gemfile with hardcoded protoc version

Gemfile source 'https://rubygems.org' gem "protobuf", "2.6.1"

Ruby Version Manager

curl -sSL https://get.rvm.io | bash 
rvm install ruby-2.2.3 
gem install rvm  (restart terminal)
gem install bundler  
bundle install
bundle exec pod install

then use bundle exec protoc --plugin=protoc-gen-as3=path/to/protoc-gen-as3[.bat]--as3_out=output-path your.proto (which will use older version of protoc)