[BJam/Boost.Python] Issues Building with Boost.Build v2 using Boost 1.34.0
I successfully was building Boost.Python extensions using bjam version 1 in Boost 1.33.1. Since the upgrade, I converted my Jamfile to Jamfile.v2 and am getting the following errors when I try to build: bjam -sTOOLS=vc-8_0 -sBOOST_ROOT=C:\3rdparty\boost_1_34_0 -sBUILD=debug error: Could not find parent for project at '.' error: Did not find Jamfile or project-root.jam in any parent directory. Here's my Jamfile: # This is the top of our own project tree project-root ; import python ; extension MyLib # Declare a Python extension : MyLib.cpp # source # requirements and dependencies for Boost.Python extensions <template>@boost/libs/python/build/extension ## Requirements ## : <include>$(MyDir)/Include <define>_ATL_DLL <define>_AFXDLL <define>_UNICODE <define>UNICODE <runtime-link>dynamic ; -------------------------------- Here's my Jamrules: path-global BOOST_ROOT : C:/3rdparty/boost_1_34_0 ; project boost : $(BOOST_ROOT) ; -------------------------------- Any idea how to correct this? Thanks in advance, Lawrence
One more note, I tried the quickstart example as suggested in the Python tutorial and got this: C:\3rdparty\boost_1_34_0\libs\python\example\quickstart>bjam toolset=msvc --verbose-test test --v2 Jamroot:17: in modules.load rule python-extension unknown in module Jamfile. C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:312: in load-jamfile C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:68: in load C:/3rdparty/boost_1_34_0/tools/build/v2/build\project.jam:170: in project.find C:/3rdparty/boost_1_34_0/tools/build/v2\build-system.jam:237: in load C:\3rdparty\boost_1_34_0\tools\build\v2/kernel\modules.jam:261: in import C:\3rdparty\boost_1_34_0\tools\build\v2/kernel/bootstrap.jam:132: in boost-build C:\3rdparty\boost_1_34_0\libs\python\example\quickstart\boost-build.jam: 7: in module scope When using the following command: bjam --toolset=msvc --verbose-test test Any ideas? Thanks again, Lawrence From: Lawrence Spector Sent: Thursday, May 24, 2007 4:38 PM To: boost-users@lists.boost.org Subject: [BJam/Boost.Python] Issues Building with Boost.Build v2 using Boost 1.34.0 I successfully was building Boost.Python extensions using bjam version 1 in Boost 1.33.1. Since the upgrade, I converted my Jamfile to Jamfile.v2 and am getting the following errors when I try to build: bjam -sTOOLS=vc-8_0 -sBOOST_ROOT=C:\3rdparty\boost_1_34_0 -sBUILD=debug error: Could not find parent for project at '.' error: Did not find Jamfile or project-root.jam in any parent directory. Here's my Jamfile: # This is the top of our own project tree project-root ; import python ; extension MyLib # Declare a Python extension : MyLib.cpp # source # requirements and dependencies for Boost.Python extensions <template>@boost/libs/python/build/extension ## Requirements ## : <include>$(MyDir)/Include <define>_ATL_DLL <define>_AFXDLL <define>_UNICODE <define>UNICODE <runtime-link>dynamic ; -------------------------------- Here's my Jamrules: path-global BOOST_ROOT : C:/3rdparty/boost_1_34_0 ; project boost : $(BOOST_ROOT) ; -------------------------------- Any idea how to correct this? Thanks in advance, Lawrence
on Thu May 24 2007, "Lawrence Spector"
C:\3rdparty\boost_1_34_0\libs\python\example\quickstart>bjam toolset=msvc --verbose-test test --v2
Jamroot:17: in modules.load
rule python-extension unknown in module Jamfile.
Hmm, I wonder why this worked for me and not you. Can you try adding import python ; just above line 17 of the Jamroot file? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
on Thu May 24 2007, "Lawrence Spector"
I successfully was building Boost.Python extensions using bjam version 1 in Boost 1.33.1. Since the upgrade, I converted my Jamfile to Jamfile.v2 and am getting the following errors when I try to build:
bjam -sTOOLS=vc-8_0 -sBOOST_ROOT=C:\3rdparty\boost_1_34_0 -sBUILD=debug
error: Could not find parent for project at '.'
error: Did not find Jamfile or project-root.jam in any parent directory.
Here’s my Jamfile: --------------------------------
Here’s my Jamrules: --------------------------------
Any idea how to correct this?
Read up on Boost.Build v2; project-root and Jamrules are not supported anymore. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Lawrence Spector