Boost logo

Boost-Build :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-06-26 00:32:47


Thanks for your reply!

Now I have another problem with running bjam in Cywin.
I am using bjam from the boost source tree (i.e.
tools/jam/src/bin.ntx86/bjam) and it runs fine. But,
it redirects errors to >nul and only tells me whether
it succeeds or fails (it does not give me the compiler
output). Running bjam with -d2 gives me output like
the following:

cmd.exe /S /C call "C:\Program Files\Microsoft Visual
Studio 9.0\VC\vcvarsall.bat" x86 >nul "&&" cl /Zm800
-nologo
@"bin\msvc-9.0\debug\threading-multi\ticpp.obj.rsp"

Removing the >nul from the command gives me the
compiler errors, but I obviously do not want to spell
out the whole command every time.

How can I fix this?

Cheers,
Andrej

--- Mat Marcus <mat-lists_at_[hidden]> wrote:

> On Wed, Jun 25, 2008 at 4:55 AM, Andrej van der Zee
> <mavdzee_at_[hidden]> wrote:
> > Hi,
> >
> > I am trying to build Boost in Cygwin, but with
> toolset
> > msvc. What is the right way to do this? I tried
> the
> > following sequence:
> >
> > 1) build bjam using build.sh in tools/jam/src
> > 2) 'configure --with-toolset=msvc'
> > (tools/jam/src/bin.cygwinx86/bjam is being used)
> > 3) run 'make'
> >
> > The problem is that for boost_thread the Posix
> threads
> > library is being used instead of the native
> Windows
> > threads.
> >
> > This is not what I want. I want the comfort of
> Linux,
> > that is why I am using cygwin, but I want to build
> > everything natively on Windows, so no Posix
> threads.
> >
> > I also tried to build bjam using build.bat in
> > tools/jam/src and then run configure (then
> > tools/jam/src/bin.ntx86/bjam is being used) and
> make,
> > but then I run into other problems (related to
> > differences of directories between cygwin and
> Windows,
> > it seems).
> >
> > What is the right way to do this?
> >
> > Cheers,
> > Andrej
> >
>
> The right way is to fix threads so as not to be
> shell dependent. One
> workaround that was posted here some time ago was to
> add some lines to
> your ~/user-config.jam. Mine user-config.jam is
> pasted below. The main
> downside of this method is that you get different
> build paths
> according to which shell you use.
>
> ### user-config.jam for use under cygwin or cmd
>
> import toolset ;
>
> #forward slashes seem to work under both cygwin and
> cmd shells
> using msvc : 9.0 : "C:/Program Files/Microsoft
> Visual Studio
> 9.0/VC/bin/cl.exe" ;
> using msvc : 8.0 : "C:/Program Files/Microsoft
> Visual Studio 8/VC/bin/cl.exe" ;
>
> #these lines needed to use threads with msvc under
> cygwin
> toolset.add-requirements
> <toolset>msvc:<target-os>windows
> <toolset>msvc:<threadapi>win32 ;
>
> using gcc : 4.3.0 : /opt/gcc-4.3.0/bin/g++.exe ;
> using gcc : 4.2.0 : /opt/gcc-4.2.0/bin/g++.exe ;
> using gcc : svn :
> /opt/conceptgcc-svn/bin/conceptg++.exe ;
> using gcc : 3.4.4 : /bin/g++.exe ;
>
> toolset.add-requirements
> <toolset>gcc:<target-os>cygwin
> <toolset>gcc:<threadapi>pthread ;
>
> ###
>
> Hope this helps,
> Mat
> _______________________________________________
> Unsubscribe & other changes:
>
http://lists.boost.org/mailman/listinfo.cgi/boost-build
>

      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk