OpenColorIO
OpenColorIO copied to clipboard
Python library fails to compile on Windows debug mode
When compiling in debug mode, python27_d.lib
is expected but that's usually not installed by default, and there is no need to debug Python
. The idea is to compile in debug mode but still using the release Python
library.
[100%] Linking CXX shared module PyOpenColorIO.pyd
LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\PyOpenColorIO.dir\objects1.rsp /out:PyOpenColorIO.pyd /implib:PyOpenColorIO.lib /pdb:F:\OpenSource\ocio_adsk_priv_1\build_dbg\src\bindings\python\PyOpenColorIO.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL C:\Python27\libs\python27.lib ..\..\OpenColorIO\OpenColorIO.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\PyOpenColorIO.dir/intermediate.manifest CMakeFiles\PyOpenColorIO.dir/manifest.res" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cannot open file 'python27_d.lib'
jom: F:\OpenSource\ocio_adsk_priv_1\build_dbg\src\bindings\python\CMakeFiles\PyOpenColorIO.dir\build.make [src\bindings\python\PyOpenColorIO.pyd] Error 2
jom: F:\OpenSource\ocio_adsk_priv_1\build_dbg\CMakeFiles\Makefile2 [src\bindings\python\CMakeFiles\PyOpenColorIO.dir\all] Error 2
Note: It requires some cmake
knowledge.
Is this issue still open?
@YashAgrawal0 Yes, the defect is still open.
The problem is that the Windows Debug build expects to find python27_d.lib
which is generally not installed by default on Windows. Most of the time, no one would like to debug Python so the Windows Debug build should use python27.lib
.