Boost logo

Boost-Build :

Subject: [Boost-build] Linking to libboost_filesystem in own bjam-based projet
From: Andreas (lists_at_[hidden])
Date: 2010-02-13 08:39:37


Hi there,

I'm trying to set up Boost.Build for my own project, which references
libboost_filesystem.

When I run

    bjam release avg_asp

I get the following output:

    andreas_at_rodin:~/src/libdoas/src/tools$ bjam release avg_asp -n
    /home/andreas/lib/build/boost_1_42_0/Jamroot:637: in modules.load
    rule targets.create-metatarget unknown in module Jamfile</home
/andreas/lib/build/boost_1_42_0>.
    /usr/share/boost-build/build/project.jam:312: in load-jamfile
    /usr/share/boost-build/build/project.jam:68: in project.load
    /usr/share/boost-build/build/project.jam:718: in project.use
    /usr/share/boost-build/build/project.jam:94: in
project.load-used-projects
    /usr/share/boost-build/build-system.jam:105: in load-config
    /usr/share/boost-build/build-system.jam:154: in load
    /usr/share/boost-build/kernel/modules.jam:261: in import
    /usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build
    /usr/share/boost-build/boost-build.jam:1: in module scope

I'd really appreciate some help getting this fixed...

~/user-config.jam::

    # -----------------
    # System libraries
    # -----------------

    project site-config ;
    lib netcdf : : <name>netcdf ;

    # ------------------------
    # Include Boost libraries
    # ------------------------

    use-project /boost : /home/andreas/lib/build/boost_1_42_0 ;

~/src/libdoas/Jamroot::

    project
        : requirements <include>/home/andreas/include/boost-1_42
        : requirements <include>include
        ;

~/src/libdoas/src/lib/Jamfile::

    lib libdoas : [ glob *.cpp ] /site-config//netcdf ;

~/src/libdoas/src/tools/Jamfile::

    exe avg_asp : avg_asp.cpp /boost//boost_filesystem ;
    exe b3dcols_to_pgl : b3dcols_to_pgl.cpp ;

In the directory /home/andreas/lib/build/boost_1_42_0, I already did the
following::

    ./bootstrap.sh --prefix=/home/andreas
    bjam

Any ideas?

Thanks a lot,

Andreas.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk