I use Boost 1.70 on my Mac (via Homebrew, so it's in /usr/local), and as a matter of fact I just tested building against Boost 1.70 on Linux at work this week. So I know it works.
Under ordinary circumstances, you shouldn't have to set those things individually that you mention below. It *ought* to be enough to -DBOOST_ROOT=$PREFIX If things are laid out strangely underneath the prefix, though, you may want to use -DBOOST_INCLUDEDIR=/custom/include/dir -DBOOST_LIBRARYDIR=/custom/lib/dir If that doesn't work, can you show us the resulting CMakeCache.txt and exactly what errors it prints? Which version of OIIO are you building? Do you still have the problem with master? > On Jul 11, 2019, at 7:03 PM, Jim Hourihan <[email protected]> wrote: > > > Hi All, I’m having some weird interaction between OIIO and boost’s cmake > package files. I have a prefix area (let’s call it /prefix/area) which I > install all of OIIO’s dependencies into including boost 1.70.0. > > Boost creates files and dirs in /prefix/area/lib/cmake. When I point OIIO at > the prefix area for building and let it find boost by itself it does, but > then fails in OIIO’s externalpackages.cmake line 121. That line is attempting > to dereference the variable Boost_INCLUDE_DIRS which is set to nothing. The > weird thing is that find_packages() does successfully say it found boost. I > assume something has changed in 1.70.0 with how they’re writing the cmake > files but my cmake-fu is very poor. > > To get around it I’m passing the Boost_* variables directly to cmake since > externalpackages.cmake mercifully allows that as an option. > > My questions are: > > Any issues with using 1.70.0 or does everybody still use 1.53? > > What are the expected values of the Boost_* variables? I’m passing: > > -DBoost_VERSION=1.70.0 > -DBoost_LIBRARIES='boost_filesystem;boost_system;boost_thread’ > -DBoost_INCLUDE_DIRS=$PREFIX/include > -DBoost_LIBRARY_DIRS=$PREFIX/lib > > What should BOOST_ROOT be set to? Seems like OIIO doesn’t care if it’s set. > > Thanks! > > -Jim > > > > _______________________________________________ > 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
