← Back to team overview

dolfin team mailing list archive

Re: scons building with BOOST

 

I got it working. Thanks! I was making the install too complicated before.

- Shawn

On Thu, 25 Jun 2009, Johannes Ring wrote:

On Thu, June 25, 2009 15:01, Shawn Walker wrote:
It just says unable to find the location of BOOST, consider setting the
BOOST_DIR variable.  I assume that means set the withBoostDir=$BOOST_DIR
when doing "scons configure".

Could you send me your directory structure for boost?  Perhaps I just
installed it incorrectly.  Also tell what your BOOST_DIR is, please.

I ran bjam with the --prefix=$PWD/local option such that a new directory
'local' was created by Boost under the Boost source folder. After bjam
finished the 'local' folder then contains the 'include' and 'lib' folders:

johannr@simula-x61:boost_1_39_0$ pwd
/home/johannr/src/boost_1_39_0
johannr@simula-x61:boost_1_39_0$ ls local/
include  lib
johannr@simula-x61:boost_1_39_0$ ls local/include/
boost
johannr@simula-x61:boost_1_39_0$ ls local/lib/
libboost_filesystem.so         libboost_program_options.so.1.39.0
libboost_filesystem.so.1.39.0  libboost_system.so
libboost_program_options.so    libboost_system.so.1.39.0
johannr@simula-x61:boost_1_39_0$

withBoostDir is then set to the same folder that I used for the --prefix
option when running bjam, that is

 scons configure withBoostDir=/home/johannr/src/boost_1_39_0/local

Hope this helps,

Johannes

- Shawn

On Thu, 25 Jun 2009, Johannes Ring wrote:

Hi Shawn,

The file scons/simula_scons.log should give you some hints about what
went
wrong when generating the Boost pkg-config files. You can also try to
run
the pkg-config generators directly and see what happens. First set the
BOOST_DIR variable and then run

 python
scons/simula-scons/simula_scons/pkgconfiggenerators/boost_filesystem.py

What is the output of this command? It should generate a file
boost_filesystem.pc in the current directory if successful. Also try to
run boost.py and boost_program_options.py in the same folder. There is
no
need to create symbolic links when using the --layout=system option.

Johannes

On Wed, June 24, 2009 21:31, Shawn Walker wrote:
ok, I know this has been beat to death, but I seem to be having
problems
generating the boost.pc files with scons.  I have installed the latest
boost 1.39.0 (which uses bjam).  I also set the --layout=system option
that Ring had suggested.  But when I run scons configure with the
correct
boost directory, it fails to generate the boost.pc file.

The last time I had this problem I had to make symbolic links so that
scons could find it.  But I don't need to now because the filenames are
already generic.

- Shawn
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev










References