Boost logo

Boost-Build :

From: Patrick Tan (pxt_at_[hidden])
Date: 2005-12-14 22:15:02


Hi,

I'm trying to write a Boost-build V2 Jamfile so that a library is built
differently depending on what operating system I'm building it on. But
I"m having some problems, I looked at an example in the tutorial

http://www.boost.org/doc/html/bbv2/reference/definitions.html#bbv2.reference.variants.propcond

In there it specifies that you can use the <os> feature. Below is the my
Jamfile

lib platform
        :
        : <os>LINUX
          <file>/usr/local/sdk/om174/lib/liboapilnx.so
        ;

lib platform
        :
        : <os>SOLARIS
         <file>/lib/solaris-sparc/om174/liboapisun.so
        ;

exe test
       : test.cc platform
       ;

I get the following error message:

/home/pattan/boost-build/build/feature.jam:431: in
feature.validate-value-string from module feature
error: "SOLARIS" is not a known value of feature <os>
error: legal values: "LINUX"
/home/pattan/boost-build/build/property.jam:249: in validate1 from
module property
/home/pattan/boost-build/build/property.jam:272: in validate from module
property
/home/pattan/boost-build/build/property.jam:410: in
property.translate-paths from module property
/home/pattan/boost-build/build/targets.jam:1202: in
targets.main-target-requirements from module targets
/home/pattan/boost-build/tools/builtin.jam:476: in lib from module builtin
Jamfile:31: in modules.load from module
Jamfile</home/pattan/repo/trunk/cats/catd/catdau>
/home/pattan/boost-build/build/project.jam:255: in load-jamfile from
module project
/home/pattan/boost-build/build/project.jam:67: in project.load from
module project
/home/pattan/boost-build/build-system.jam:75: in load from module
build-system
/home/pattan/boost-build/kernel/modules.jam:259: in import from module
modules
/home/pattan/boost-build/kernel/bootstrap.jam:120: in boost-build from
module
/home/pattan/boost-build/boost-build.jam:1: in module scope from module

Would anyone know what I'm doing wrong?

Regards,

Patrick


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