Comment 3 for bug 982493

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 982493] Re: Cannot build lp:mixxx #3014 "protobuf" with Ubuntu Lucid

Is there a reason you added protobuf to the dependencies in addition to
protobuf-lite? The protobuf library is something like 12MB which is a lot
to bloat our packages while protobuf-lite is nice and small (500kb-1MB).

Since we're likely to add more proto files in the future this might be a
better way to do the object generation:

proto_args = {
    'PROTOCPROTOPATH': ['src'],
    'PROTOCPYTHONOUTDIR': '', # set to None to not generate python
    'PROTOCOUTDIR': build.build_dir,
    'PROTOCCPPOUTFLAGS': '',
    #'PROTOCCPPOUTFLAGS': "dllexport_decl=PROTOCONFIG_EXPORT:"
}
proto_sources = SCons.Glob('proto/*.proto')
proto_objects = [build.env.Protoc([], proto_source, **proto_args)
                 for proto_source in proto_sources]
sources.extend(proto_objects)

Otherwise, it worked perfectly for me, thanks!
RJ

2012/4/15 Daniel Schürmann <email address hidden>

> here it is ...
> Its only tested on Ubuntu Lucid.
>
> ** Patch added: "protobufc_lucid.patch"
>
> https://bugs.launchpad.net/mixxx/+bug/982493/+attachment/3073492/+files/protobufc_lucid.patch
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/982493
>
> Title:
> Cannot build lp:mixxx #3014 "protobuf" with Ubuntu Lucid
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/982493/+subscriptions
>