[prev in list] [next in list] [prev in thread] [next in thread]
List: python-cpp-sig
Subject: [C++-sig] bjam is not working for me
From: "etrek" <etrek () cox ! net>
Date: 2008-04-16 7:40:07
Message-ID: 0B346CDAC4AB43A782FC646B0370D18A () Voyager
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
I cannot get the bjam command to create .pyd files or the boost_python.dll.
I have MSVStudio 2005: MSVC 8.0 , Windows Vista32
I have Python25. Path to python is: C:\Python25
I installed Boost Library (BoostPro_1.34.1_Installer) from: \
http://www.boost-consulting.com/products/free This installation made it so that I did \
not have to "Build" the Boost libraries, unless I missunderstood the installation. \
Boost path: C:\Program Files\boost\boost_1_34_1
I am trying to do the Boost.Python tutorial and quickstart by following the \
directions on these webpages: \
http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/hello.html
http://www.boost.org/doc/libs/1_35_0/libs/python/doc/building.html
I put a user-config.jam file in my root directory.
I set me environment variables PYTHON_ROOT and PYTHON_VERSION
I cannot get bjam to work. No matter what I try. It updated targets and tests \
passed for ../examples/quickstart and created the bin folder, but the folder \
contained NO .pyd files or the boost_python.dll
I ran bjam on the ../libs/python/tests folder. It said it was updating over 700+ \
targets and tests were reporting as passed. However, it did not create a bin folder \
or any .pyd files.
I cannot get it to work at all with the ../example/tutorial folder.
Here is the Jamroot file that came with the installation for the example/tutorial \
folder: # Copywrite David Abrahams 2006,,,etc.
use-project boost
: ../../../.. ;
project
: requirements <library>/boost/python/boost_python ;
python-extension hello : hello.cpp ;
# end of Jamroot
This Jamroot does not work. I keep getting this error: No best alternative for \
python-for-extensions. there is another minimalist Jamfile example in the help files. \
it does not work either.
Can someone help me create a Jamfile that will work. Or if my environment is \
incorrect help me set it up.
Thanks
etrek
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18023" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello, </FONT></DIV>
<DIV><FONT face=Arial size=2>I cannot get the bjam command to create .pyd files
or the boost_python.dll.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have MSVStudio 2005: MSVC 8.0 ,
Windows Vista32 </FONT></DIV>
<DIV><FONT face=Arial size=2>I have Python25. Path to python is:
C:\Python25</FONT></DIV>
<DIV><FONT face=Arial size=2>I installed Boost Library
(BoostPro_1.34.1_Installer) from: <A
href="http://www.boost-consulting.com/products/free">http://www.boost-consulting.com/products/free</A></FONT></DIV>
<DIV><FONT face=Arial size=2>This installation made it so that I did not have to
"Build" the Boost libraries, unless I missunderstood the
installation.</FONT></DIV>
<DIV><FONT face=Arial size=2>Boost path: C:\Program
Files\boost\boost_1_34_1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying to do the Boost.Python tutorial and
quickstart by following the directions on these webpages:</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/he \
llo.html">http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/hello.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.boost.org/doc/libs/1_35_0/libs/python/doc/building.html">http://www.boost.org/doc/libs/1_35_0/libs/python/doc/building.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I put a user-config.jam file in my root
directory.</FONT></DIV>
<DIV><FONT face=Arial size=2>I set me environment variables PYTHON_ROOT and
PYTHON_VERSION </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I cannot get bjam to work. No matter
what I try. It updated targets and tests passed for
../examples/quickstart and created the bin folder, but the folder contained
NO .pyd files or the <FONT face="Times New Roman"
size=3>boost_python.dll</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I ran bjam on the ../libs/python/tests
folder. It said it was updating over 700+ targets and tests were reporting
as passed. However, it did not create a bin folder or any .pyd
files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I cannot get it to work at all with the
../example/tutorial folder.</FONT></DIV>
<DIV><FONT face=Arial size=2>Here is the Jamroot file that came with the
installation for the example/tutorial folder:</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2># Copywrite David Abrahams
2006,,,etc.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>use-project boost</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2> : ../../../.. ;</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>project</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2> : requirements
<library>/boost/python/boost_python ;</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>python-extension hello : hello.cpp
;</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2># end of Jamroot</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>This Jamroot does not work. I keep
getting this error: No best alternative for
python-for-extensions.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>there is another <FONT size=3><FONT
face="Times New Roman">minimalist Jamfile example in the help files. it does not
work either.</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial><FONT size=2>Can someone help me create
a Jamfile that will work. Or if my environment is incorrect help me set it
up.</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial><FONT
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial><FONT
size=2>Thanks</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial><FONT
size=2>etrek</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial><FONT size=2><SPAN lang=EN><SPAN
lang=EN> </DIV></SPAN></SPAN></FONT></FONT></FONT></FONT></FONT></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=identifier><SPAN
lang=EN> </DIV></SPAN></SPAN></FONT></FONT>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=identifier></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
_______________________________________________
C++-sig mailing list
C++-sig@python.org
http://mail.python.org/mailman/listinfo/c++-sig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic