List Info

Thread: Issues Building with Boost.Build v2 using Boost 1.34.0




Issues Building with Boost.Build v2 using Boost 1.34.0
country flaguser name
United States
2007-05-24 16:18:39

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:3rdpartyboost_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 ##

 &nbsp;  : <include>$(MyDir)/Include

 &nbsp; &nbsp;  <define&gt;_ATL_DLL <define>_AFXDLL

 &nbsp; &nbsp;  <define&gt;_UNICODE <define>UNICODE

 &nbsp; &nbsp;  <runtime-link>dynamic

 &nbsp;  ;

 

--------------------------------

 

Here’;s my Jamrules:

 

path-global BOOST_ROOT : C:/3rdparty/boost_1_34_0 ;

 

project boost : $(BOOST_ROOT) ;

 

--------------------------------

 

One more note, I tried the quickstart example as suggested in the Python tutorial and got this:

 

C:3rdpartyboost_1_34_0libspythonexamplequickstart>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/libs/python/example/quickstart&gt;.

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:312: in load-jamfile

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:68: in load

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:170: in project.find

C:/3rdparty/boost_1_34_0/tools/build/v2build-system.jam:237: in load

C:3rdpartyboost_1_34_0toolsbuildv2/kernelmodules.jam:261: in import

C:3rdpartyboost_1_34_0toolsbuildv2/kernel/bootstrap.jam:132: in boost-build

 

C:3rdpartyboost_1_34_0libspythonexamplequickstartboost-build.jam:7: in module scope

 

When using the following command:

 

bjam --toolset=msvc --verbose-test test

 

Any ideas?

 

Thanks in advance,

 

Lawrence

 

P.S.: Sorry for cross-posting lists; I just realized that this is the appropriate list for such issues.  Thanks, again.

Re: Issues Building with Boost.Build v2 using Boost 1.34.0
country flaguser name
United States
2007-05-25 18:22:07
I am seeing the same errors when I attempt to compile on both a Mac and PC.  I posted the following to the development list.

installed boost 1.34.0 on a Window XP machine using mcvs 8.0 and was again able to successfully build all the boost libraries and received the same errors as on my Mac when I tried to build the boost python example.

I was able to discover a rule called python-extension in the file boost_1_34_0/tools/build/v2/python.jam

rule python-extension ( name : sources * : requirements * : default-build * :
   usage-requirements  * )
{
....
}

IMPORT python : python-extension : : python-extension ;



I am on a Mac with OS X 10.4 and trying to compile the boost/Python  
examples in tutorial or quickstart using Bjam v3.1.14 OS=MACOSX.  I  
issue the following command in the boost_1_34_0/libs/python/libs/ 
example directory

bjam --toolset=darwin test

I receive the following errors:

Jamroot:18: in modules.load
rule python-extension unknown in module Jamfile<;/Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example>.
/Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/project.jam:312: in load-jamfile
/Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/project.jam:68: in load
/Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build/project.jam:170: in project.find
/Users/arthurcoleman/Boost/boost_1_34_0/tools/build/v2/build-system.jam:237: in load
/Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../tools/build/v2/kernel/modules.jam:261: in import
/Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/../../../tools/build/v2/kernel/bootstrap.jam:132: in boost-build
/Users/arthurcoleman/Boost/boost_1_34_0/libs/python/example/boost-build.jam:7: in module scope

Can someone help me since I can't figure out what I'm doing wrong.   
By the way, I have tried as a superuser and get the same errors.  It  
seemed that I was  able to successfully install boost from the  
boost.../build director with the ./configure --toolset=darwin --show- 
libraries ect.

Thanks in advance,

Arthur

On May 24, 2007, at 2:18 PM, Lawrence Spector wrote:

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:3rdpartyboost_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) ;

 

--------------------------------

 

One more note, I tried the quickstart example as suggested in the Python tutorial and got this:

 

