View Issue Details

IDProjectCategoryView StatusLast Update
0003099Slicer4Core: Building (CMake, Superbuild)public2014-02-26 07:10
Reporterwangk Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.2.2-1 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0003099: Link error when building python with system zlib.lib on windows 32 bit machine
Description

updated to revision 21964 and started to build slicer.

Now I get this error:
error LNK2019: unresolved external symbol _slicer_zlib_deflate referenced in function _PyZlib_compress

I checked the svn log and in r21963, it seems changes have been made to how to link to system zlib. I suspect that is the reason.

the same compilation errors also shows on dashboard.
http://slicer.cdash.org/buildSummary.php?buildid=93254

TagsNo tags attached.

Relationships

related to 0004085 closedjcfr Enable MINC support in ITK 

Activities

jcfr

jcfr

2013-08-30 18:41

administrator   ~0009755

Fixed in r21998
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=21998

// ---------------------------
COMP: Do not compile zlib using WINAPI calling convention

Following commit r21963, windows 32-bit couldn't be be built because
of missing symbol error associated with python, vtk and itk. Ensuring
ZLIB_WINAPI was defined systematically by configuring it inside "zlibDllConfig.h"
was solving python link error but was then causing further link error while
building ITK, VTK (conflicting calling convention fastcall vs stdcall)

Since originally the flag has been added to be able to compile LibArchive
and since now LibArchive supports zlib build with or without ZLIB_WINAPI,
there is NOW no need to force the flag.

Issue History

Date Modified Username Field Change
2013-05-02 09:14 wangk New Issue
2013-05-02 09:14 wangk Status new => assigned
2013-05-02 09:14 wangk Assigned To => jcfr
2013-08-30 18:41 jcfr Target Version => Slicer 4.3.0
2013-08-30 18:41 jcfr Note Added: 0009755
2013-08-30 18:41 jcfr Status assigned => resolved
2013-08-30 18:41 jcfr Fixed in Version => Slicer 4.3.0
2013-08-30 18:41 jcfr Resolution open => fixed
2014-02-26 07:10 wangk Status resolved => closed
2015-11-13 12:55 jcfr Relationship added related to 0004085