Boost logo

Boost-Build :

From: jwulp_at_[hidden]
Date: 2006-02-15 04:38:45


Recently I've started using bjam and Boost.Build v2, for an open source software
project. We have a lot of problems with make, and I wanted to see whether
Boost.Build would solve our build problems. I am very happy with Boost Build v2
so far.

At this point I would like to have the output of wx-config or xml2-config.
Previously I just put quotes around the commands "``" and make the shell expand
them at execution time, and I was very happy with this solution. This however
did not work for Windows as you might know. So in the Boost Build FAQ I found
that I could use local variables like this:

local wx_cppflags = [ SHELL "wx_config --cppflags" ] ;

The problem I am having with this, is that although the variable is substituted
it does not become part of the command if I add <cxxflags>"$(wx_cppflags)" :

g++: no input files
/bin/sh: line 2: -I/usr/lib/wx/include/gtk2-unicode-debug-2.6: No such file or
/bin/sh: line 3: -O0: command not found

    "g++" -ftemplate-depth-100 -I/usr/include/libxml2
     -I/usr/lib/wx/include/gtk2-unicode-debug-2.6 -I/usr/include/wx-2.6
      -O0 -fno-inline -Wall -g -fPIC -DBOOST_DATE_TIME_NO_LIB
      -I"../../../src/boost" -I"../../../src/squadt/libraries" -I"../libraries"
      -c -o

The command seems broken up (does the variable expansion add a line feed?). I'm
now using bjam version 3.1.12 with the Boost Build v2 from CVS from yesterday.

My question, should this construction be possible? Is there a better way to do
this? Any solution must work at least on Linux (gcc), MacOS, and Windows either
(MinGW, or Visual Studio).

Many thanks in advance for any help.

Best regards,

Jeroen van der Wulp

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at