From torrin.jones at baesystems.com Thu May 16 15:43:30 2019 From: torrin.jones at baesystems.com (Jones, Torrin A (US)) Date: Thu, 16 May 2019 19:43:30 +0000 Subject: [C++-sig] Python support in boost::python (what version) Message-ID: <454hhW1T16zndqq@mail.python.org> What version of python does boost::python officially support? I noticed in the python build file (see link below), it will only find from version 1.5 to 3.4. Does this mean that boost python really only supports up to 3.4? Folks do appear to be using other versions, but the fact that this only goes to 3.4 leads me to believe that is as far as it's been tested. Is that right? What are the official versions? Is there any documentation that says that? https://github.com/boostorg/build/blob/develop/src/tools/python.jam#L401 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan at seefeld.name Thu May 16 15:56:49 2019 From: stefan at seefeld.name (stefan) Date: Thu, 16 May 2019 15:56:49 -0400 Subject: [C++-sig] Python support in boost::python (what version) In-Reply-To: <454hhW1T16zndqq@mail.python.org> References: <454hhW1T16zndqq@mail.python.org> Message-ID: On 2019-05-16 3:43 p.m., Jones, Torrin A (US) wrote: > What version of python does boost::python officially support? > Anything above version 2.2 > I noticed in the python build file (see link below), it will only find > from version 1.5 to 3.4.? Does this mean that boost python really only > supports up to 3.4? Folks do appear to be using other versions, but > the fact that this only goes to 3.4 leads me to believe that is as far > as it?s been tested.? Is that right? > Definitely not. You are right, though: this file needs to be fixed. (I'm not maintaining this file myself, so I'll follow up with the relevant people (Boost.Build).) Boost internally regularly builds and tests Boost.Python with versions > 3.4. and I know various distributions containing Boost.Python packages built against more recent Python versions. See for example https://anaconda.org/anaconda/boost/files > What are the official versions? Is there any documentation that says that? > Not really, as Boost only "officially" releases source packages. Users are free to compile against a large range of tools and prerequisites (compilers, Python versions, etc.). If you find any issues building and running against a particular Python version, please file a bug report, and I'll try to help as quickly as possible. Stefan -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.png Type: image/png Size: 1478 bytes Desc: not available URL: From jrizos at 400capital.com Thu May 16 16:33:55 2019 From: jrizos at 400capital.com (Jimmy Rizos) Date: Thu, 16 May 2019 20:33:55 +0000 Subject: [C++-sig] Cant link Boost Python Examples Message-ID: Hello, As I am sure others have run into this problem, surprisingly there is very little actually describing a solution. I just built boost 1.70 yesterday but has still not been able to successfully build the tests. Below is the output I get. I cant find a boost_python library anywhere. I am using 32bit python 3.5 through anaconda. Any advice would be appreciated. Thanks C:\Development\boost_1_70_0\libs\python\example\quickstart> ..\..\..\..\b2.exe toolset=msvc link=shared --verbose-test test ...found 34 targets... ...updating 9 targets... msvc.link.dll extending.pyd LINK : fatal error LNK1181: cannot open input file 'boost_python.lib' call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat" >nul link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST /subsystem:console /out:"extending.pyd" /LIBPATH:"C:\Miniconda3\libs" @"extending.pyd.rsp" if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% ...failed msvc.link.dll extending.pyd extending.pdb... ...skipped test_ext for lack of extending.pyd... compile-c-c++ embedding.obj embedding.cpp C:\Development\boost_1_70_0\boost/python/detail/wrap_python.hpp(57): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat" >nul cl /Zm800 -nologo @"embedding.obj.rsp" ...failed compile-c-c++ embedding.obj... ...skipped test_embed.exe for lack of embedding.obj... ...skipped test_embed.run for lack of test_embed.exe... ...failed updating 3 targets... ...skipped 5 targets... C:\Development\boost_1_70_0\libs\python\example\quickstart> Jimmy Rizos Managing Director, Chief Technology Officer [cid:image001.gif at 01CC76C9.E6CF4870] 400 Capital Management LLC | 510 Madison Avenue | 17th Floor | New York, NY 10022 o 212.767.3136 | m 917.716.4108 | jimmy.rizos at 400capital.com | www.400capital.com This email, together with its attachments, if any, and the information contained therein is confidential and is intended solely for the recipient. Delivery of this email or any of the information contained herein to anyone other than the recipient or his designated representative is unauthorized and any other use, reproduction, distribution or copying of this email or the information contained herein, in whole or in part, without the prior written consent of 400 Capital Management LLC or its affiliates is prohibited. 400 Capital Management LLC accepts no liability for any errors or omissions arising as a result of this transmission. No assurances are given that this e-mail message and any attachments are free of viruses and/or other harmful code, and 400 Capital Management LLC accepts no liability for any damage sustained as a result of such viruses or harmful code. The contents of this e-mail message and any attachments should not be regarded as a solicitation or offer to buy or sell any securities. This email and the information contained herein shall not constitute an offer to sell or the solicitation of an offer to purchase an interest in a fund. Any such offer or solicitation will be made to qualified investors only by means of delivery of appropriate documentation, including without limitation, offering memoranda and related subscription agreement as applicable. Securities shall not be offered or sold in any jurisdiction in which such offer, solicitation or sale would be unlawful until the requirements of the laws of such jurisdiction have been satisfied. Any performance information contained herein may be unaudited and estimated. Past performance is not indicative of future results. If you have received this message in error, please notify the sender immediately and delete this message and any related attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1059 bytes Desc: image001.gif URL: From lewis.evans at bayforest.ai Fri May 17 09:40:33 2019 From: lewis.evans at bayforest.ai (Lewis Evans) Date: Fri, 17 May 2019 14:40:33 +0100 Subject: [C++-sig] Cant Link Boost python example / Re: Cplusplus-sig Digest, Vol 118, Issue 1 In-Reply-To: References: Message-ID: Afternoon, We built boost 1.70.0 with python 3.7 just two days ago, and we also encountered the error about pyconfig.h. We resolved it with this env-var export of CPLUS_INCLUDE_PATH: export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/miniconda/envs/python3/include/python3.7m/" (you will need to change the path to the location of your local install of python-anaconda) Bayforest Technologies Limited 16 Berkeley Street London, W1J 8DZ work1: +44 203 907 3883 (dial-in for UK) work2: +1 347 746 0976 (dial-in for US) email: lewis.evans at bayforest.ai web: https://bayforest.ai/ On Fri, May 17, 2019 at 2:18 PM wrote: > Send Cplusplus-sig mailing list submissions to > cplusplus-sig at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/cplusplus-sig > or, via email, send a message with subject or body 'help' to > cplusplus-sig-request at python.org > > You can reach the person managing the list at > cplusplus-sig-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cplusplus-sig digest..." > > > Today's Topics: > > 1. Python support in boost::python (what version) > (Jones, Torrin A (US)) > 2. Re: Python support in boost::python (what version) (stefan) > 3. Cant link Boost Python Examples (Jimmy Rizos) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 16 May 2019 19:43:30 +0000 > From: "Jones, Torrin A (US)" > To: 'Development of Python/C++ integration' > Subject: [C++-sig] Python support in boost::python (what version) > Message-ID: <454hhW1T16zndqq at mail.python.org> > Content-Type: text/plain; charset="us-ascii" > > What version of python does boost::python officially support? I noticed > in the python build file (see link below), it will only find from version > 1.5 to 3.4. Does this mean that boost python really only supports up to > 3.4? Folks do appear to be using other versions, but the fact that this > only goes to 3.4 leads me to believe that is as far as it's been tested. > Is that right? > > What are the official versions? Is there any documentation that says that? > > https://github.com/boostorg/build/blob/develop/src/tools/python.jam#L401 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/018ed420/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Thu, 16 May 2019 15:56:49 -0400 > From: stefan > To: cplusplus-sig at python.org > Subject: Re: [C++-sig] Python support in boost::python (what version) > Message-ID: > Content-Type: text/plain; charset="windows-1252"; Format="flowed" > > On 2019-05-16 3:43 p.m., Jones, Torrin A (US) wrote: > > > What version of python does boost::python officially support? > > > Anything above version 2.2 > > > I noticed in the python build file (see link below), it will only find > > from version 1.5 to 3.4.? Does this mean that boost python really only > > supports up to 3.4? Folks do appear to be using other versions, but > > the fact that this only goes to 3.4 leads me to believe that is as far > > as it?s been tested.? Is that right? > > > Definitely not. You are right, though: this file needs to be fixed. (I'm > not maintaining this file myself, so I'll follow up with the relevant > people (Boost.Build).) > > Boost internally regularly builds and tests Boost.Python with versions > > 3.4. and I know various distributions containing Boost.Python packages > built against more recent Python versions. > > See for example https://anaconda.org/anaconda/boost/files > > > What are the official versions? Is there any documentation that says > that? > > > Not really, as Boost only "officially" releases source packages. Users > are free to compile against a large range of tools and prerequisites > (compilers, Python versions, etc.). > > If you find any issues building and running against a particular Python > version, please file a bug report, and I'll try to help as quickly as > possible. > > > Stefan > > -- > > ...ich hab' noch einen Koffer in Berlin... > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/f7073771/attachment-0001.html > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.png > Type: image/png > Size: 1478 bytes > Desc: not available > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/f7073771/attachment-0001.png > > > > ------------------------------ > > Message: 3 > Date: Thu, 16 May 2019 20:33:55 +0000 > From: Jimmy Rizos > To: "'cplusplus-sig at python.org'" > Subject: [C++-sig] Cant link Boost Python Examples > Message-ID: > Content-Type: text/plain; charset="windows-1252" > > Hello, > > As I am sure others have run into this problem, surprisingly there is very > little actually describing a solution. > I just built boost 1.70 yesterday but has still not been able to > successfully build the tests. Below is the output I get. I cant find a > boost_python library anywhere. > I am using 32bit python 3.5 through anaconda. > > Any advice would be appreciated. > Thanks > > C:\Development\boost_1_70_0\libs\python\example\quickstart> > ..\..\..\..\b2.exe toolset=msvc link=shared --verbose-test test > ...found 34 targets... > ...updating 9 targets... > msvc.link.dll extending.pyd > LINK : fatal error LNK1181: cannot open input file 'boost_python.lib' > > call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat" >nul > link /NOLOGO /INCREMENTAL:NO /DLL /NOENTRY /DEBUG /MACHINE:X86 /MANIFEST > /subsystem:console /out:"extending.pyd" /LIBPATH:"C:\Miniconda3\libs" > @"extending.pyd.rsp" > if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL% > > ...failed msvc.link.dll extending.pyd extending.pdb... > ...skipped test_ext for lack of extending.pyd... > compile-c-c++ embedding.obj > embedding.cpp > C:\Development\boost_1_70_0\boost/python/detail/wrap_python.hpp(57): fatal > error C1083: Cannot open include file: 'pyconfig.h': No such file or > directory > > call "..\bin\standalone\msvc\msvc-14.1\msvc-setup.bat" >nul > cl /Zm800 -nologo @"embedding.obj.rsp" > > ...failed compile-c-c++ embedding.obj... > ...skipped test_embed.exe for lack of embedding.obj... > ...skipped test_embed.run for lack of test_embed.exe... > ...failed updating 3 targets... > ...skipped 5 targets... > > C:\Development\boost_1_70_0\libs\python\example\quickstart> > > Jimmy Rizos > Managing Director, Chief Technology Officer > > [cid:image001.gif at 01CC76C9.E6CF4870] > 400 Capital Management LLC | 510 Madison Avenue | 17th Floor | > New York, NY 10022 > o 212.767.3136 | m 917.716.4108 | jimmy.rizos at 400capital.com jimmy.rizos at 400capital.com> | www.400capital.com > > > > > This email, together with its attachments, if any, and the information > contained therein is confidential and is intended solely for the recipient. > Delivery of this email or any of the information contained herein to anyone > other than the recipient or his designated representative is unauthorized > and any other use, reproduction, distribution or copying of this email or > the information contained herein, in whole or in part, without the prior > written consent of 400 Capital Management LLC or its affiliates is > prohibited. 400 Capital Management LLC accepts no liability for any errors > or omissions arising as a result of this transmission. No assurances are > given that this e-mail message and any attachments are free of viruses > and/or other harmful code, and 400 Capital Management LLC accepts no > liability for any damage sustained as a result of such viruses or harmful > code. The contents of this e-mail message and any attachments should not be > regarded as a solicitation or offer to buy or sel > l any securities. This email and the information contained herein shall > not constitute an offer to sell or the solicitation of an offer to purchase > an interest in a fund. Any such offer or solicitation will be made to > qualified investors only by means of delivery of appropriate documentation, > including without limitation, offering memoranda and related subscription > agreement as applicable. Securities shall not be offered or sold in any > jurisdiction in which such offer, solicitation or sale would be unlawful > until the requirements of the laws of such jurisdiction have been > satisfied. Any performance information contained herein may be unaudited > and estimated. Past performance is not indicative of future results. If you > have received this message in error, please notify the sender immediately > and delete this message and any related attachments. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/799cb300/attachment.html > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: image001.gif > Type: image/gif > Size: 1059 bytes > Desc: image001.gif > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190516/799cb300/attachment.gif > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig at python.org > https://mail.python.org/mailman/listinfo/cplusplus-sig > > > ------------------------------ > > End of Cplusplus-sig Digest, Vol 118, Issue 1 > ********************************************* > Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- The information contained in this transmission may contain privileged and confidential information.? It is intended only for the use of the person(s) named above.? If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited.? This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Bayforest Capital Limited and Bayforest Technologies Limited.? If you are not the intended recipient, please contact the sender by replying to this e-mail and destroy all copies of this e-mail (and any attachment(s)) from your system.? To reply to our e-mail administrator directly, please send an e-mail to admin at bayforest.ai . -------------- next part -------------- An HTML attachment was scrubbed... URL: From torrin.jones at baesystems.com Mon May 20 11:20:29 2019 From: torrin.jones at baesystems.com (Jones, Torrin A (US)) Date: Mon, 20 May 2019 15:20:29 +0000 Subject: [C++-sig] Python support in boost::python (what version) In-Reply-To: Message-ID: <4572gB6zBqzp7Gq@mail.python.org> Anything above version 2.2 OK, I understand what you are saying below, but there seems to be a little bit more to this . . . Example: This was fixed in boost-1.67.0. So in theory, nothing below boost python 1.67.0 supports Python 3.7. I guess I didn't ask about older versions of boost python though. https://github.com/boostorg/python/commit/660487c43fde76f3e64f1cb2e644500da92fe582 For clarity, my boss is asking, "what version of python does boost python support?" I was hoping there was some kind of table or something, but I guess the answer is something like, "It supports whatever version of python was out at the time that boost python was released?" And then we can go back and look at release dates. LOL. Ex: boost python 1.66.0 was released/tagged on Nov 17, 2017. Python 3.6.3 was released on Oct 3, 2017. Python 3.6.4 was released on Dec 19. 2017. So in theory boost python 1.66.0 has support for Python 3.6.3, but does not have support for Python 3.6.4. I know that's ludicrous but, I work in the corporate world so here we are. There isn't another question here, but if you have any other thoughts on this please reply. From: Cplusplus-sig [mailto:cplusplus-sig-bounces+torrin.jones=baesystems.com at python.org] On Behalf Of stefan Sent: Thursday, May 16, 2019 12:57 PM To: cplusplus-sig at python.org Subject: Re: [C++-sig] Python support in boost::python (what version) *** WARNING *** EXTERNAL EMAIL -- This message originates from outside our organization. On 2019-05-16 3:43 p.m., Jones, Torrin A (US) wrote: What version of python does boost::python officially support? Anything above version 2.2 I noticed in the python build file (see link below), it will only find from version 1.5 to 3.4. Does this mean that boost python really only supports up to 3.4? Folks do appear to be using other versions, but the fact that this only goes to 3.4 leads me to believe that is as far as it's been tested. Is that right? Definitely not. You are right, though: this file needs to be fixed. (I'm not maintaining this file myself, so I'll follow up with the relevant people (Boost.Build).) Boost internally regularly builds and tests Boost.Python with versions > 3.4. and I know various distributions containing Boost.Python packages built against more recent Python versions. See for example https://anaconda.org/anaconda/boost/files What are the official versions? Is there any documentation that says that? Not really, as Boost only "officially" releases source packages. Users are free to compile against a large range of tools and prerequisites (compilers, Python versions, etc.). If you find any issues building and running against a particular Python version, please file a bug report, and I'll try to help as quickly as possible. [Stefan] -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1478 bytes Desc: image001.png URL: From stefan at seefeld.name Mon May 20 12:15:43 2019 From: stefan at seefeld.name (Stefan Seefeld) Date: Mon, 20 May 2019 12:15:43 -0400 Subject: [C++-sig] Python support in boost::python (what version) In-Reply-To: <4572gB6zBqzp7Gq@mail.python.org> References: <4572gB6zBqzp7Gq@mail.python.org> Message-ID: <3ed4671b-943c-fcbf-9342-aa049459c8f8@seefeld.name> On 2019-05-20 11:20 a.m., Jones, Torrin A (US) wrote: > > For clarity, my boss is asking, ?what version of python does boost > python support??? I was hoping there was some kind of table or > something, but I guess the answer is something like, ?It supports > whatever version of python was out at the time that boost python was > released?? And then we can go back and look at release dates.? LOL. > What did you expect ? It's obvious that a given release of Boost.Python can not make any compatibility guarantees about future Python releases, unless, of course, Python itself promises to be fully backward compatible. That's precisely why the versioning scheme used by Python supports the distinction between "major" and "minor" version, to be able to make statements as to what degree of backward-compatibility to expect. > Ex: boost python 1.66.0 was released/tagged on Nov 17, 2017.? Python > 3.6.3 was released on Oct 3, 2017.? Python 3.6.4 was released on Dec > 19. 2017. So in theory boost python 1.66.0 has support for Python > 3.6.3, but does not have support for Python 3.6.4.? I know that?s > ludicrous but, I work in the corporate world so here we are. > What's your point, exactly ? What are you trying to do ? (For the specific case, I would *hope* that Boost.Python 1.66.0 was compatible with Python 3.6.4, for the reason I cite above. But of course, there is no guarantee. Boost is Free Software, and its license (https://www.boost.org/users/license.html) clearly states that it is provided "...without warranty of any kind...". So make of it what you want.) Stefan -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: .signature.png Type: image/png Size: 2754 bytes Desc: not available URL: From patrickfinnvfx at gmail.com Mon May 20 09:07:41 2019 From: patrickfinnvfx at gmail.com (Patrick Finn) Date: Mon, 20 May 2019 14:07:41 +0100 Subject: [C++-sig] openexr can't find boost python Message-ID: Hi, I've managed to build openexr and Ilmbase but am having trouble building pyilmbase that other projects need like alembic etc. I found an openexr build that has a single CMakeLIsts.txt to build the whole project so tried that instead and the only error that is popping up so far is an inability to find boost python. I think it's using find_package in a nested cmakeLists file and I I get: -- Could NOT find Boost CMake Warning at CMakeLists.txt:36 (message): Make boost Python available to CMake's search path, and re-run configuration CMake Error at CMakeLists.txt:37 (message): boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is set I've tried building boost1.69.0 with bjam and it says succesfully built and gives me two directories to add as libs to other cmake commands. I've tried adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to run a 'pip install boost' in case that the boost python was a separate install but it still didn't work. This is about where my knowledge level runs out and it's a bit blind trial and error for me at this stage. If anyone could offer any help it would be really appreciated! Thanks, Paddy -------------- next part -------------- An HTML attachment was scrubbed... URL: From paddophin at gmail.com Mon May 20 12:14:31 2019 From: paddophin at gmail.com (Paddy Finn) Date: Mon, 20 May 2019 17:14:31 +0100 Subject: [C++-sig] cmake can't find boost python Message-ID: Hi, Please let me say at he outset, that I'm sure this is something daft that I'm doing wrong / not doing but this isn't my area of expertise. . . I've managed to build openexr and Ilmbase but am having trouble building pyilmbase that other projects need like alembic etc. I found an openexr build that has a single CMakeLIsts.txt to build the whole project so tried that instead and the only error that is popping up so far is an inability to find boost python. I think it's using find_package in a nested cmakeLists file and I I get: -- Could NOT find Boost CMake Warning at CMakeLists.txt:36 (message): Make boost Python available to CMake's search path, and re-run configuration CMake Error at CMakeLists.txt:37 (message): boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is set I've tried building boost1.69.0 with bjam and it says succesfully built and gives me two directories to add as libs to other cmake commands. I've tried adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to run a 'pip install boost' in case that the boost python was a separate install but it still didn't work. This is about where my knowledge level runs out and it's a bit blind trial and error for me at this stage. If anyone could offer any help it would be really appreciated! Thanks, Paddy -------------- next part -------------- An HTML attachment was scrubbed... URL: From jandyman.voelkel at gmail.com Mon May 20 17:41:36 2019 From: jandyman.voelkel at gmail.com (Andrew Voelkel) Date: Mon, 20 May 2019 21:41:36 +0000 Subject: [C++-sig] Boost.Python simple example won't build Message-ID: Hello, I am new to Boost.Python and am trying to follow the Getting Started instructions here: https://www.boost.org/doc/libs/1_70_0/libs/python/doc/html/building/no_install_quickstart.html The first step is to ?get the bjam build driver? and I?m referred to section 5 of the generic Boost Getting Started Guide. But section 5 of the generic Getting Started guide doesn?t explain how to ?get the bjam build driver?, or explain what the bjam driver is or how it works. So I followed all the instructions to build and install Boost itself under section 5 ?Easy Build and Install? of the generic Boost Getting Started guide (https://www.boost.org/doc/libs/1_70_0/more/getting_started/unix-variants.html). But this also fails at the step ?./b2 install?, apparently because include paths are not set up correctly. But there is no explanation of how to set up include paths, and after all I am not supposed to need a complete install anyway. And since I?m apparently using a build engine, rather than an existing makefile or such, I don?t know to configure the include paths, and I don?t know what they should be anyway. So I should back up. Is there a version of quickstart instructions that doesn?t refer you to another guide which doesn?t seem to explain what is needed anyway? How do I ?Get the bjam build driver?. And what is it anyway? Won?t I need to know something about it to use Boost.Python? I don?t need any of Boost except for Boost.Python. Sorry for newbie question. I?m new to Boost, but I?m NOT a newbie programmer, so I?m probably some justified in being confused by the instructions. * Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From lewis.evans at bayforest.ai Tue May 21 08:45:55 2019 From: lewis.evans at bayforest.ai (Lewis Evans) Date: Tue, 21 May 2019 13:45:55 +0100 Subject: [C++-sig] "cmake can't find boost python (Paddy Finn)" In-Reply-To: References: Message-ID: We use cmake and build C++ against boost-python (boost 1.70.0, python 3.7). We set the envvar "BOOST_ROOT" to the correct folder; Include files are in folder %BOOST_ROOT%\boost Libraries are in %BOOST_ROOT%\libs. Once you've done that, cmake's command find_package(Boost REQUIRED_COMPONENTS date_time ... python) should succeed (we check the cmake flag variable Boost_FOUND after the call to find_package). To verify that your original build of boost completed as intended, you can check what's in the directory BOOST_ROOT/lib, eg does that folder contain libboost_python.* with various endings (eg .a, .so for linux)? Also the version of python you have in BOOST_ROOT/lib should match the one that you get from typing "python" at the command prompt. Hope that helps Lewis Bayforest Technologies Limited 16 Berkeley Street London, W1J 8DZ work1: +44 203 907 3883 (dial-in for UK) work2: +1 347 746 0976 (dial-in for US) email: lewis.evans at bayforest.ai web: https://bayforest.ai/ On Tue, May 21, 2019 at 1:32 PM wrote: > Send Cplusplus-sig mailing list submissions to > cplusplus-sig at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/cplusplus-sig > or, via email, send a message with subject or body 'help' to > cplusplus-sig-request at python.org > > You can reach the person managing the list at > cplusplus-sig-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cplusplus-sig digest..." > > > Today's Topics: > > 1. Re: Python support in boost::python (what version) > (Stefan Seefeld) > 2. openexr can't find boost python (Patrick Finn) > 3. cmake can't find boost python (Paddy Finn) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 20 May 2019 12:15:43 -0400 > From: Stefan Seefeld > To: cplusplus-sig at python.org > Subject: Re: [C++-sig] Python support in boost::python (what version) > Message-ID: <3ed4671b-943c-fcbf-9342-aa049459c8f8 at seefeld.name> > Content-Type: text/plain; charset="windows-1252"; Format="flowed" > > > On 2019-05-20 11:20 a.m., Jones, Torrin A (US) wrote: > > > > For clarity, my boss is asking, ?what version of python does boost > > python support??? I was hoping there was some kind of table or > > something, but I guess the answer is something like, ?It supports > > whatever version of python was out at the time that boost python was > > released?? And then we can go back and look at release dates.? LOL. > > > What did you expect ? It's obvious that a given release of Boost.Python > can not make any compatibility guarantees about future Python releases, > unless, of course, Python itself promises to be fully backward > compatible. That's precisely why the versioning scheme used by Python > supports the distinction between "major" and "minor" version, to be able > to make statements as to what degree of backward-compatibility to expect. > > > Ex: boost python 1.66.0 was released/tagged on Nov 17, 2017.? Python > > 3.6.3 was released on Oct 3, 2017.? Python 3.6.4 was released on Dec > > 19. 2017. So in theory boost python 1.66.0 has support for Python > > 3.6.3, but does not have support for Python 3.6.4.? I know that?s > > ludicrous but, I work in the corporate world so here we are. > > > What's your point, exactly ? What are you trying to do ? > > (For the specific case, I would *hope* that Boost.Python 1.66.0 was > compatible with Python 3.6.4, for the reason I cite above. But of > course, there is no guarantee. Boost is Free Software, and its license > (https://www.boost.org/users/license.html) clearly states that it is > provided "...without warranty of any kind...". So make of it what you > want.) > > Stefan > -- > > ...ich hab' noch einen Koffer in Berlin... > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/e025f3d1/attachment-0001.html > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: .signature.png > Type: image/png > Size: 2754 bytes > Desc: not available > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/e025f3d1/attachment-0001.png > > > > ------------------------------ > > Message: 2 > Date: Mon, 20 May 2019 14:07:41 +0100 > From: Patrick Finn > To: cplusplus-sig at python.org > Subject: [C++-sig] openexr can't find boost python > Message-ID: > < > CAC5oZGGsHBVVmxavMp5F_piasSvwTxG5gNYJKE5ZOXJMJitaYw at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > I've managed to build openexr and Ilmbase but am having trouble building > pyilmbase that other projects need like alembic etc. I found an openexr > build that has a single CMakeLIsts.txt to build the whole project so tried > that instead and the only error that is popping up so far is an inability > to find boost python. I think it's using find_package in a nested > cmakeLists file and I I get: > > -- Could NOT find Boost > CMake Warning at CMakeLists.txt:36 (message): > Make boost Python available to CMake's search path, and re-run > configuration > > > CMake Error at CMakeLists.txt:37 (message): > boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is > set > > > I've tried building boost1.69.0 with bjam and it says succesfully built and > gives me two directories to add as libs to other cmake commands. I've tried > adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / > -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to > run a 'pip install boost' in case that the boost python was a separate > install but it still didn't work. This is about where my knowledge level > runs out and it's a bit blind trial and error for me at this stage. If > anyone could offer any help it would be really appreciated! > > Thanks, > Paddy > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/42761d86/attachment.html > > > > ------------------------------ > > Message: 3 > Date: Mon, 20 May 2019 17:14:31 +0100 > From: Paddy Finn > To: cplusplus-sig at python.org > Subject: [C++-sig] cmake can't find boost python > Message-ID: > U5iA at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > Please let me say at he outset, that I'm sure this is something daft that > I'm doing wrong / not doing but this isn't my area of expertise. . . > > I've managed to build openexr and Ilmbase but am having trouble building > pyilmbase that other projects need like alembic etc. I found an openexr > build that has a single CMakeLIsts.txt to build the whole project so tried > that instead and the only error that is popping up so far is an inability > to find boost python. I think it's using find_package in a nested > cmakeLists file and I I get: > > -- Could NOT find Boost > CMake Warning at CMakeLists.txt:36 (message): > Make boost Python available to CMake's search path, and re-run > configuration > > > CMake Error at CMakeLists.txt:37 (message): > boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is > set > > > I've tried building boost1.69.0 with bjam and it says succesfully built and > gives me two directories to add as libs to other cmake commands. I've tried > adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / > -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to > run a 'pip install boost' in case that the boost python was a separate > install but it still didn't work. This is about where my knowledge level > runs out and it's a bit blind trial and error for me at this stage. If > anyone could offer any help it would be really appreciated! > > Thanks, > Paddy > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/698c6485/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig at python.org > https://mail.python.org/mailman/listinfo/cplusplus-sig > > > ------------------------------ > > End of Cplusplus-sig Digest, Vol 118, Issue 4 > ********************************************* > Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -- The information contained in this transmission may contain privileged and confidential information.? It is intended only for the use of the person(s) named above.? If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited.? This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Bayforest Capital Limited and Bayforest Technologies Limited.? If you are not the intended recipient, please contact the sender by replying to this e-mail and destroy all copies of this e-mail (and any attachment(s)) from your system.? To reply to our e-mail administrator directly, please send an e-mail to admin at bayforest.ai . -------------- next part -------------- An HTML attachment was scrubbed... URL: From torrin.jones at baesystems.com Wed May 22 13:41:40 2019 From: torrin.jones at baesystems.com (Jones, Torrin A (US)) Date: Wed, 22 May 2019 17:41:40 +0000 Subject: [C++-sig] Python support in boost::python (what version) In-Reply-To: <3ed4671b-943c-fcbf-9342-aa049459c8f8@seefeld.name> Message-ID: <458Kgy6L2JzpBQ2@mail.python.org> What did you expect ? It's obvious that a given release of Boost.Python can not make any compatibility guarantees about future Python releases . . . What's your point, exactly ? What are you trying to do ? You're right. All I'm trying to do is gather information that I can submit and hopefully get approved. I would *hope* that Boost.Python 1.66.0 was compatible with Python 3.6.4 Agreed. That was just an example for illustration. Not a criticism. And since you made the point about the major and minor version of python and backward-compatibility that's something else for me to think about before I present something. Thanks for your help on this. From: Cplusplus-sig [mailto:cplusplus-sig-bounces+torrin.jones=baesystems.com at python.org] On Behalf Of Stefan Seefeld Sent: Monday, May 20, 2019 9:16 AM To: cplusplus-sig at python.org Subject: Re: [C++-sig] Python support in boost::python (what version) *** WARNING *** EXTERNAL EMAIL -- This message originates from outside our organization. On 2019-05-20 11:20 a.m., Jones, Torrin A (US) wrote: For clarity, my boss is asking, "what version of python does boost python support?" I was hoping there was some kind of table or something, but I guess the answer is something like, "It supports whatever version of python was out at the time that boost python was released?" And then we can go back and look at release dates. LOL. What did you expect ? It's obvious that a given release of Boost.Python can not make any compatibility guarantees about future Python releases, unless, of course, Python itself promises to be fully backward compatible. That's precisely why the versioning scheme used by Python supports the distinction between "major" and "minor" version, to be able to make statements as to what degree of backward-compatibility to expect. Ex: boost python 1.66.0 was released/tagged on Nov 17, 2017. Python 3.6.3 was released on Oct 3, 2017. Python 3.6.4 was released on Dec 19. 2017. So in theory boost python 1.66.0 has support for Python 3.6.3, but does not have support for Python 3.6.4. I know that's ludicrous but, I work in the corporate world so here we are. What's your point, exactly ? What are you trying to do ? (For the specific case, I would *hope* that Boost.Python 1.66.0 was compatible with Python 3.6.4, for the reason I cite above. But of course, there is no guarantee. Boost is Free Software, and its license (https://www.boost.org/users/license.html) clearly states that it is provided "...without warranty of any kind...". So make of it what you want.) [Stefan] -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 2754 bytes Desc: image001.png URL: From jandyman.voelkel at gmail.com Wed May 22 13:55:41 2019 From: jandyman.voelkel at gmail.com (Andrew Voelkel) Date: Wed, 22 May 2019 17:55:41 +0000 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! Message-ID: Hi, I spent most of yesterday trying to get the simple tutorials and example to build from within the Boost example folders, and finally succeeded. It was not super straightforward as the instructions seem incomplete and out of date. But after finding a tutorial on Boost.Build and understanding how it works, I was able to debug the build process and get the test scripts to run successfully. Now I?d like to move to Spyder and run simple tests on the extension. However, when I try to execute a simple ?import hello_ext? statement, I get an error trying to locate a dependent library. No amount of setting paths seem to help. (I copied libboost_python37.dylib to /Users/andy before running this script. I?m on Mac OS Mojave Commands: import os print(os.environ['PATH']) os.environ['PATH'] += ':/Users/andy' os.environ['DYLD_LIBRARY_PATH'] = '/Users/andy' print(os.environ['PATH']) print(os.environ['DYLD_LIBRARY_PATH']) import hello_ext Output: /Users/andy/anaconda3/bin:/Users/andy/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin /Users/andy/anaconda3/bin:/Users/andy/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/andy /Users/andy Traceback (most recent call last): File "", line 7, in import hello_ext ImportError: dlopen(/Users/andy/Dropbox (Personal)/Developer/boost_1_70_0/libs/python/example/tutorial/hello_ext.so, 2): Library not loaded: libboost_python37.dylib Referenced from: /Users/andy/Dropbox (Personal)/Developer/boost_1_70_0/libs/python/example/tutorial/hello_ext.so Reason: image not found What magic is the boost environment performing to make this work? What can I do to make my python extensions look for libboost_python37.dylib in the location where it lives? Thanks in advance for any help! * Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan at seefeld.name Wed May 22 14:06:38 2019 From: stefan at seefeld.name (stefan) Date: Wed, 22 May 2019 14:06:38 -0400 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: References: Message-ID: On 2019-05-22 1:55 p.m., Andrew Voelkel wrote: > > What magic is the boost environment performing to make this work? What > can I do to make my python extensions look for libboost_python37.dylib > in the location where it lives? > Boost.Build does inject a variety of paths into the system-specific path variable (I believe on MacOS that would be DYLD_LIBRARY_PATH) such that test executables can locate any shared libs they require. But I also remember having seen cases where some OSX releases specifically would prevent that mechanism from working due to some security concerns. I'm not a Mac user, so all of this is second-hand information. Best, Stefan -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.png Type: image/png Size: 1478 bytes Desc: not available URL: From jandyman.voelkel at gmail.com Wed May 22 14:28:48 2019 From: jandyman.voelkel at gmail.com (Andrew Voelkel) Date: Wed, 22 May 2019 18:28:48 +0000 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: References: Message-ID: That is helpful. It might indeed be an issue with System Integrity Protection, now that I do the right google search. But that leads to the second question. It is possible to indicate within hello_ext.so where to look for the dylib. Then in theory this wouldn?t a problem, because I wouldn?t need to set DYLD_LIBRARY_PATH. Is this insertion of the path of libboost_python37.dylib into hello_ext.so something I can do with bjam, or am I going to have to figure out how to use a separate build system? * Andy From: Cplusplus-sig on behalf of stefan Reply-To: Development of Python/C++ integration Date: Wednesday, May 22, 2019 at 11:07 AM To: "cplusplus-sig at python.org" Subject: Re: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! On 2019-05-22 1:55 p.m., Andrew Voelkel wrote: What magic is the boost environment performing to make this work? What can I do to make my python extensions look for libboost_python37.dylib in the location where it lives? Boost.Build does inject a variety of paths into the system-specific path variable (I believe on MacOS that would be DYLD_LIBRARY_PATH) such that test executables can locate any shared libs they require. But I also remember having seen cases where some OSX releases specifically would prevent that mechanism from working due to some security concerns. I'm not a Mac user, so all of this is second-hand information. Best, [Stefan] -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1479 bytes Desc: image001.png URL: From torrin.jones at baesystems.com Wed May 22 14:30:55 2019 From: torrin.jones at baesystems.com (Jones, Torrin A (US)) Date: Wed, 22 May 2019 18:30:55 +0000 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: Message-ID: <458Lmh0x7hzpBvP@mail.python.org> You may need to set PYTHONPATH. Search for PYTHONPATH on this page for a description. https://docs.python.org/3/using/cmdline.html From: Cplusplus-sig [mailto:cplusplus-sig-bounces+torrin.jones=baesystems.com at python.org] On Behalf Of Andrew Voelkel Sent: Wednesday, May 22, 2019 10:56 AM To: Development of Python/C++ integration Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! *** WARNING *** EXTERNAL EMAIL -- This message originates from outside our organization. Hi, I spent most of yesterday trying to get the simple tutorials and example to build from within the Boost example folders, and finally succeeded. It was not super straightforward as the instructions seem incomplete and out of date. But after finding a tutorial on Boost.Build and understanding how it works, I was able to debug the build process and get the test scripts to run successfully. Now I'd like to move to Spyder and run simple tests on the extension. However, when I try to execute a simple "import hello_ext" statement, I get an error trying to locate a dependent library. No amount of setting paths seem to help. (I copied libboost_python37.dylib to /Users/andy before running this script. I'm on Mac OS Mojave Commands: import os print(os.environ['PATH']) os.environ['PATH'] += ':/Users/andy' os.environ['DYLD_LIBRARY_PATH'] = '/Users/andy' print(os.environ['PATH']) print(os.environ['DYLD_LIBRARY_PATH']) import hello_ext Output: /Users/andy/anaconda3/bin:/Users/andy/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin /Users/andy/anaconda3/bin:/Users/andy/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/andy /Users/andy Traceback (most recent call last): File "", line 7, in import hello_ext ImportError: dlopen(/Users/andy/Dropbox (Personal)/Developer/boost_1_70_0/libs/python/example/tutorial/hello_ext.so, 2): Library not loaded: libboost_python37.dylib Referenced from: /Users/andy/Dropbox (Personal)/Developer/boost_1_70_0/libs/python/example/tutorial/hello_ext.so Reason: image not found What magic is the boost environment performing to make this work? What can I do to make my python extensions look for libboost_python37.dylib in the location where it lives? Thanks in advance for any help! - Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan at seefeld.name Wed May 22 14:33:15 2019 From: stefan at seefeld.name (stefan) Date: Wed, 22 May 2019 14:33:15 -0400 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: References: Message-ID: On 2019-05-22 2:28 p.m., Andrew Voelkel wrote: > > That is helpful. It might indeed be an issue with System Integrity > Protection, now that I do the right google search. > > But that leads to the second question. It is possible to indicate > within hello_ext.so where to look for the dylib. Then in theory this > wouldn?t a problem, because I wouldn?t need to set DYLD_LIBRARY_PATH. > > Is this insertion of the path of libboost_python37.dylib into > hello_ext.so something I can do with bjam, or am I going to have to > figure out how to use a separate build system? > I'm cross-posting this to the Boost.Build mailing list, since that's the best (only ?) place where you'll get an answer to this question. Stefan -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.png Type: image/png Size: 1478 bytes Desc: not available URL: From stefan at seefeld.name Wed May 22 14:35:32 2019 From: stefan at seefeld.name (stefan) Date: Wed, 22 May 2019 14:35:32 -0400 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: <458Lmh0x7hzpBvP@mail.python.org> References: <458Lmh0x7hzpBvP@mail.python.org> Message-ID: On 2019-05-22 2:30 p.m., Jones, Torrin A (US) wrote: > > You may need to set PYTHONPATH.? Search for PYTHONPATH on this page > for a description. > > https://docs.python.org/3/using/cmdline.html > No, PYTHONPATH is used by the Python runtime to locate (Python) modules. It is not used to resolve shared library dependencies. Stefan -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.png Type: image/png Size: 1478 bytes Desc: not available URL: From jandyman.voelkel at gmail.com Wed May 22 14:53:38 2019 From: jandyman.voelkel at gmail.com (Andrew Voelkel) Date: Wed, 22 May 2019 18:53:38 +0000 Subject: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! In-Reply-To: References: <458Lmh0x7hzpBvP@mail.python.org> Message-ID: Nope, doesn?t help. However, based on your input, I found install_name_tool and used it to modify hello_ext.so to point to the actual location. That works well, so at least I have a path forward with boost.python. I?m not sure the bjam approach is buying me much compared to Xcode or make, but at least I?ve got it to work. * Andy From: Cplusplus-sig on behalf of stefan Reply-To: Development of Python/C++ integration Date: Wednesday, May 22, 2019 at 11:36 AM To: "cplusplus-sig at python.org" Subject: Re: [C++-sig] Getting simple boost.python extension to work outside the test scripts - HELP! On 2019-05-22 2:30 p.m., Jones, Torrin A (US) wrote: You may need to set PYTHONPATH. Search for PYTHONPATH on this page for a description. https://docs.python.org/3/using/cmdline.html No, PYTHONPATH is used by the Python runtime to locate (Python) modules. It is not used to resolve shared library dependencies. [Stefan] -- ...ich hab' noch einen Koffer in Berlin... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1479 bytes Desc: image001.png URL: From paddophin at gmail.com Thu May 23 03:22:37 2019 From: paddophin at gmail.com (Paddy Finn) Date: Thu, 23 May 2019 08:22:37 +0100 Subject: [C++-sig] "cmake can't find boost python (Paddy Finn)" In-Reply-To: References: Message-ID: Thanks Lewis, that certainly did help and got me a little further than I was. I had run bjam but didn't have those files in an include or lib folder. I do now have a lib and a libs folder. So if I were going to declare _DBOOST_LIBRARYDIR that would that libs folder? Not lib? I followed a couple of instructions I found on on building boost but potentially I could still have done that wrong. I ran bootstrap.bat, then b2 and then a bjam install command with a different prefix to the folder I was running it from so I have the main boost folder in a repos folder in my Documents folder and the lib and include folders are just in C:/Boost. But now cmake is saying: *-- [ C:/Program Files/CMake/share/cmake-3.13/Modules/FindBoost.cmake:1936 ] Boost_FOUND = 1-- Could NOT find BoostBoost version: 1.66.0Boost include path: C:/Users/paddo/Documents/gitRepos/exr/source_downloads/boost_1_66_1/boost_1_66_0Could not find the following Boost libraries: boost_pythonNo Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.* So it finds boost but still can't find the python library. When I build boost it did say it was building the python component and if I look in C:/Boost/lib I do see a host of.lib files and four are some variant of libboost_python-27-vc141-mt-gd-x32-1_66.lib. So again I'm hitting a bit of a wall. I'll do some digging into what I could have done wrong in the boost installation but if anyone can spot anything obvious or dumb I'm doing that could point me down the right path that would be great Thanks for all the help so far! Cheers, Paddy On Tue, May 21, 2019 at 1:46 PM Lewis Evans wrote: > We use cmake and build C++ against boost-python (boost 1.70.0, python 3.7). > We set the envvar "BOOST_ROOT" to the correct folder; > Include files are in folder %BOOST_ROOT%\boost > Libraries are in %BOOST_ROOT%\libs. > Once you've done that, cmake's command find_package(Boost > REQUIRED_COMPONENTS date_time ... python) should succeed (we check the > cmake flag variable Boost_FOUND after the call to find_package). > > To verify that your original build of boost completed as intended, you can > check what's in the directory BOOST_ROOT/lib, eg does that folder contain > libboost_python.* with various endings (eg .a, .so for linux)? > > Also the version of python you have in BOOST_ROOT/lib should match the > one that you get from typing "python" at the command prompt. > > Hope that helps > > Lewis > > > > Bayforest Technologies Limited > 16 Berkeley Street > London, W1J 8DZ > work1: +44 203 907 3883 (dial-in for UK) > work2: +1 347 746 0976 (dial-in for US) > email: lewis.evans at bayforest.ai > web: https://bayforest.ai/ > > > On Tue, May 21, 2019 at 1:32 PM wrote: > >> Send Cplusplus-sig mailing list submissions to >> cplusplus-sig at python.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://mail.python.org/mailman/listinfo/cplusplus-sig >> or, via email, send a message with subject or body 'help' to >> cplusplus-sig-request at python.org >> >> You can reach the person managing the list at >> cplusplus-sig-owner at python.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Cplusplus-sig digest..." >> >> >> Today's Topics: >> >> 1. Re: Python support in boost::python (what version) >> (Stefan Seefeld) >> 2. openexr can't find boost python (Patrick Finn) >> 3. cmake can't find boost python (Paddy Finn) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 20 May 2019 12:15:43 -0400 >> From: Stefan Seefeld >> To: cplusplus-sig at python.org >> Subject: Re: [C++-sig] Python support in boost::python (what version) >> Message-ID: <3ed4671b-943c-fcbf-9342-aa049459c8f8 at seefeld.name> >> Content-Type: text/plain; charset="windows-1252"; Format="flowed" >> >> >> On 2019-05-20 11:20 a.m., Jones, Torrin A (US) wrote: >> > >> > For clarity, my boss is asking, ?what version of python does boost >> > python support??? I was hoping there was some kind of table or >> > something, but I guess the answer is something like, ?It supports >> > whatever version of python was out at the time that boost python was >> > released?? And then we can go back and look at release dates.? LOL. >> > >> What did you expect ? It's obvious that a given release of Boost.Python >> can not make any compatibility guarantees about future Python releases, >> unless, of course, Python itself promises to be fully backward >> compatible. That's precisely why the versioning scheme used by Python >> supports the distinction between "major" and "minor" version, to be able >> to make statements as to what degree of backward-compatibility to expect. >> >> > Ex: boost python 1.66.0 was released/tagged on Nov 17, 2017.? Python >> > 3.6.3 was released on Oct 3, 2017.? Python 3.6.4 was released on Dec >> > 19. 2017. So in theory boost python 1.66.0 has support for Python >> > 3.6.3, but does not have support for Python 3.6.4.? I know that?s >> > ludicrous but, I work in the corporate world so here we are. >> > >> What's your point, exactly ? What are you trying to do ? >> >> (For the specific case, I would *hope* that Boost.Python 1.66.0 was >> compatible with Python 3.6.4, for the reason I cite above. But of >> course, there is no guarantee. Boost is Free Software, and its license >> (https://www.boost.org/users/license.html) clearly states that it is >> provided "...without warranty of any kind...". So make of it what you >> want.) >> >> Stefan >> -- >> >> ...ich hab' noch einen Koffer in Berlin... >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/e025f3d1/attachment-0001.html >> > >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: .signature.png >> Type: image/png >> Size: 2754 bytes >> Desc: not available >> URL: < >> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/e025f3d1/attachment-0001.png >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Mon, 20 May 2019 14:07:41 +0100 >> From: Patrick Finn >> To: cplusplus-sig at python.org >> Subject: [C++-sig] openexr can't find boost python >> Message-ID: >> < >> CAC5oZGGsHBVVmxavMp5F_piasSvwTxG5gNYJKE5ZOXJMJitaYw at mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Hi, >> >> I've managed to build openexr and Ilmbase but am having trouble building >> pyilmbase that other projects need like alembic etc. I found an openexr >> build that has a single CMakeLIsts.txt to build the whole project so tried >> that instead and the only error that is popping up so far is an inability >> to find boost python. I think it's using find_package in a nested >> cmakeLists file and I I get: >> >> -- Could NOT find Boost >> CMake Warning at CMakeLists.txt:36 (message): >> Make boost Python available to CMake's search path, and re-run >> configuration >> >> >> CMake Error at CMakeLists.txt:37 (message): >> boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is >> set >> >> >> I've tried building boost1.69.0 with bjam and it says succesfully built >> and >> gives me two directories to add as libs to other cmake commands. I've >> tried >> adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / >> -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to >> run a 'pip install boost' in case that the boost python was a separate >> install but it still didn't work. This is about where my knowledge level >> runs out and it's a bit blind trial and error for me at this stage. If >> anyone could offer any help it would be really appreciated! >> >> Thanks, >> Paddy >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/42761d86/attachment.html >> > >> >> ------------------------------ >> >> Message: 3 >> Date: Mon, 20 May 2019 17:14:31 +0100 >> From: Paddy Finn >> To: cplusplus-sig at python.org >> Subject: [C++-sig] cmake can't find boost python >> Message-ID: >> > U5iA at mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Hi, >> >> Please let me say at he outset, that I'm sure this is something daft that >> I'm doing wrong / not doing but this isn't my area of expertise. . . >> >> I've managed to build openexr and Ilmbase but am having trouble building >> pyilmbase that other projects need like alembic etc. I found an openexr >> build that has a single CMakeLIsts.txt to build the whole project so tried >> that instead and the only error that is popping up so far is an inability >> to find boost python. I think it's using find_package in a nested >> cmakeLists file and I I get: >> >> -- Could NOT find Boost >> CMake Warning at CMakeLists.txt:36 (message): >> Make boost Python available to CMake's search path, and re-run >> configuration >> >> >> CMake Error at CMakeLists.txt:37 (message): >> boost Python is a required dependency when OPENEXR_BUILD_PYTHON_LIBS is >> set >> >> >> I've tried building boost1.69.0 with bjam and it says succesfully built >> and >> gives me two directories to add as libs to other cmake commands. I've >> tried >> adding them both as a cmke include directory and as -DBoost_INCLUDE_DIRS / >> -DBoost_LIBRARY_DIRS but it still cant find boost python. I even tried to >> run a 'pip install boost' in case that the boost python was a separate >> install but it still didn't work. This is about where my knowledge level >> runs out and it's a bit blind trial and error for me at this stage. If >> anyone could offer any help it would be really appreciated! >> >> Thanks, >> Paddy >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://mail.python.org/pipermail/cplusplus-sig/attachments/20190520/698c6485/attachment.html >> > >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Cplusplus-sig mailing list >> Cplusplus-sig at python.org >> https://mail.python.org/mailman/listinfo/cplusplus-sig >> >> >> ------------------------------ >> >> End of Cplusplus-sig Digest, Vol 118, Issue 4 >> ********************************************* >> > > > Virus-free. > www.avast.com > > <#m_-459668481818125636_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > The information contained in this transmission may contain privileged and > confidential information. It is intended only for the use of the person(s) > named above. If you are not the intended recipient, you are hereby > notified that any review, dissemination, distribution or duplication of > this communication is strictly prohibited. This communication is for > information purposes only and should not be regarded as an offer to sell or > as a solicitation of an offer to buy any financial product, an official > confirmation of any transaction, or as an official statement of Bayforest > Capital Limited and Bayforest Technologies Limited. If you are not the > intended recipient, please contact the sender by replying to this e-mail > and destroy all copies of this e-mail (and any attachment(s)) from your > system. To reply to our e-mail administrator directly, please send an > e-mail to admin at bayforest.ai. > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig at python.org > https://mail.python.org/mailman/listinfo/cplusplus-sig > -------------- next part -------------- An HTML attachment was scrubbed... URL: