bjam

Trying to build Boost: I cannot get bjam

时光总嘲笑我的痴心妄想 提交于 2019-12-21 04:13:05
问题 I would like to build boost using two different compilers, MinGW and Visual C++ 2010 Express, using bjam: bjam toolset=gcc,msvc variant=release link=static,shared threading=multi install The problem is that I do not have bjam. I could not find it in the Boost directory, and the one I downloaded from somewhere else was a wrong version. I should be able to build it from the code in Boost, but how? I read that I must launch build.bat from the BOOST_ROOT/tools/jam/src directory, but that

Building Boost for static linking (MinGW)

一曲冷凌霜 提交于 2019-12-20 08:02:00
问题 I'm building Boost (I'm using System and FileSystem) for MinGW using bjam: bjam --toolset=gcc stage And it builds fine, but I want to be able to statically link to it (I have to have a single file for the final product) so I tried: bjam --link=static --toolset=gcc stage But I get the same output. Any ideas? edit second question in a row I've answered moments after posting :p guess I'll leave this up here for others though. bjam --build-type=complete --toolset=gcc stage Will build both dynamic

fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_53.lib' - file ignored, no matter what i link

北慕城南 提交于 2019-12-18 08:26:25
问题 I have just bjam ed boost and it seems like its still gonna refuse to work (I alread have tried and given up to make this library). What I did was, that I launched bjam.exe and I linked: include directories: C:\ ... \boost_1_53_0 Library directories: C:\ ... \boost_1_53_0\bin.v2\libs But I still get the error. So I decided to look in the folders, and this showed up to be path to the desired library: C:\ ... \boost_1_53_0\bin.v2\libs\date_time\build\msvc-10.0\debug\link-static\threading-multi\

How can I decode the boost library naming?

爱⌒轻易说出口 提交于 2019-12-17 04:22:40
问题 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 runtime support libraries. what bjam switch??? d - debug bjam variant=debug Update How do I control what bjam switches controls the above variants? In fact the

Including System Libraries with Bjam for Boost.Python

孤街浪徒 提交于 2019-12-13 14:29:08
问题 This is probably a really basic question but I haven't been able to find a solution anywhere. I'm building a Python extension in C++ using Boost.Python and need to link my project with libpcap, but nothing I specify seems to point bjam to the correct location. Pcap is currently installed to /usr/local/include (OS X 10.9) and I can import it with XCode, Make, or any other build system. However when I try to run bjam it gives me the linker error "Undefined symbols for architecture x86_64." I

Boost-bjam: link result with precompiled library

佐手、 提交于 2019-12-11 06:45:00
问题 What should I put into my jamroot.jam file so that libAPLibrary.so is linked with the result of MyProject compilation? root |-MyProject | |-jamroot.jam | |-AnotherProject |-lib |-libAPLibrary.so 回答1: if the library libAPLibrary.so is already compiled one you should declare it and the link it against the project, this way: lib libAPLibrary : : # watch out for empty spaces, they are mandatory <file>../AnotherProject/lib/libAPLibrary.so ; exe MyProject : # your project sources here # this is a

How can I get bjam to find my .h files in other directories

邮差的信 提交于 2019-12-10 19:03:41
问题 I'm maintaining this solution in Visual Studio 2008, but I build my deliverables with bjam. The solution includes 3 projects. jamfiles are setup to build 2 versions of the solution (say A and B), and then 32-bit and 64-bit executables for each version. My problem is that bjam is not finding the .h files for one of the projects in the solution, generating the error below. These .h files are physically located 2 directories up and one down in an "include" folder. If I copy the .h files to where

How to change include path using bjam

这一生的挚爱 提交于 2019-12-09 20:34:57
问题 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 = [ path.glob-tree $HOME/APPDIR : *.h ] ; install headers : $(headers) : <location>$HOME/APPINSTALLDIR <install-source-root>$HOME/APPDIR ; Could someone please

Boost 1.37 pre-built for MSVC

倾然丶 夕夏残阳落幕 提交于 2019-12-09 12:48:56
问题 I can't find a pre-built set of MSVC++ libs for Boost 1.37.0, only the source. I don't understand how their weird build system works... are there any places I can find a download of a visual studio project or something? 回答1: The BoostPro Computing folks maintain the Boost installer for Windows but it usually take a few weeks for them to put new versions online. It's not yet up for 1.37. There's no Visual Studio solution (remember, Boost targets many platforms) though there is an effort to

Building boost under msys, can't find mingw.jam

白昼怎懂夜的黑 提交于 2019-12-09 08:47:34
问题 I need to build boost to use the regex library. I was able to creat bjam using bootstrap.sh like so: ./bootstrap.sh --with-toolset=mingw Note - if I leave out the --with-toolset=mingw argument compilation fails - bootstrap can't find wait.h, resource.h, ar.h. With the mingw toolset argument, bjam is able to compile. Then I run bjam and get: ./bjam.exe mingw.jam: No such file or directory e:/libraries/boost_1_45_0/tools/build/v2/build\toolset.jam:38: in toolset.using rule mingw.init unknown in