boost-build

Compile boost-python tutorial with VS-2015 CTP 5 and Python 3.5a on Windows 10 TP

老子叫甜甜 提交于 2019-12-01 06:22:08
问题 I'm trying to get the boost-python extension module tutorial working on a modern C++14 compiler in Windows 10. I've downloaded the latest versions of boost 1.57 and python 3.5a source using vc-14 (VS 2015 CTP 5). I compiled python from source using VS 2015 CTP 5 and these instructions: 1.1.3.3. Windows. I've run the command .\bootstrap.bat && .\b2 stage toolset=msvc --with-python from the boost project folder c:\boost This is the user-config.jam file in my home directory: using msvc : 14.0 :

What exactly does `threading=multi` do when compiling boost?

让人想犯罪 __ 提交于 2019-11-30 12:34:47
I am not entirely sure what exactly the threading=multi flag does when building boost. The documentation says: Causes the produced binaries to be thread-safe. This requires proper support in the source code itself. which does not seem to be very specific. Does this mean that the accesses to, for example, boost containers are guarded by mutexes/locks or similar? As the performance of my code is critical, I would like to minimize any unnecessary mutexes etc. Some more details: My code is a plug-in DLL which gets loaded into a multi-threaded third-party application. I statically link boost into

Boost compiling with MSVC 11 (VS 2012)

放肆的年华 提交于 2019-11-29 19:27:34
How to build Boost (I tried version 1.48.0 ) with Visual Studio C++ 11 ? bootstrap.bat cannot find toolset vc11 . I added toolset vc11 to F:\Programming\boost_1_48_0\tools\build\v2\engine\build.bat but got a message: ERROR: Cannot determine the location of the VS Common Tools folder. EDIT: The Ferruccio answer works for VS 2012 Express and Boost 1.51.0 too. I managed to get it to build by following these steps: Open a Visual Studio command prompt. From the start menu it's: All Programs|Microsoft Visual Studio 11|Native x64 Command Prompt. Unzip boost_1_48_0.zip and set the working directory to

What exactly does `threading=multi` do when compiling boost?

烂漫一生 提交于 2019-11-29 17:53:15
问题 I am not entirely sure what exactly the threading=multi flag does when building boost. The documentation says: Causes the produced binaries to be thread-safe. This requires proper support in the source code itself. which does not seem to be very specific. Does this mean that the accesses to, for example, boost containers are guarded by mutexes/locks or similar? As the performance of my code is critical, I would like to minimize any unnecessary mutexes etc. Some more details: My code is a plug

Boost.Python __init__() should return None, not 'NoneType'

大城市里の小女人 提交于 2019-11-29 10:50:19
I have a whole bunch of working C++ code that I want to write Python bindings for. I'm trying to use Boost.Python since it seems to be the easiest way to get this working, but it isn't cooperating. Here's part of the code for the extension module I'm trying to build: BOOST_PYTHON_MODULE(libpcap_ext) { using namespace boost::python; class_<PacketEngine>("PacketEngine") .def("getAvailableDevices", &PacketEngine_getAvailableDevices); } Bjam seems to be a pain and refuses to recognize my Pythonpath or allow me to link with libpcap, so I'm using CMake. Here's my CMakeLists file, which can import

Buidling boost error: Name clash for '<pstage\\lib>boost_system-vc120-mt-1_58.dll'

天大地大妈咪最大 提交于 2019-11-29 07:48:45
I'm trying to build boost on windows 8.1 with Visual Studio 2013 on 64bit system. b2 toolset="msvc" address-model=64 -s ZLIB_SOURCE=C:\H\M\zlib --build-type=complete stage Here is full output: Performing configuration checks - symlinks supported : no - junctions supported : yes - hardlinks supported : yes - arm : no - mips1 : no - power : no - sparc : no - x86 : yes - has_icu builds : no warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam - iconv (libc) : no - iconv (separate) : no - icu : no - icu (lib64) : no

How do you build the x64 Boost libraries on Windows?

南楼画角 提交于 2019-11-28 16:59:08
问题 I've built the x86 Boost libraries many times, but I can't seem to build x64 libraries. I start the "Visual Studio 2005 x64 Cross Tools Command Prompt" and run my usual build: bjam --toolset=msvc --build-type=complete --build-dir=c:\build install But it still produces x86 .lib files (I verified this with dumpbin /headers). What am I doing wrong? 回答1: You need to add the address-model=64 parameter. Look e.g. here. 回答2: The accepted answer is correct. Adding this in case somebody else googles

Buidling boost error: Name clash for '<pstage\lib>boost_system-vc120-mt-1_58.dll'

不羁的心 提交于 2019-11-28 01:44:28
问题 I'm trying to build boost on windows 8.1 with Visual Studio 2013 on 64bit system. b2 toolset="msvc" address-model=64 -s ZLIB_SOURCE=C:\H\M\zlib --build-type=complete stage Here is full output: Performing configuration checks - symlinks supported : no - junctions supported : yes - hardlinks supported : yes - arm : no - mips1 : no - power : no - sparc : no - x86 : yes - has_icu builds : no warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using

Boost.Python __init__() should return None, not 'NoneType'

纵然是瞬间 提交于 2019-11-28 00:33:54
问题 I have a whole bunch of working C++ code that I want to write Python bindings for. I'm trying to use Boost.Python since it seems to be the easiest way to get this working, but it isn't cooperating. Here's part of the code for the extension module I'm trying to build: BOOST_PYTHON_MODULE(libpcap_ext) { using namespace boost::python; class_<PacketEngine>("PacketEngine") .def("getAvailableDevices", &PacketEngine_getAvailableDevices); } Bjam seems to be a pain and refuses to recognize my

Using Boost in android ndk with windows

自作多情 提交于 2019-11-27 11:48:12
问题 I am trying to use boost library with Android ndk in Eclipse with Windows. I tried to follow this tutorial I am stuck in the step with "bjam" command in cygwin. bjam --without-python --without-serialization toolset=gcc-android4.4.3 link=static runtime-link=static target-os=linux --stagedir=android Error: bjam command not found. What is bjam? Also I used the boost 1.53 along ndk r8e. Can someone help me with this please? 回答1: Android NDK is no longer dependent on Cygwin, so you can build Boost