Open leo-on-hill opened 9 years ago
PROTOBUF_VERSION=2.6.1
Could you please update the build script as well?
hi, is it also possible to compile against v3 of protobuf with this fix?
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
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 ?
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)
fixed: The invalid import of PluginProtos caused compile errors