Boost logo

Boost Users :

From: frederic.bron_at_[hidden]
Date: 2008-01-16 14:17:03


If it is of any help: I build boost from cygwin (-mno-cygwin) for a programmer using Code::Blocks. It works fine. I just copy the library to his PC. Here is what I do:

$ tar xvfj boost_1_34_1.tar.bz2
$ cd boost_1_34_1
- fix a bug in boost/filesystem/convenience.hpp: replace "define BOOST_FS_FUNC_STRING std::string" by "define BOOST_FS_FUNC_STRING inline std::string"
- build jam:
$ configure --without-icu --without-libraries=python --prefix=/cygdrive/d/Softs/boost_msw
$ change Makefile:
- BJAM_CONFIG=-sNO_BZIP2=1 -sNO_ZLIB=1 link=static threading=single runtime-link=shared --layout=system
- LIBS=--without-python release
- change user-config.jam:
using gcc : : : <cflags>-mno-cygwin <cflags>-DBOOST_WINDOWS_API <cxxflags>-mno-cygwin <cxxflags>-DBOOST_WINDOWS_API <compilerflags>-mno-cygwin <compilerflags>-DBOOST_WINDOWS_API <linkflags>-mno-cygwin
;
- build boost:
$ make install

F. Bron

boost-users-bounces_at_[hidden] a écrit sur 16/01/2008 05:53:25 :

> Why on earth I try and support Windows is beyond my comprehension.
> It's just something I do.
>
> I'm having some massive difficulties making Boost build with MinGW so
> I can start using it from Code::Blocks. I've tried using Boost's
> native Jam system, but first I have to build that. And that doesn't
> work.
>
> It keeps telling me this:
>
>
> C:\USERS\LORDSA~1\DESKTOP\BOOSTJAM>build.bat mingw
> ###
> ### Using 'msvc' toolset.
> ###
>
> C:\Users\LORDSA~1\DESKTOP\BOOSTJAM>rd /S /Q bootstrap
>
> C:\Users\LORDSA~1\DESKTOP\BOOSTJAM>md bootstrap
>
> C:\Users\LORDSA~1\DESKTOP\BOOSTJAM>cl /nologo /GZ /Zi /MLd
> /Fobootstrap/ /Fdboot
> strap/ -DNT -DYYDEBUG kernel32.lib advapi32.lib user32.lib
> /Febootstrap\jam0 co
> mmand.c compile.c debug.c execnt.c expand.c filent.c glob.c hash.c
> hdrmacro.c he
> aders.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c
> option.c outpu
> t.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c
> timestamp.c vari
> able.c modules.c strings.c filesys.c builtins.c pwd.c class.c
> w32_getreg.c nativ
> e.c modules/set.c modules/path.c modules/regex.c modules/property-
> set.c modules
> /sequence.c modules/order.c
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\USERS\LORDSA~1\DESKTOP\BOOSTJAM>g++
> G++: no input files
>
> C:\USERS\LORDSA~1\DESKTOP\BOOSTJAM>
>
> It keeps trying to use the MSVC toolset, even though I'm telling it not to.
>
> Any help here would be nice!
>
> I'm putting this all into an instruction set for potential programmers
> on my project here:
>
> http://www.fsdev.net/index.php?
> option=com_openwiki&Itemid=22&id=code:kw_programming#windows
>
> --
> Registered Linux Addict #431495
> http://profile.xfire.com/mrstalinman
> John 3:16!
> If Microsoft is the Wal*Mart of the Software World, then Linux is
> the Home Depot
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.

Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.


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