[vtk-developers] [VTK 0012086]: Linker Error When Building VTK 5.6.1 Static Uncer VS10 Prof with Ogg Theora Support Enabled

Mantis Bug Tracker mantis at public.kitware.com
Thu Apr 14 12:46:35 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12086 
====================================================================== 
Reported By:                Don Bigler
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12086
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-04-14 12:46 EDT
Last Modified:              2011-04-14 12:46 EDT
====================================================================== 
Summary:                    Linker Error When Building VTK 5.6.1 Static Uncer
VS10 Prof with Ogg Theora Support Enabled
Description: 
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.

Steps to Reproduce: 
Enable VTK_USE_OGGTHEORA_ENCODER with BUILD_SHARED_LIBS disabled.

Additional Information: 
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.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-14 12:46 Don Bigler     New Issue                                    
======================================================================




More information about the vtk-developers mailing list