Need help with bundled lib issue for OpenColorIO

Jon Ciesla limb at jcomserv.net
Thu Nov 17 14:55:21 UTC 2011


> I'm working on packaging OpenColorIO for Fedora and ran into an issue
> with bundled libraries.
>
> The project is currently statically compiling in yaml-cpp, tinyxml,
> and lcms. Upstream doesn't have a problem with unbundling lcms, but is
> not sure about the other two, here's his explination:
>
> hmmm.... some of the things in ext are not exposed in the public OCIO
> API; and not being a build expert I'd prefer to not expose additional
> runtime library dependencies. (tinyxml + yamlcpp, for example).
>
> With your implementation, on a fedora build that had one of these
> libraries installed, would you link to the xml / yaml so(s), or would
> it use the .a statically at build time? I'd hate to have the
> dependancies in the core library change depending on build options.
> What if I pulled in these two libraries into 'core' as source files?
> (it used to be this way, actually). I'm fine with picking up lcms, etc
> externally. But i'd like core to be self-contained...
> ---
>
> Are there technical reasons these libraries can not be unbundled?

Only if he's significantly modifying the bundled libs and upstream won't
take the changes.  If you unbundle and build against the system versions,
and it works, that's what you need to do.  Always link dynamically if at
all possible.

-J

> Thanks,
> Richard
> --
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
>


-- 
in your fear, seek only peace
in your fear, seek only love

-d. bowie



More information about the devel mailing list