Skip to content

Commit eb5aa93

Browse files
committed
added readme
1 parent 1b4af97 commit eb5aa93

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

readme.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
This example uses boost v1.55 because later versions appear to have problems building boost.python on windows.
3+
4+
Download boost and build boost.python. You may have to play with the options to get the right filename to be generated.
5+
`G:\Libraries\boost\boost_1_55_0>b2 -j4 --with-python variant=debug address-model=32 link=shared,static runtime-debugging=on toolset=msvc-14.0 -a`
6+
7+
In this case we are looking for `boost_python3-vc140-mt-gd-1_55.lib` which is actually an import library and not a static library, and `boost_python3-vc140-mt-gd-1_55.dll`.
8+
9+
decoding boost names
10+
--------------------
11+
vc140 - compiler
12+
mt - multithreading
13+
gd - runtime debugging and debug symbols
14+
15+
Common Problems
16+
===============
17+
18+
'2to3' is not recognized
19+
------------------------
20+
running tests with bjam seems to fail with '2to3' is not recognized as a internal or external command...
21+
22+
You should have python.exe in C:\Python35 and 2to3.py in C:\Python35\Tools\Scripts.
23+
24+
Create a batch file called 2to3.bat in C:\Python35 and put this line in the batch file
25+
26+
python %~dp0Tools\Scripts\2to3.py %*
27+
28+
VS wants to use vc120 instead of vc140
29+
--------------------------------------
30+
get the error LNK1104: cannot open file 'boost-python-vc120-mt-1_55.lib' in visual studio 2015 (vc140), and the project compiler is set to the v140?
31+
32+
Boost 1.55 is too old to know about v140, so you need to edit boost/config/auto_link.hpp:
33+
34+
# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1900)
35+
# define BOOST_LIB_TOOLSET "vc120"
36+
37+
# elif defined(BOOST_MSVC)
38+
# define BOOST_LIB_TOOLSET "vc140"

0 commit comments

Comments
 (0)