[Bf-committers] Fedora openCOLLADA cmake fix

Richard Shaw hobbes1069 at gmail.com
Wed Aug 24 20:56:44 CEST 2011

On Wed, Aug 24, 2011 at 1:41 PM, Campbell Barton <ideasman42 at gmail.com> wrote:
> @Richard
> Just committed and an update to CMake / Collada so collada can be
> found on ubuntu which uses paths, interested to know if this works now
> on fedora.
> eg ubuntu paths...
> /usr/ include/opencollada/COLLADABaseUtils/COLLADABUUtils.h
> /usr/ lib/opencollada/libOpenCOLLADABaseUtils.a

Well we're (Fedora) is patching the cmake file to build shared
libraries. Also, Fedora/Redhat/(and openSUSE I think) handle multilib
with /lib and /lib64 as separate directories unlike Debian/Ubuntu that
dumps everything in /lib and symlinks to /lib64.

As long as it's pretty easy to override with cmake options or patch
it's not a big deal.

> As well as default paths when building with OpenCollada with cmake on
> linux (my own setup).
> Where /opt/opencollada is the root path,
> OPENCOLLADA_ROOT_DIR=/opt/opencollada in CMake's cache.
> /opt/opencollada/ lib/libOpenCOLLADABaseUtils.a
> /opt/opencollada/ COLLADABaseUtils/include/COLLADABUUtils.h

Since we're manually installing everything we decided to go with just
/usr/include/<collada lib name> without putting everything under an
"opencollada" parent subdirectory.

Also we do build UTF libftoa libBuffer statically into their parent
library since their names are far to generic to dump into /usr/lib.


More information about the Bf-committers mailing list