Boost logo

Boost-Build :

Subject: [Boost-build] Selecting library by requirements <address-model> and <target-os>
From: Klemens Morgenstern (klemens.morgenstern_at_[hidden])
Date: 2016-06-06 10:03:24


Hi,

for my project, I need to select a static library, based on the
address-model (or architecture) and target-os, since I am
cross-compiling. I'm trying this

lib ftd2xx : : <file>win/x32/ftd2xx.lib <target-os>windows
<address-model>32 <link>static ;
lib ftd2xx : : <file>win/x64/ftd2xx.lib <target-os>windows
<address-model>64 <link>static ;
lib ftd2xx : : <file>linux/x32/libftd2xx.a <target-os>linux
<address-model>32 <link>static ;
lib ftd2xx : : <file>linux/x64/libftd2xx.a <target-os>linux
<address-model>64 <link>static ;

lib ftdi : category.cpp device.cpp ftd2xx : <link>shared ;

but this only gives me this error

error: No best alternative for ./ftd2xx
     next alternative: required properties: <address-model>32
<link>static <target-os>windows
         not matched
     next alternative: required properties: <address-model>64
<link>static <target-os>windows
         not matched
     next alternative: required properties: <address-model>32
<link>static <target-os>linux
         not matched
     next alternative: required properties: <address-model>64
<link>static <target-os>linux
         not matched

and does result in no linking of any of those libraries for ftdi.

What am I missing?

Thanks,

Klemens


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