Boost logo

Boost :

Subject: Re: [boost] Build: Trying to get Boost.Build to see my OpenSSL onWindows
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2016-10-01 14:50:04


On Sat, Oct 1, 2016 at 2:45 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> '\' is an escape character. Use '/' or '\\'

This entry:

lib ssl
  : # sources
  : # requirements
    <name>ssleay32MT
    <include>x
  : # default-build
    <include>x
  : # usage-requirements
    <include>x
  ;

Produces this output:

file bin\msvc-14.0\debug\threading-multi\client.obj.rsp
"client.cpp" -Fo"bin\msvc-14.0\debug\threading-multi\client.obj"
-TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
-DBOOST_SYSTEM_DYN_LINK=1
-D_WIN32_WINNT=0x0501
"-ID:\lib\boost_1_61_0"
compile-c-c++ bin\msvc-14.0\debug\threading-multi\client.obj

    call "C:\Users\Vinnie\AppData\Local\Temp\b2_msvc_14.0_vcvarsall_x86.cmd"
>nul
cl /Zm800 -nologo @"bin\msvc-14.0\debug\threading-multi\client.obj.rsp"

client.cpp
D:\lib\boost_1_61_0\boost/asio/ssl/detail/openssl_types.hpp(19): fatal
error C1083: Cannot open include file: 'openssl/conf.h': No such file
or directory

Notice how "x" doesn't even appear on the command line.

However, if I do something like put the <include> line in the sources
section, I get an error "property found in sources" - this tells me
that the site-config.jam is being loaded and processed. Its just that
the include property is not being applied to the resulting build
commands.

> Also, to access environmental variables,
> use [ os.environ OPPENSSL_LIBRARIES ]. You'll
> need to add import os to call this.

Yep, that all works - thanks for confirming!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk