openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Build 2.3.0 with python debug


From: Nick Porcino
Subject: Re: [Openexr-devel] Build 2.3.0 with python debug
Date: Thu, 28 Feb 2019 06:58:37 +0000

-DOPENEXR_PYTHON_MINOR should be 5 in your case, not blank. When you built boost, did you get both booth_python-vc141-mt-1_65_1.lib, and the -mt-gd- variants? You shouldn’t need to specifiy Zlib and boost manually, it should be sufficient to have S:/projects/zlib/.../Debug and s:/projects/boost/builds/master/output/Debug in your -DCMAKE_PREFIX_PATH variable, and allow the Find scripts to discover them. You shouldn’t have to set any of the -DBOOST variables. After you generate, building using the cmake build command with the Debug target should be sufficient.

Hope this helps a bit, maybe check some of these things and report back?

 

From: Openexr-devel <openexr-devel-bounces+address@hidden> on behalf of Giancarlo Rivas <address@hidden>
Sent: Monday, February 25, 2019 11:45 AM
To: address@hidden
Subject: [Openexr-devel] Build 2.3.0 with python debug
 
Hello, I'm trying to build OpenEXR on debug on windows, installed python 3.5, built boost 1..65.1 and used cmake to configure and make, however if I set the python library to python35.lib the build complain I'm missing python35_d.lib, if I set the library to python35_d.lib it complains I'm missing python35.lib... Any pointers? Im a bit lost.

boost building:
user-config.jam:
using python
  : 3.5
  : C:/Python35/python.exe
  : C:/Python35/include
  : C:/Python35/libs
  : <python-debugging>off
  ;
using python
  : 3.5
  : C:/Python35/python.exe
  : C:/Python35/include
  : C:/Python35/libs
  : <python-debugging>on
  ;

I've used two command lines for boost, neither works towards getting OpenEXR to build:
b2 --build-dir=S:/projects/boost/builds/master/buildv2 toolset=msvc --build-type=complete --stagedir=S:/projects/boost/builds/master/output/Debug --prefix=S:/projects/boost/builds/master/output/Debug --user-config=../../builds/master/user-config.jam --with-regex --with-date_time --with-atomic --with-thread --with-filesystem --with-python python-debugging=off threading=multi variant=debug link=shared address-model=64 install

b2 --build-dir=S:/projects/boost/builds/master/buildv2 toolset=msvc --build-type=complete --stagedir=S:/projects/boost/builds/master/output/Debug --prefix=S:/projects/boost/builds/master/output/Debug --user-config=../../builds/master/user-config.jam --with-regex --with-date_time --with-atomic --with-thread --with-filesystem --with-python python-debugging=on define=BOOST_PYTHON_DEBUG threading=multi variant=debug link=shared address-model=64 install

I'm then using this for OpenEXR, if I dont add boost/python then I can build, but then I don't have boost/python. If I have python35.lib I fail missing python35_d.lib, and viceversa:
cmake --check-system-vars -DCMAKE_SYSTEM_VERSION=10.0.17763.0 -DOPENEXR_BUILD_STATIC=ON -DBUILD_SHARED_LIBS=ON -DWIN32=ON -DZLIB_INCLUDE_DIR="S:/projects/zlib/builds/master/output/Debug/include" -DZLIB_LIBRARY="S:/projects/zlib/builds/master/output/Debug/lib/zlibd.lib" -DOPENEXR_BUILD_PYTHON_LIBS=ON -DOPENEXR_PYTHON_MAJOR=3 -DOPENEXR_PYTHON_MINOR= -DPYTHON_LIBRARY="C:/Python35/libs/python35_d.lib" -DPYTHON_INCLUDE_DIR="C:/Python35/include" -DPYTHON_EXECUTABLE="C:/Python35/python.exe" -DBOOST_DEBUG_PYTHON=ON -DBoost_NO_BOOST_CMAKE=ON -DBOOST_INCLUDEDIR="S:/projects/boost/builds/master/output/Debug/include" -DBOOST_LIBRARYDIR="S:/projects/boost/builds/master/output/Debug/lib" -DCMAKE_INSTALL_PREFIX="S:/projects/openexr/builds/master/output/Debug" -G "Visual Studio 15 2017 Win64" -T v141 ../../worktrees/master

reply via email to

[Prev in Thread] Current Thread [Next in Thread]