C:3rdpartyboost_1_34_0libspythonexamplequickstart>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/libs/python/example/quickstart>.

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:312: in load-jamfile

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:68: in load

C:/3rdparty/boost_1_34_0/tools/build/v2/buildproject.jam:170: in project.find

C:/3rdparty/boost_1_34_0/tools/build/v2build-system.jam:237: in load

C:3rdpartyboost_1_34_0toolsbuildv2/kernelmodules.jam:261: in import

C:3rdpartyboost_1_34_0toolsbuildv2/kernel/bootstrap.jam:132: in boost-build

 

C:3rdpartyboost_1_34_0libspythonexamplequickstartboost-build.jam:7: in module scope

 

When using the following command:

 

bjam --toolset=msvc --verbose-test test

 

Any ideas?

 

Thanks in advance,

 

Lawrence

 

P.S.: Sorry for cross-posting lists; I just realized that this is the appropriate list for such issues.  Thanks, again.

_______________________________________________

Re: Issues Building with Boost.Build v2 using Boost 1.34.0
country flaguser name
Russian Federation
2007-05-26 01:59:11
Lawrence Spector wrote:

> 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:3rdpartyboost_1_34_0 -sBUILD=debug

This is V1 syntax. You can learn about V2 syntax in
http
://boost.org/more/getting_started/index.html as well as
V2 docs:
boost.org/boost-build2

> 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 ;

Likewise, this is V1 syntax, please refer to Python example
for V2
syntax.

> 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) ;
> 
>  
> 
> --------------------------------
> 
>  
> 
> One more note, I tried the quickstart example as
suggested in the Python
> tutorial and got this:
> 
>  
> 
>
C:3rdpartyboost_1_34_0libspythonexamplequickstart>b
jam
> toolset=msvc --verbose-test test --v2
> 
> Jamroot:17: in modules.load
> 
> rule python-extension unknown in module
>
Jamfile</C:/3rdparty/boost_1_34_0/libs/python/example/qui
ckstart>.

Please add

        using python ;

to tools/build/v2/user-config.jam, as otherwise the
'quickstart' project
won't get any python support whatsoever. Dave, do you think
some doc change,
or code change is required to solve this issue?

- Volodya


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: Issues Building with Boost.Build v2 using Boost 1.34.0
country flaguser name
United States
2007-05-26 09:41:24
on Sat May 26 2007, Vladimir Prus <ghost-AT-cs.msu.su>
wrote:

> Please add
>
>         using python ;
>
> to tools/build/v2/user-config.jam, as otherwise the
'quickstart' project
> won't get any python support whatsoever. Dave, do you
think some doc change,
> or code change is required to solve this issue?

I'm very surprised to see this, as I implemented and tested
python
auto-configuration myself.  The very top of
libs/python/build/Jamfile.v2 contains:

  import python ;

  if ! [ python.configured ] && ! ( --without-python
in  [ modules.peek : ARGV ] )
  {
      # Attempt default configuration of python
      import toolset : using ;
      using python ;

      if ! [ python.configured ]
      {
          ECHO "WARNING: No python installation
configured and autoconfiguration" ; 
          ECHO "         failed.  See http://www.boost.org/libs/python/doc/building.html"
 ;
          ECHO "         for configuration instructions
or pass --without-python to" ;
          ECHO "         suppress this message and
silently skip all Boost.Python targets" ;
      }
  }

...oh, maybe the order of targets in the quickstart example
got
changed at the last minute.


  # Set up the project-wide requirements that everything
uses the
  # boost_python library defined in the project whose global
ID is
  # /boost/python.
  project
    : requirements
<library>/boost/python//boost_python ;

  # Declare a Python extension called hello.
  python-extension extending : extending.cpp ;

  # Declare an executable called embedding that embeds
Python
  exe embedding : embedding.cpp /python//python ;

If it was the other way around, presumably the dependency on
the
boost_python target would have caused
libs/python/build/Jamfile.v2 to
be read.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-cons
ulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )