[Dune] including boost in cake based build system ?

Benedikt Oswald benedikt.oswald at lspr.ch
Thu Apr 17 12:30:47 CEST 2014


Hello Markus and Christoph,

thanks for the quick reply!

I fact, I use 

CMAKE_FLAGS="--enable-experimental-grid-extensions --enable-shared --enable-static -DCMAKE_CXX_FLAGS=\"-O2\" -DBOOST_ROOT=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1\"   -DCMAKE_PREFIX_PATH=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1;$HOME/extlib/alugrid/1.96/openmpi/1.6.5/gcc/4.8.1;$HOME/extlib/metis/5.1.0/gcc/4.8.1;$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1\" " 



## additional flags
##
MAKE_FLAGS="-Wall"
USE_CMAKE="yes"


when I check with ccmake./ in the build directory of my new application, I see this:



BOOST_ROOT                       /Users/oswald/extlib/boost/1.55.0/gcc/4.8.1                                                                                                                                                                                                                                                                       
 BUILD_TESTING                    ON                                                                                                                                                                                                                                                                                                               
 BZRCOMMAND                       BZRCOMMAND-NOTFOUND                                                                                                                                                                                                                                                                                              
 Boost_DIR                        Boost_DIR-NOTFOUND                                                                                                                                                                                                                                                                                               
 Boost_INCLUDE_DIR                /Users/oswald/extlib/boost/1.55.0/gcc/4.8.1/include  


when I try to include something like:

#include <boost/date_time/posix_time/posix_time.hpp>

I assume that it should be visible & found ?

Perhaps I miss a trivial thing.

Greetings, Benedikt






--------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 43 366 90 74
Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch - labor vincit omnia improbus
--------------------------------------------------------------------------------------------------------------------------------------------------------------

On 17 Apr 2014, at 12:10, Markus Blatt <markus at dr-blatt.de> wrote:

> Hi,
> On Thu, Apr 17, 2014 at 11:51:16AM +0200, Benedikt Oswald wrote:
>> Dear Dune
>> 
>> it may be a trivial question, but how & where would I specify the path to Boost
>> when using the cmake based file system in Dune ?
>> 
>> I fact, I use an opts file like:
>> 
>> ========================
>> 
>> CMAKE_FLAGS="--enable-experimental-grid-extensions --enable-shared --enable-static -DCMAKE_CXX_FLAGS=\"-O2\" -DCMAKE_PREFIX_PATH=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1;$HOME/extlib/alugrid/1.52/openmpi/1.6.5/gcc/4.8.1;$HOME/extlib/metis/5.1.0/gcc/4.8.1;$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1\" " 
>> 
> 
> If boost is a non-standard place, then you can use
> -DBOOST_ROOT=/path/to/boost/install in the CMAKE_Flags to specify the
> installation path. We might have missed translating --with-boost to
> CMake syntax, I guess. Did you use --with-boost when using automake?
> 
> Markus
> 
> -- 
> Do you need more support with DUNE or HPC in general? 
> 
> Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
> Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
> Tel.: +49 (0) 160 97590858
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140417/996eee88/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140417/996eee88/attachment.sig>


More information about the Dune mailing list