Python bindings not building on Windows in Debug mode

Bug #867144 reported by Gabriel Petrovay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Nicolae Brinza

Bug Description

In debug mode linking the python language bindings fails. This is because pythond doesn't distribute python27_d.lib (does only distribute python27.lib)

Maybe this is a bug in CMake. If that is true FindPython....cmake modules have to be brought in Zorba and corrected.

Linking CXX shared module _zorba_api.pyd
LINK : fatal error LNK1104: cannot open file 'python27_d.lib'
LINK Pass 1 failed. with 1104
NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

C:\Users\Gabriel\Work\28msec\zorba\builds\debug10>cm

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote :

This is not an error, you need to get python debug libraries... by downloading somewhere or by compiling python yourself...

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

This either has to be documented on in the build instructions that you have to build python on your own in debug and the instructions how to do it (where to get it from, etc.)

or

CMake should take whatever lib is available. If someone wants to debug zorba build with python extensions, he does not need to build python. And currently, he cannot build zorba in Debug mode with a normal python installation.
Or by taking the release lib and not the debug one.

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote :

This is an error that comes from python sources, can't be fixed on Zorba, its on ./include/pyconfig.h

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote :

Documentation already mentions this...

Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.