Boost logo

Boost Users :

Subject: Re: [Boost-users] boost with mingw
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2012-11-03 10:49:56


Am 03.11.2012 um 13:52 schrieb Paul A. Bristow:

>> -----Original Message-----
>> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf
> Of
>> Philipp Kraus
>> Sent: Saturday, November 03, 2012 12:42 PM
>> To: boost-users_at_[hidden]
>> Subject: Re: [Boost-users] boost with mingw
>>
>> On 2012-11-02 19:11:53 +0100, Paul A. Bristow said:
>>>> I try to build Boost with MinGW / MSYS. I have found in the
>>>> dokumentation
>>>> http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.htm
>>>> l that MinGW shell is not supported, but I can build bJam with
>>>> booststrap.sh --toolset=mingw under
>>> the
>>>> shell, but I get the error: mingw.jam: No such file or directory
>>>>
>>>> Can I build boost under MinGW shell or another shell with the MinGW gcc?
>>>
>>> FWIW I built my mingw Boost library collection using a windows .bat
>>> containing
>>>
>>> b2 -a --build-dir=i:/boost-trunk toolset=gcc-4.7.2
>>> --build-type=complete --without-python --without-mpi --without-locale
>>> stage threading=multi > build_gcc_dll_libs_trunk_all_%date%_%tim%.log
>>> 2>&1
>>>
>>> getting the expected lots of files like
>>> libboost_unit_test_framework-mgw47-mt-d-1_52.dll.a in my
>>> boost-trunk/stage/lib folder
>>>
>>> and I can link to Boost.Test library from mingw32 using Ruben's
>>> binaries
>>>
>>> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targettin
>>> g%20Win32\Personal%20Builds/ru
>>>
>>> benvb/
>>> \i686-w64-mingw32-gcc-4.7.2-release-win32_rubenvb.7z
>>>
>>> there are also others like 4.6 and clang - see
>>>
>>> https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetti
>>> ng%20Win32/Personal%20Builds/r
>>>
>>> ubenvb/
>>>
>>> I added this tool chain on NetBeans.
>>>
>>> My user_config.jam contains
>>>
>>> # GCC configuration using the mingw32 version.
>>> using gcc
>>> : 4.7.2
>>> : "c:/mingw32/bin/g++.exe"
>>> ;
>>
>>
>> Do you build b2 with bootstrap.sh? I build it with "bootstrap.sh --with-toolchain=mingw", but if I
> run the b2...
>
> No my b2 command above uses toolset=gcc-4.7.2, so it doesn't mention the toolchain. How it worked
> producing DLLs with mgw47 in the name, I don't understand, but it might get you going until you get
> understand more fully.
>
>> The b2 compiler is build without any problems and works, but I can't build the boost libs.
>> Should I setup any user-config for mingw?
>
> I can't advise but mine has
>
> # GCC configuration using the mingw32 version.
> using gcc
> : 4.7.2
> : "c:/mingw32/bin/g++.exe"
> ;
>
> You need someone much more expert.

I build the b2 with "bootstrap.sh --with-toolset=mingw" after this I remove the project-config.jam in the main
boost directory, after that I build boost with "b2 toolset=gcc _other_parameter_".
It seems to be working

Phil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net