[C++-sig] Cygwin Boost.Python Build
David Abrahams
david.abrahams at rcn.com
Fri May 24 17:39:58 CEST 2002
----- Original Message -----
From: "Scott A. Smith" <ssmith at magnet.fsu.edu>
> Here are the details of what I have on my system:
>
> 1.) GCC version is 2.95.3-5 and works just fine.
> 2.) Python comes up in a bash shell as Python 2.2
> 3.) I put bjam.exe, pre-built for Window, in /usr/local/bin
> relative to what Cygwin calls root (C:\cygwin).
> 4.) The directory /usr/include/python2.2 seems to have the headers
> Python.h and patchelevel.h
> 5.) I did not build Python (yet), I just have what came with Cygwin.
> 6.) I put Boost 1.28.0 in C:\Program Files\Boost\boost
>
> Now, can anyone tell me what I need for the following environment
> variables? The values to the right are those suggested in the build
> directions and those in () are the ones I assume are correct.
>
> PYTHON_ROOT /usr/local (?)
The root directory of your regular Windows Python (not Cygwin)
installation; should contain a Lib/ subdirectory. I guess this is my
mistake -- I never set this up to work with Cygwin but no ordinary Python.
However, if you haven't installed that, you can get around the "no python
installation" message by setting PYTHON_STDLIB_PATH to point at your Cygwin
python's Lib/ directory.
In theory, you should be able to set PYTHON_ROOT to c:/cygwin/usr, but I
don't think it actually will make a difference if you set
PYTHON_STDLIB_PATH.
> PYTHON_VERSION (2.2)
Should be 2.2
> CYGWIN_ROOT (C:\cygwin)
OK
> GCC_PYTHON_ROOT $(CYGWIN_ROOT)/usr/local
(C:\cygwin\usr\include\python2.2)
Should be c:/cygwin/usr
> Since I did not really install python, i.e. Cygwin did this, I do
> not have any Python files in /usr/local (as default settings for the
above
> variables use).
Sorry for any confusion,
Dave
More information about the Cplusplus-sig
mailing list