|
Boost Users : |
From: frederic.bron_at_[hidden]
Date: 2007-06-29 00:13:50
I had no problem building python for cygwin. I think your problem is that you also installed python for Windows (outside cygwin) and it comes first in your PATH variable.
You could either remove C:\Python25 from your PATH variable or after running configure open user-config.jam and replace using python line by using python : 2.5 : /usr ;
F. Bron
"Knox, Matt"
<Matt.Knox_at_[hidden]> Pour : <boost-users_at_[hidden]>
Envoyé par : cc : (ccc : Frederic Bron/Alcan)
boost-users-bounces_at_list Objet : [Boost-users] problems building Boost.Python with cygwin
s.boost.org
28/06/2007 21:59
Veuillez répondre Ã
boost-users
Hello all,
I am trying to install the Boost.Python library (and then compile C++ python extensions after that) using cygwin and am not having much luck. I know I have the main part of boost working because I was
able to compile and run the basic example for testing the boost configuration. Then to install Boost.Python I did the following:
$ ./configure âwith-libraries=python
This generates the following output:
Building Boost.Jam with toolset gcc... tools/jam/src/bin.cygwinx86/bjam
Detecting Python version... 2.5
Detecting Python root... c:\Python25
Unicode/ICU support for Boost.Regex?... not found.
Backing up existing Boost.Build configuration in user-config.jam.2
Generating Boost.Build configuration in user-config.jam...
Generating Makefile...
I then type âmake installâ, which generates the following output:
./tools/jam/src/bin.cygwinx86/bjam --user-config=user-config.jam --prefix=/usr/local --exec-prefix=
/usr/local --libdir=/usr/local/lib --includedir=/usr/local/include --with-python install
WARNING: No python installation configured and autoconfiguration
failed. See http://www.boost.org/libs/python/doc/building.html
for configuration instructions or pass --without-python to
suppress this message and silently skip all Boost.Python targets
warning: Python location is not configured
warning: the Boost.Python library won't be built
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
warning: Unable to construct ./install-unversioned
...found 7812 targets...
Those warnings look rather problematic. And indeed, when I try to compile the basic example (/boost_1_34_0/libs/python/example/tutorial) by typing âbjam target-os=cygwin toolset=gccâ, I get the
following errors:
Jamroot:17: in modules.load
rule python-extension unknown in module Jamfile</cygdrive/p/c_libs/boost_1_34_0/libs/python/example/
tutorial>.
/cygdrive/p/c_libs/boost_1_34_0/tools/build/v2/build/project.jam:312: in load-jamfile
/cygdrive/p/c_libs/boost_1_34_0/tools/build/v2/build/project.jam:68: in load
/cygdrive/p/c_libs/boost_1_34_0/tools/build/v2/build/project.jam:170: in project.find
/cygdrive/p/c_libs/boost_1_34_0/tools/build/v2/build-system.jam:237: in load
/cygdrive/p/c_libs/boost_1_34_0/libs/python/example/../../../tools/build/v2/kernel/modules.jam:261:
in import
/cygdrive/p/c_libs/boost_1_34_0/libs/python/example/../../../tools/build/v2/kernel/bootstrap.jam:132
: in boost-build
/cygdrive/p/c_libs/boost_1_34_0/libs/python/example/boost-build.jam:7: in module scope
Any ideas? Am I missing something obvious? Any help would be greatly appreciated. Thanks,
- Matt
********************
NOTICE OF CONFIDENTIALITY
This communication including any information transmitted with it is
intended only for the use of the addressees and is confidential.
If you are not an intended recipient or responsible for delivering
the message to an intended recipient, any review, disclosure,
conversion to hard copy, dissemination, reproduction or other use
of any part of this communication is strictly prohibited, as is the
taking or omitting of any action in reliance upon this communication.
If you receive this communication in error or without authorization
please notify us immediately by return e-mail or otherwise and
permanently delete the entire communication from any computer,
disk drive, or other storage medium.
If the above disclaimer is not properly readable, it can be found at
www.td.com/legal
AVERTISSEMENT DE CONFIDENTIALITE
Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement
aux destinataires susmentionnés, est confidentiel. Si vous
nâêtes pas le destinataire prévu ou un agent responsable de la
livraison de ce courriel, tout examen, divulgation, copie, impression,
reproduction, distribution, ou autre utilisation dâune partie de ce
courriel est strictement interdit de même que toute intervention ou
abstraction à cet égard. Si vous avez reçu ce message par erreur ou
sans autorisation, veuillez en aviser immédiatement lâexpéditeur par
retour de courriel ou par un autre moyen et supprimer immédiatement
cette communication entière de tout système électronique.
Si l'avis de non-responsabilité ci-dessus n'est pas lisible, vous
pouvez le consulter à www.td.com/francais/legale_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.
Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net