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>
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 = { OPATH': ['src'], ONOUTDIR' : '', # set to None to not generate python UTFLAGS' : '', OUTFLAGS' : "dllexport_ decl=PROTOCONFI G_EXPORT: " 'proto/ *.proto' ) env.Protoc( [], proto_source, **proto_args)
for proto_source in proto_sources] extend( proto_objects)
'PROTOCPROT
'PROTOCPYTH
'PROTOCOUTDIR': build.build_dir,
'PROTOCCPPO
#'PROTOCCPP
}
proto_sources = SCons.Glob(
proto_objects = [build.
sources.
Otherwise, it worked perfectly for me, thanks!
RJ
2012/4/15 Daniel Schürmann <email address hidden>
> here it is ... lucid.patch" /bugs.launchpad .net/mixxx/ +bug/982493/ +attachment/ 3073492/ +files/ protobufc_ lucid.patch /bugs.launchpad .net/bugs/ 982493 /bugs.launchpad .net/mixxx/ +bug/982493/ +subscriptions
> Its only tested on Ubuntu Lucid.
>
> ** Patch added: "protobufc_
>
> https:/
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https:/
>
> Title:
> Cannot build lp:mixxx #3014 "protobuf" with Ubuntu Lucid
>
> To manage notifications about this bug go to:
> https:/
>