$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] [boost-newbie] g++ Version 3 (MinGW) and compiling boost
From: Robert Hartmann (Robert_Hartmann_at_[hidden])
Date: 2011-09-23 16:08:23
Hi there,
does anyone could say me how can I
compile Boost.Filesystem with MinGW:
Is something wrong with my b2-call see below,
or is my project-config.jam buggy?
=========================
import option ;
using gcc ;
using python
      : 2.7 # version
      : E:/Programme/Python27 # cmd-or-prefix
      : E:/Programme/Python27/include # includes
      : E:/Programme/Python27/libs # libraries
;
using mpi : :
     <find-static-library>mpi
     <library-path>"E:/Programme/MPICH2/lib"
     <include>"E:/Programme/MPICH2/include"
   :
     "\"E:\\Programme\\MPICH2\\bin\\mpiexec\""
;
option.set keep-going : false ;
==========================
g++ (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I got as error message for Boost.Filesystem:
./boost/filesystem/v3/config.hpp:49:5: #error Configuration not 
supported: Boost.Filesystem V3 and later requires std::wstring support
That means Boost.Filesystem V2 should work?
Can I compile it without other boost things?
I run
set BUILDPATH=G:/Downloads/Libraries/boost_1_47_0/ownbuild
set INSTALLPATH=G:/Downloads/Libraries/boost_1_47_0/distrib
b2 --prefix=%INSTALLPATH%/libs/boost-1.47.0/distrib ^
    --toolset=gcc ^
    --build-dir=%BUILDPATH% ^
    --layout=versioned ^
    --variant=debug,release ^
    --runtime-link=static ^
    --link=shared,static ^
    --threading=multi ^
    --without-mpi ^
    --without-python stage >build.log 2>&1
And in build.log I found many errors after waiting some Minutes:
...failed updating 26 targets...
...skipped 30 targets...
...updated 842 targets...
If I doesn't use the options --without-mpi --without-python
than about 30 seconds later I got this output in build.log:
======================
G:/Downloads/Libraries/boost_1_47_0/tools/build/v2/build\virtual-target.jam:1079: 
in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pstage\lib>mpi.pyd
error: previous virtual target { 
common%common.copy-mpi.pyd.PYTHON_EXTENSION { 
gcc%gcc.link.dll-mpi.pyd.PYTHON_EXTENSION { 
gcc%gcc.compile.c++-python\collectives.o.OBJ { 
python/collectives.cpp.CPP } } {
[...]
error: created from ./stage-proper
error: added properties: <debug-symbols>off <define>NDEBUG 
<inlining>full <library>object(file-target)@4418 
<library>object(file-target)@4420 <library>object(file-target)@4488 
<library>object(file-target)@4490 <library>object(file-target)@4602 
<library>object(file-target)@4604 <library>object(file-target)@4617 
<library>object(file-target)@4619 
<library>object(searched-lib-target)@4507 <optimization>speed 
<runtime-debugging>off <variant>release 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/mpi/build/gcc-mingw-3.4.2/release/threading-multi 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/python/build/gcc-mingw-3.4.2/release/threading-multi 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/serialization/build/gcc-mingw-3.4.2/release/threading-multi
error: removed properties: <debug-symbols>on <inlining>off 
<library>object(file-target)@2472 <library>object(file-target)@2474 
<library>object(file-target)@2542 <library>object(file-target)@2544 
<library>object(file-target)@2656 <library>object(file-target)@2658 
<library>object(file-target)@2671 <library>object(file-target)@2673 
<library>object(searched-lib-target)@2561 <optimization>off 
<runtime-debugging>on <variant>debug 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/mpi/build/gcc-mingw-3.4.2/debug/threading-multi 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/python/build/gcc-mingw-3.4.2/debug/threading-multi 
<xdll-path>/G:/Downloads/Libraries/boost_1_47_0/ownbuild/boost/bin.v2/libs/serialization/build/gcc-mingw-3.4.2/debug/threading-multi
G:/Downloads/Libraries/boost_1_47_0/tools/build/v2/build\virtual-target.jam:490: 
in actualize-no-scanner from module object(file-target)@5073
G:/Downloads/Libraries/boost_1_47_0/tools/build/v2/build\virtual-target.jam:135: 
in object(file-target)@5073.actualize from module object(file-target)@5073
G:/Downloads/Libraries/boost_1_47_0/tools/build/v2\build-system.jam:749: 
in load from module build-system
G:\Downloads\Libraries\boost_1_47_0\tools\build\v2/kernel\modules.jam:283: 
in import from module modules
G:\Downloads\Libraries\boost_1_47_0\tools\build\v2\kernel\bootstrap.jam:142: 
in boost-build from module
G:\Downloads\Libraries\boost_1_47_0\boost-build.jam:17: in module scope 
from module
==============================
Please, can any one help me?
Best regards,
Robert