Ticket #1958 (closed defect: fixed)

Opened 9 months ago

Last modified 8 months ago

Building python bindings with Visual C++ fails in debug mode

Reported by: mloskot Assigned to: mloskot
Priority: high Milestone: 1.5.0
Component: ConfigBuild Version: svn-trunk
Severity: critical Keywords: nmake visualc++ python debug
Cc:

Description

Last update int nmake.opt file (r12549) added more debug flags and linking to debug version of run-time libraries additional. After these changes, linker throws following error when building Python bindings with Visual C++ (Visual C++ 8.0 in this case):

LINK : fatal error LNK1104: cannot open file 'python24_d.lib'

There is no python24_d.py shipped in the official Python distribution.

Change History

10/30/07 15:34:42 changed by mloskot

  • status changed from new to assigned.
  • owner changed from warmerdam to mloskot.

10/30/07 16:41:09 changed by mloskot

  • milestone set to 1.5.0.

Applied patch solving the problem (r12592) but there is still uncertain how SWIG will handle it, perhaps it will overwrite these changes.

10/30/07 16:50:10 changed by mloskot

Deeper discussion on the #gdal channel with Frank and Hobu led is to better solution. We've decided to build Python bindings always in optimized mode, regardless of global settings in nmake.opt. New patch is under construction.

10/31/07 19:23:44 changed by warmerdam

Fixed gdal_array.h so that builds are unbusted when numpy is available (r12597).

11/28/07 01:04:13 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in trunk (r13125)