I can find tons of general purpose documentation on Boost.Build, but surprisingly nothing on how to use it to build simple Boost applications.
I compiled Boost for mingw with bjam, got all the libraries and includes in C:\Boost. Now what would a basic Jamroot file look like to use all this ?
The libs all have complicated names like 'li...
I am a newbie to Boost C++ libraries. I was wondering if there are any advantages of Boost bjam over GNU make? And what are the cons if I use make for building C++ code utilizing Boost.Python libraries?
...
We currently use the `lib' like this to introduce an external pre-built library into a project:
lib ace_lib_static : : <name>libboost_ace-vc80-mt-sgd.lib <variant>debug <toolset>msvc <address-model>64
<search>../lib/ACE_wrappers/lib64
;
lib ace_lib_static : : <name>libboost_ace-vc80-mt-s.lib <variant>rele...
I'm a boost.build newby and while bjam is quite easy to use for most compiling tasks and I didn't figured out how to do something that should be really simple : installing my application in the system.
Say I have a very simple project with two files in tree (besides Jamroot).
hello.cpp : a C++ program say it prints the content of /etc...
I'm trying to set up Boost.Build for my own project, which references libboost_filesystem.
When I run
bjam release avg_asp
I get the following output:
andreas@rodin:~/src/libdoas/src/tools$ bjam release avg_asp -n
/home/andreas/lib/build/boost_1_42_0/Jamroot:637: in modules.load
rule targets.create-metatarget unknown in module Jamfi...
I would like to compile a file with a specific compiler not supported on boost. I made a rule:
rule my_rule ( source : target )
{
compile_specially source target ;
}
actions compile_specially
{
my_compile_command $(my_parameters) $(1) -o $(2)
}
now this code builds the file into the Jamroot directory (obviously). I, however w...
I'm trying to build version 1.35 of Boost with the newest version of bjam that is bundled with version 1.42 Boost. Will this adversely affect the results of the build? Is this even possible?
The reason I'm trying to do this is because the newest version of BJam has support for command line options that are not included in the older ver...
I tried to find out that gd means in boost library name and I only found two other people looking for the same thing.
I suppose it should be a place where this is clearly documented and I would like to find it.
mt - multitheaded, get it with bjam threading=multi
s - bjam runtime-link=static
g - using debug versions of the standard and...
Hello,
I'd like to convert a c++ VS project into a jamfile, so I can compile the code on linux using Bjam.
Ideally, it'd be a script I could run, so as I update the VS project I can keep the Jamfiles synchronised.
Has anyone tried this?
Thanks
Si
...
I have the following directory structure:
APPDIR/
APPDIR/APPHDRS (has *.h)
APPDIR/APPLIBSRCS (has *.cpp need to make a library, say libtest.a)
APPDIR/APPMAIN (has main.cpp that will compile if g++ gets args -I $HOME/APPINSTALLDIR and -L $HOME/APPINSTALLDIR/LIB)
I got headers to be installed by adding in APPDIR/Jamroot:
local headers =...
I have to build Boost outside the "usual" directory tree (i.e., /custom/dir instead of /usr), which is not that much of a problem: Just pass --prefix=/custom/path to ./runscript.sh / ./bjam, and there you go.
Or so I thought.
The problem is that some of the Boost libraries depend on each other, and - using the default build process goi...
Does anyone have a set of instructions for building boost libraries for use on Windows CE? I've found some discussions on it:
boost build mailing list
and another one from the boost build mailing list
... but surely someone has written up something more concrete...
...
I'm using bcp to extract Boost.Archive from Boost. Unfortunately I can't build this extract. Boost.Archive is not a header-only library.
bjam complains
Unable to load Boost.Build: could not find "boost-build.jam"
Is there any way to tell bcp to make the extract buildable with bjam (copy boost-build.jam to the right place)?
...
On my machine cxxflags for variant=release is -O3 by default.
I need to change it to -O2.
Please advise how to proceed.
I am fine with defining a new variant as well, if someone could advise me on that.
...
I am using the following Jamfile ( in directory /home/morpheus/base/CDef ) :
lib CDef : [ glob *.cpp ] : static ;
install libCDef
: CDef
: LIB
"/home/morpheus/base_install/lib"
: release
;
install _libCDef_D
: CDef
: LIB
"/home/morpheus/base_install/libdebug"
: debug
;
I was wondering if the two install lines can be...
When building Boost binary libraries with bjam, one may specify which compiler to use, without specifying a particular compiler version, by using certain values for the --toolset= option. For example:
bjam --with-serialization --toolset=msvc
the toolset value msvc tells bjam to search your system for some version of Microsoft Visual C...
Hello,
I'm trying to build any of these and get various errors from Bjam.
Configuration: Ubuntu 10.04 LTS, g++ 4.4.3, Intel Core 2 Duo CPU, Boost 1.44.
I'm not familiar with Bjam; will appreciate any help.
For Boost.Task:
./bjam toolset=gcc architecture=x86 instruction-set=i686 --with-task install
results in:
error: Duplicate name o...
File PROJECT_ROOT/call_FSLR.cpp includes PROJECT_ROOT/MLhdrs/FSLR.hpp
The following Jamfiles get the job done. I believe bjam tries to looks into the .cpp files to find out dependencies, and should be checking and installing FSLR.hpp file before it tries to compile call_FSLR.cpp that includes it. I am not sure given the glob rule whethe...
I am working on a C++ project where I'd like to use boost's serialization libraries. I downloaded and installed the latest boost libraries from boost's home page.
When I tried to compile and run the one of boost's demo serialization examples, I got all sorts of errors that looked like this:
/usr/local/include/boost/archive/detail/...