glehmann / wrapitk

Automatically exported from code.google.com/p/wrapitk
0 stars 0 forks source link

wrap_pyBasePython.obj : fatal error LNK1136: invalid or corrupt file #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Building WrapITK 0.3.0 (tarball) produces this error for the ITKPyBasePython 
project. I've tried this from a clean build with ITK, CSwig and WrapITK 
multiple times - and this error occurs consistently.
Apart from this, there are no other errors.

What is the expected output? What do you see instead?

27>------ Build started: Project: ITKPyBasePython, Configuration: Release x64 
------
27>Linking...
18>Generating ../../Typedefs/wrap_itkImageDuplicator.i
27>LINK : warning LNK4044: unrecognized option '/bigobj'; ignored
27>.\ITKPyBasePython.dir\Release\wrap_pyBasePython.obj : fatal error LNK1136: 
invalid or corrupt file
27>Build log was saved at 
"file://d:\software\itk\wrapitk-build\Languages\Python\PyBase\ITKPyBasePython.di
r\Release\BuildLog.htm"
27>ITKPyBasePython - 1 error(s), 1 warning(s)
22>Generating ../../Typedefs/wrap_itkPlaneSpatialObject.i

What version of the product are you using? On what operating system?

OS: Windows 7 x64
Compiler: MSVC 9.0, x64
CMake: 2.8.5
ITK source: v3.20
CSwig: CVS HEAD version as of 25 July 2011

Please provide any additional information below.

I patched Code\IO\itkImageIORegion.h according to this thread: 
http://www.itk.org/pipermail/insight-users/2011-February/039799.html

I also added the /bigobj compiler flag as per
http://itk-insight-users.2283740.n2.nabble.com/wrapitk-maintenance-branch-r527-s
till-results-in-bigobj-errors-on-win64-vs-2008-SP1-td6041414.html

Original issue reported on code.google.com by firdaus....@gmail.com on 29 Jul 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Addendum:

I'm compiling the x64 Release version and linking against Python 2.7 (EPD)

Original comment by firdaus....@gmail.com on 29 Jul 2011 at 9:03