Yeah, those "build_foo.bash" scripts (referenced in your gist) are meant
primarily for our CI, so by default they install in a local area that may get
you cmake warnings and also would not be in a location found at runtime on your
system, and they are not copied to the OIIO install itself. But I think all of
these scripts let you override the install location with a
<PACKAGENAME>_INSTALL_DIR environment variable.
Choose a location to install all these package (for this example, let's say
/usr/local, but that may not be a suitable place for you -- it needs to be
someplace you are comfortable installing a bunch of things and maybe want to
delete later). Try this:
OPENCOLORIO_INSTALL_DIR=/usr/local src/build-scripts/build_opencolorio.bash
OPENEXR_INSTALL_DIR=/usr/local src/build-scripts/build_openexr.bash
....
Then when you build OIIO, you want to make sure that CMAKE_PREFIX_PATH includes
that area where you are installing everything (/usr/local, in our example
above). And when you run, you want /usr/local/lib in your LD_LIBRARY_PATH so
the libraries are found.
> On Dec 23, 2020, at 7:45 AM, Fabian Geisler
> <[email protected]> wrote:
>
> Hello everyone!
>
> I am currently trying to compile OIIO for CentOS 7, since the only
> installable version (1.5.x) is giving us a lot of trouble.
>
> My minimum goal is OIIO with OCIO, LibRaw, Freetype, pybind and the command
> line tools. Although while I am at it, I will try to grab as much additional
> goodies as I can. ;)
>
> I tried to use vcpkg and homebrew, but I am running into dead ends where
> debugging is getting super hard (if not impossible for me).
>
> So I am trying to compile it the hard way and capturing all install commands
> along the way in THIS GIST
> <https://gist.github.com/fabiangeisler/3d45cbc88e5095064757b9223e987252>. (If
> this is of any help for the main repository, feel free to steal. :) )
>
> Currently I am having the following issues:
>
> - if I run "make config" I am getting this error:
>
> [...]
> Target "OpenImageIO_Util" INTERFACE_INCLUDE_DIRECTORIES property contains
> path:
>
> "/home/fabian.geisler/oiio/dist/include"
>
> which is prefixed in the source directory
> [...]
>
> - The overall build succeeds, but when I lauch oiiotool it seems that the
> previously compiled extra libraries (like ocio, etc.) are not copied over to
> the dist folder. I don't know if that is intended or not. I can manually copy
> them over and then everything works. This might be related to the previous
> error.
>
> If anybody has some hints/ideas or wants to jump on this task as well, I am
> forever grateful!
>
> Cheers,
> Fabian
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org