POV-Ray : Newsgroups : povray.unix : Boost library error : Re: Boost library error Server Time
19 Sep 2021 16:05:35 EDT (-0400)
  Re: Boost library error  
From: William F Pokorny
Date: 12 Jan 2019 13:22:06
Message: <5c3a304e$1@news.povray.org>
On 1/11/19 7:22 PM, DanielM wrote:
> Hi everyone,
> 
> I have been trying to install povray for a while now on the stampede2 cluster
> (TACC) and I keep getting the following error:
> 
> configure: error: We could not detect the boost libraries (version 1.37 or
> higher). If you have a staged boost library (still not installed) please specify
> $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.
> If you are sure you have boost installed, then check your version number looking
> in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
> 
> BOOST is by default installed on the stampede2 cluster however povray does not
> detect it.

POV-Ray leans on autotools' automake/autoconf m4 scripts to determine 
the header and library locations. These scripts sometimes don't work 
with new-ish or non-standard hardware/software set ups. This would be my 
first guess as to what's wrong here.

> 
> I have installed boost locally several times with several versions and still get
> the same error. I have linked it, set it in my environment like it asks me too
> and it gives the same error. I saw this was posted before with some sort of
> solution (a very vague solution) and nothing has worked. I see many people with
> this same error.
> 
> 
> Any help would be greatly appreciated!
> 
> Thank you all,
> 
> Daniel M
> 

Supposing the latest 3.7 patch or 3.8(1) code.

Then, if you know where your system's boost headers and libraries are 
located, you should be able to use --with-boost and --with-boost-libdir 
to point to them, respectively. Though on my Ubuntu 18.04 machine the 
header and library locations are automatically detected, such explicit 
header/library settings are:

./configure COMPILED_BY="wfp" --with-boost=/usr 
--with-boost-libdir=/usr/lib/x86_64-linux-gnu

The automake boost M4 scripts will expand the argument to the first flag 
to expect /usr/include/boost/* for the headers and 
/usr/lib/x86_64-linux-gnu/libboost* for the .so and .a libraries with 
the second. Here (*) a wildcard char as might be used with the ls command.

I recommend pointing to whatever boost is already installed on your 
system as it might well have patches/settings for an exotic machine such 
as yours. Further, boost is made of many components of which POV-Ray 
needs three. See <pov code dir>/unix/README.md for the boost  component 
library list. Note. There are corrections to this file in the 3.8 branch 
over what 3.7 releases have though the listed boost components are the 
same.

The BOOST_ROOT stuff has to do with some staging convention about which 
I know nothing - don't set it unless you do.

And... If you get POV-Ray going on this machine, I think many of us 
would be very interested in results! :-)

Bill P.

(1): With the latter stay away from the most recent development release 
(Jan 11 alpha.10008988+av637) as it has a somewhat serious parser bug. 
Use the previous development release or a later fixed one when it 
becomes available.


Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.