MantisBT - VTK
View Issue Details
0012086VTK(No Category)public2011-04-14 12:462013-04-05 20:25
Don Bigler 
David Partyka 
normalmajoralways
closedfixed 
IntelWindows 64 bit7 Ultimate
 
 
0012086: Linker Error When Building VTK 5.6.1 Static Uncer VS10 Prof with Ogg Theora Support Enabled
Building static debug version of VTK 5.6.1 in Windows 7 Ultimate 64 bit with Visual Studio 2010 Professional fails due to a linker error when VTK_USE_OGGTHEORA_ENCODER is enabled. The linker is expecting the /machine option, which is not specified and therefore defaults to x86 instead of x64. It appears like the addition of the vtkoggtheora.def and vtkoggtheora.rc files is the root of the problem.
Enable VTK_USE_OGGTHEORA_ENCODER with BUILD_SHARED_LIBS disabled.
Replacing the following lines in Utilities/vtkoggtheora/CMakeLists:

IF(MSVC)
  LIST(APPEND VTKOGGTHEORA_SRCS vtkoggtheora.def vtkoggtheora.rc)
ENDIF(MSVC)

with:

IF(MSVC)
  IF(BUILD_SHARED_LIBS)
    LIST(APPEND VTKOGGTHEORA_SRCS vtkoggtheora.def vtkoggtheora.rc)
  ESLE(BUILD_SHARED_LIBS)
    LIST(REMOVE_ITEM VTKOGGTHEORA_SRCS vtkoggtheora.def vtkoggtheora.rc)
  ENDIF(BUILD_SHARED_LIBS)
ENDIF(MSVC)

removes the linker error.
No tags attached.
Issue History
2011-04-14 12:46Don BiglerNew Issue
2011-04-14 12:56David PartykaAssigned To => David Partyka
2011-04-14 12:56David PartykaStatusbacklog => tabled
2011-04-14 13:11David PartykaNote Added: 0026178
2011-04-14 13:11David PartykaStatustabled => @80@
2011-04-14 13:11David PartykaResolutionopen => fixed
2013-04-05 20:25Berk GeveciStatuscustomer review => closed

Notes
(0026178)
David Partyka   
2011-04-14 13:11   
Fixed for VTK 5.8 with this commit

http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=59de4927e5d094f045261bd6a07eb6e13dbfb6ed [^]