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 <lewis.ev...@bayforest.ai> 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.ev...@bayforest.ai > web: https://bayforest.ai/ > > > On Tue, May 21, 2019 at 1:32 PM <cplusplus-sig-requ...@python.org> wrote: > >> Send Cplusplus-sig mailing list submissions to >> cplusplus-sig@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-requ...@python.org >> >> You can reach the person managing the list at >> cplusplus-sig-ow...@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 <ste...@seefeld.name> >> To: cplusplus-sig@python.org >> Subject: Re: [C++-sig] Python support in boost::python (what version) >> Message-ID: <3ed4671b-943c-fcbf-9342-aa049459c...@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 <patrickfinn...@gmail.com> >> To: cplusplus-sig@python.org >> Subject: [C++-sig] openexr can't find boost python >> Message-ID: >> < >> cac5ozggshbvvmxavmp5f_piassvwtxg5gnyjke5zoxjmjit...@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 <paddop...@gmail.com> >> To: cplusplus-sig@python.org >> Subject: [C++-sig] cmake can't find boost python >> Message-ID: >> <CAOk=Oqub+sO6_xd0A4JkMuAd0JFcZ1dXpVj7kptCGWVJt= >> u...@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@python.org >> https://mail.python.org/mailman/listinfo/cplusplus-sig >> >> >> ------------------------------ >> >> End of Cplusplus-sig Digest, Vol 118, Issue 4 >> ********************************************* >> > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#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 ad...@bayforest.ai. > _______________________________________________ > Cplusplus-sig mailing list > Cplusplus-sig@python.org > https://mail.python.org/mailman/listinfo/cplusplus-sig >
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig