Compiled class form .proto file

13 views
Skip to first unread message

Rytis Alekna

unread,
May 24, 2010, 2:27:59 AM5/24/10
to protobuf-ac...@googlegroups.com
Hello, Philippe and everyone else!

I have found this project to be very useful for me but I have some issues:

1. As someone has mentioned before - it's very hard to compile the
compiler. My colleague (C and C++ coder) still doesn't succeed, And
not only for Windows but also for Linux. Would it be possible to get a
compiled binary or clear instruction on how to compile it?

2. Would it be possible to get a compiled example .as class from
.proto files that is in "examples" folder. So I would be able to make
classes with hands :)

3. Idea for future - maybe it would be possible to compile a compiler
with Alchemy into .swc.

4. Other idea for the future - to write this compiler in Actionscript
3.0, so this project would be much easier to develop for other
Actionscript coders :)

More about the 4th question: how did you start writing this compiler?
Did you take a compiler for another language or you wrote it from
scratch?

Thanks a lot!

Regards,
Rytis.

Rytis Alekna

unread,
May 24, 2010, 2:53:49 AM5/24/10
to protobuf-ac...@googlegroups.com
More about the compiling issue:

libtool: link: ( cd ".libs" && rm -f "libprotoc.la" && ln -s
"../libprotoc.la" "libprotoc.la" )
/bin/bash ../libtool --tag=CXX --mode=link g++ -pthread -Wall
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG
-pthread -o protoc main.o libprotobuf.la libprotoc.la -lz
libtool: link: g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual
-Wno-sign-compare -O2 -g -DNDEBUG -pthread -o .libs/protoc main.o
./.libs/libprotobuf.so ./.libs/libprotoc.so -lz -pthread
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Communicate(google::protobuf::Message
const&, google::protobuf::Message*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::~Subprocess()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::_default_parameter_'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::Write(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Start(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
google::protobuf::compiler::Subprocess::SearchMode)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::ZipWriter(google::protobuf::io::ZeroCopyOutputStream*)'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorResponse::CodeGeneratorResponse()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::Subprocess::Subprocess()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::CodeGeneratorRequest()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorRequest::~CodeGeneratorRequest()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::WriteDirectory()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::CodeGeneratorResponse::~CodeGeneratorResponse()'
./.libs/libprotoc.so: undefined reference to
`google::protobuf::compiler::ZipWriter::~ZipWriter()'
Reply all
Reply to author
Forward
0 new messages