[C++-sig] RE: Problems building boost.python under cygwin
Scott A. Smith
ssmith at magnet.fsu.edu
Mon Nov 11 16:13:16 CET 2002
FWIW
After reading the message by Claudius Schnörr I tried compiling Boost.Python
again under Cygwin. I had not done this since CygWin switched to gcc-3.2.
At first it failed, but I recall that there was an upgrade to their GCC a
day or so ago. After upgrading, it worked fine. So with 1.) The latest
distribution of Python
(which is 1.29.0), 2.) With the latest bjam for Windows (not Cygwin), 3.)
The latest gcc/binutils from Cygwin,
Boost.Python compiled for me just fine. There was one warning about an
unused variable:
../src/object/inheritance.cpp:217: warning: unused variable
`vertex_t v2'
As for how the build was accomplished:
1.) I worked in a bash shell (from Cygwin)
2.) I put bjam.exe in /usr/local/bin (in my path)
3.) I changed into the BOOST/libs/python/build subdirectory
4.) I set my environment with the following (reflects where I have installed
cygwin)
export PYTHON='C:\cygwin\bin\python.exe'
export PYTHON_ROOT='C:\cygwin\lib\python2.2'
export PYTHON_VERSION='2.2'
export PYTHON_INCLUDES='C:\cygwin\usr\include\python2.2'
export PYTHON_LIB_PATH='C:\cygwin\lib\python2.2\config'
export PYTHON_STDLIB_PATH='C:\cygwin\lib\python2.2'
export GCC_PYTHON_ROOT='C:\cygwin\usr'
5.) I ran "bjam -sTOOLS=gcc -sBUILD=release"
I have not tested the build yet, but everything looks fine.
Regards,
Scott
More information about the Cplusplus-sig
mailing list