[vtkusers] vtkMy Build and VC++ 6.0

Bruce Lamond Bruce.Lamond at ed.ac.uk
Mon Feb 16 18:59:11 EST 2004


Hi Again,
I've made the change you suggest and the process seems to get beyond the
vtkmyImaging problem (despite the fact that I definitely didn't add any classes
to that subdirectory - all my classes are in vtkMy/Unsorted). The next error
message is as follows:

--------------------Configuration: vtkmyCommon - Win32 Debug--------------------
Compiling...
vtkBar.cxx
Linking...
   Creating library
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyCommon.lib and object
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyCommon.exp
--------------------Configuration: vtkmyCommonTCL - Win32 Debug--------------------
Building Custom Rule C:\programming\HybridRendering\vtkMy\Common\vtkBar.h
   Parsed func New
   Parsed func vtkBar
   Parsed func vtkBar
   Parsed func vtkBar
   Converted operator
Compiling...
vtkmyCommonTCLInit.cxx
vtkBarTcl.cxx
Generating Code...
Linking...
   Creating library
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyCommonTCL.lib and object
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyCommonTCL.exp
--------------------Configuration: vtkmyImaging - Win32 Debug--------------------
Compiling...
vtkImageFoo.cxx
Linking...
   Creating library
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImaging.lib and object
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImaging.exp
--------------------Configuration: vtkmyImagingTCL - Win32 Debug--------------------
Building Custom Rule C:\programming\HybridRendering\vtkMy\Imaging\vtkImageFoo.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func SetOutputScalarTypeToDouble
   Parsed func SetOutputScalarTypeToFloat
   Parsed func SetOutputScalarTypeToLong
   Parsed func SetOutputScalarTypeToUnsignedLong
   Parsed func SetOutputScalarTypeToInt
   Parsed func SetOutputScalarTypeToUnsignedInt
   Parsed func SetOutputScalarTypeToShort
   Parsed func SetOutputScalarTypeToUnsignedShort
   Parsed func SetOutputScalarTypeToChar
   Parsed func SetOutputScalarTypeToUnsignedChar
   Parsed func vtkImageFoo
   Parsed func vtkImageFoo
   Parsed func ExecuteInformation
   Parsed func ExecuteInformation
   Parsed func ThreadedExecute
   Parsed func vtkImageFoo
   Converted operator
Compiling...
vtkmyImagingTCLInit.cxx
vtkImageFooTcl.cxx
Generating Code...
Linking...
   Creating library
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImagingTCL.lib and object
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImagingTCL.exp
--------------------Configuration: vtkmyUnsorted - Win32 Debug--------------------
Building Custom Rule C:\programming\HybridRendering\vtkMy\Unsorted\vtkRTPIReader.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func Read
   Parsed func SetModeToRange
   Parsed func SetModeToIntensity
   Parsed func SetModeToRGB
   Parsed func SetInterpolate
   Parsed func SetScreen
   Parsed func SetOutput
   Parsed func GetOutput
   Parsed func GetShrinkFactor
   Parsed func GetRangeData
   Parsed func GetIntensityData
   Parsed func GetRGBAData
   Parsed func GetWraparoundView
   Parsed func vtkRTPIReader
   Parsed func vtkRTPIReader
   Parsed func ReadHeader
   Parsed func ReadBinaryData
   Parsed func AllocateData
   Parsed func ComputeEndian
   Parsed func LE2BE
   Parsed func vtkRTPIReader
   Converted operator
Building Custom Rule
C:\programming\HybridRendering\vtkMy\Unsorted\vtkRangePlaneExtractor.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func SetRangeData
   Parsed func SetClusterWidthInPixels
   Parsed func SetSubsampleFactor
   Parsed func SetAngularThreshold
   Parsed func SetPerpendicularDistanceThreshold
   Parsed func SetLateralDistanceThreshold
   Parsed func SetSuperclusterSize
   Parsed func SetGraphPaper
   Parsed func SetSeparateRendering
   Parsed func GetScale
   Parsed func GetXYZPoints
   Parsed func GetRangePlanes
   Parsed func vtkRangePlaneExtractor
   Parsed func vtkRangePlaneExtractor
   Parsed func SimpleExecute
   Parsed func BuildClusterSet
   Parsed func FitLocalPlane
   Parsed func CalculateDeviationThreshold
   Parsed func BuildSuperclusters
   Parsed func BuildPlanesImage
   Parsed func BuildOutputs
   Parsed func TestCoplanarity
   Parsed func GetClosestTPValue
   Parsed func rtp2xyz
   Parsed func xyz2rtp
   Parsed func vtkRangePlaneExtractor
   Converted operator
Building Custom Rule
C:\programming\HybridRendering\vtkMy\Unsorted\vtkMyInteractorStyle.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func OnChar
   Parsed func OnMouseMove
   Parsed func OnLeftButtonDown
   Parsed func OnLeftButtonUp
   Parsed func OnMiddleButtonDown
   Parsed func OnMiddleButtonUp
   Parsed func OnRightButtonDown
   Parsed func OnRightButtonUp
   Parsed func Rotate
   Parsed func Spin
   Parsed func Pan
   Parsed func Dolly
   Parsed func LoadFacadeFile
   Parsed func LoadRangeFile
   Parsed func ToggleSkinnedUnskinned
   Parsed func SaveRange
   Parsed func SaveFacade
   Parsed func UpdateModel
   Parsed func ExportModelToRIB
   Parsed func SetOutfile
   Parsed func SetFacadeFileName
   Parsed func SetRangeFileName
   Parsed func SetPointsFileName
   Parsed func LoadPointsFile
   Parsed func MergePoints
   Parsed func SetPointsOutfile
   Parsed func WritePoints
   Parsed func IsSkinned
   Parsed func SetExportModelType
   Parsed func SetExportPrefix
   Parsed func SetExportSphereSizeFactor
   Parsed func SetExportShader
   Parsed func Clear
   Parsed func Quit
   Parsed func SetExportRenderer
   Parsed func SetPhotosOff
   Parsed func vtkMyInteractorStyle
   Parsed func vtkMyInteractorStyle
   Parsed func AddMarkerPoint
   Parsed func DeleteMarkerPoint
   Parsed func RegisterDataSets
   Parsed func CompactPointArray
   Parsed func InsertClipPlane
   Parsed func IsDistinctPoint
   Parsed func RemoveClippedData
   Parsed func PingRenderer
   Parsed func GetRenderer
   Parsed func AddLights
   Parsed func AddBlockActors
   Parsed func AddHoles
   Parsed func AddRangePlanes
   Parsed func RemoveAllActors
   Parsed func RemoveAllLights
   Parsed func SelectClipPoly
   Parsed func AddPolygon
   Parsed func AddSphere
   Parsed func DrawPolygon
   Parsed func ClipFacade
   Parsed func RemovePolygon
   Parsed func BuildClipCube
   Parsed func InsertClipCube
   Parsed func AddICPPoly
   Parsed func AddICPPlanes
   Parsed func RemoveICPPlanes
   Parsed func RemoveHoles
   Parsed func MatchPolyData
   Parsed func vtkMyInteractorStyle
   Converted operator
Building Custom Rule C:\programming\HybridRendering\vtkMy\Unsorted\vtkMathEng.h
   Parsed func New
   Parsed func GetPlaneCoefficients
   Parsed func IntersectLinePlane
   Parsed func IntersectLinePlane
   Parsed func PointInPolygon3D
   Parsed func PointInPolygon2D
   Parsed func Cross
   Parsed func InteriorVectorsAngle
   Parsed func Get2DIntersectionPlane
   Parsed func Get3DistinctPoints
   Parsed func RANSACplane
   Parsed func PointDistToPlane
   Parsed func vtkMathEng
   Parsed func vtkMathEng
Building Custom Rule
C:\programming\HybridRendering\vtkMy\Unsorted\vtkLocalPointCluster.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func vtkLocalPointCluster
   Parsed func vtkLocalPointCluster
   Parsed func Build
   Parsed func GetPoint
   Parsed func GetLinearRealPoints
   Parsed func GetRTPRealPoints
   Parsed func GetSize
   Parsed func SetLocallyPlanar
   Parsed func GetLocallyPlanar
   Parsed func GetPlane
   Parsed func SetPlane
   Parsed func GetCentroid
   Parsed func GetTPCentroid
   Parsed func GetNumberOfRealPoints
   Parsed func SetSuperclusterMembership
   Parsed func GetSuperclusterMembership
   Parsed func SetColour
   Parsed func GetColour
   Parsed func GetY
   Parsed func GetR
   Parsed func GetT
   Parsed func GetP
   Parsed func SetSupercluster
   Parsed func GetSupercluster
   Parsed func FitPlane
   Parsed func GetPlanePoints
   Parsed func GetRawRealPoints
   Parsed func vtkLocalPointCluster
   Converted operator
Building Custom Rule C:\programming\HybridRendering\vtkMy\Unsorted\vtkFacadeWriter.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func WriteData
   Parsed func SetFileName
   Parsed func SetInput
   Parsed func vtkFacadeWriter
   Parsed func vtkFacadeWriter
   Parsed func OpenFacadeFile
   Parsed func CloseFacadeFile
   Parsed func WriteProjectors
   Parsed func WriteGeometry
   Parsed func vtkFacadeWriter
   Converted operator
Building Custom Rule C:\programming\HybridRendering\vtkMy\Unsorted\vtkFacadeReader.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func SetOutput
   Parsed func GetOutput
   Parsed func GetOutput
   Parsed func GetScale
   Parsed func GetBlockLabels
   Parsed func vtkFacadeReader
   Parsed func vtkFacadeReader
   Parsed func Execute
   Parsed func ComputeInputUpdateExtents
   Parsed func GeneratePolyData
   Parsed func GenerateActors
   Parsed func vtkFacadeReader
   Converted operator
Building Custom Rule C:\programming\HybridRendering\vtkMy\Unsorted\vtkExtRIBLight.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func SetImageName
   Parsed func GetImageName
   Parsed func Render
   Parsed func vtkExtRIBLight
   Parsed func vtkExtRIBLight
   Parsed func vtkExtRIBLight
   Converted operator
Building Custom Rule
C:\programming\HybridRendering\vtkMy\Unsorted\vtkExtRIBExporter.h
   Parsed func New
   Parsed func PrintSelf
   Parsed func SetExportRenderer
   Parsed func SetHoleData
   Parsed func SetPhotosOff
   Parsed func WriteData
   Parsed func vtkExtRIBExporter
   Parsed func vtkExtRIBExporter
   Parsed func WriteHeader
   Parsed func WriteTrailer
   Parsed func WriteTexture
   Parsed func WriteViewport
   Parsed func WriteCamera
   Parsed func WriteLight
   Parsed func WriteAmbientLight
   Parsed func WriteProperty
   Parsed func WritePolygons
   Parsed func WriteStrips
   Parsed func WriteActor
   Parsed func WriteSpheres
   Parsed func ModifyArrayName
   Parsed func GetTextureName
   Parsed func GetTIFFName
   Parsed func vtkExtRIBExporter
   Converted operator
Linking...
LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup at 12
C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyUnsorted.dll : fatal error
LNK1120: 1 unresolved externals
Error executing link.exe.

ALL_BUILD - 2 error(s), 1 warning(s)

########################################################################

my vtkMy/Unsorted/CmakeLists.txt file is as follows:

#
# Source files
#
# Here is where you can add the name of your local unsorted classes.
#

SET (Unsorted_SRCS
  vtkExtRIBExporter
  vtkExtRIBLight
  vtkFacadeReader
  vtkFacadeWriter
  vtkLocalPointCluster
  vtkMathEng
  vtkMyInteractorStyle
  vtkRangePlaneExtractor
  vtkRTPIReader
)

# --------------------------------------------------------------------------
# You probably do not need to modify anything below this line

# Create the vtkmyUnsorted C++ library.
ADD_LIBRARY (vtkmyUnsorted ${Unsorted_SRCS})
TARGET_LINK_LIBRARIES(vtkmyUnsorted vtkmyImaging vtkGraphics vtkIO)

IF (VTK_USE_HYBRID)
  TARGET_LINK_LIBRARIES (vtkmyUnsorted vtkHybrid)
ENDIF (VTK_USE_HYBRID)

IF (VTK_USE_PARALLEL)
  TARGET_LINK_LIBRARIES (vtkmyUnsorted vtkParallel)
ENDIF (VTK_USE_PARALLEL)

IF (VTK_USE_PATENTED)
  TARGET_LINK_LIBRARIES (vtkmyUnsorted vtkPatented)
ENDIF (VTK_USE_PATENTED)

IF (VTK_USE_RENDERING)
  TARGET_LINK_LIBRARIES (vtkmyUnsorted vtkRendering)
ENDIF (VTK_USE_RENDERING)

# Create the vtkmyUnsorted Tcl library.
IF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)
  VTK_WRAP_TCL (vtkmyUnsortedTCL UnsortedTCL_SRCS ${Unsorted_SRCS})
  ADD_LIBRARY (vtkmyUnsortedTCL ${UnsortedTCL_SRCS})
  TARGET_LINK_LIBRARIES (vtkmyUnsortedTCL vtkmyCommonTCL vtkmyUnsorted)
ENDIF (VTK_WRAP_TCL AND VTKMY_WRAP_TCL)

# Create the vtkmyUnsorted Python library.
IF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)
  VTK_WRAP_PYTHON (vtkmyUnsortedPython UnsortedPython_SRCS ${Unsorted_SRCS})
  ADD_LIBRARY (vtkmyUnsortedPython MODULE ${UnsortedPython_SRCS})
  TARGET_LINK_LIBRARIES(vtkmyUnsortedPython vtkmyCommonPython vtkmyUnsorted)
ENDIF (VTK_WRAP_PYTHON AND VTKMY_WRAP_PYTHON)

# Create the vtkmyUnsorted Java library.
IF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
  VTK_WRAP_JAVA (vtkmyUnsortedJava UnsortedJava_SRCS ${Unsorted_SRCS})
  ADD_LIBRARY (vtkmyUnsortedJava SHARED ${UnsortedJava_SRCS})
  TARGET_LINK_LIBRARIES(vtkmyUnsortedJava vtkmyCommonJava vtkmyUnsorted)
ENDIF (VTK_WRAP_JAVA AND VTKMY_WRAP_JAVA)
#######################################################################

Hope you've got some more ideas!!

thanks again

Bruce Lamond


Quoting Brad King <brad.king at kitware.com>:

> Bruce Lamond wrote:
> > Hi there,
> > I'm using the installed version of vtk4.2
> > 
> > Quoting Brad King <brad.king at kitware.com>:
> > 
> > 
> >>Bruce Lamond wrote:
> >>
> >>>hi there,
> >>>
> >>>I've got the same problem as Christopher R. Volpe who posted on Wed, 25
> Dec
> >>
> >>2002
> >>
> >>>11:47:12 -0500 but unfortunately didn't get any follow up to his mail.
> I'm
> >>>trying also to build the out of source vtkMy project with VC++ 6.0. I've
> >>>followed the instructions in the readme to the letter (set relevant PATH
> >>
> >>and
> >>
> >>>TCL
> >>
> >>LIBPATH vars), ran cmake (advanced options all look OK) and tried to build
> >>
> >>>the supplied template project but get the following error:
> >>>
> >>>--------------------Configuration: vtkmyImagingTCL - Win32
> >>
> >>Debug--------------------
> >>
> >>>Linking...
> >>>   Creating library
> >>>C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImagingTCL.lib and
> >>
> >>object
> >>
> >>>C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImagingTCL.exp
> >>>vtkImageFooTcl.obj : error LNK2001: unresolved external symbol "int
> >>
> >>__cdecl
> >>
> >>>vtkImageToImageFilterCppCommand(class vtkImageToImageFilter *,struct
> >>
> >>Tcl_Interp
> >>
> >>>*,int,char * * const)"
> >>>(?vtkImageToImageFilterCppCommand@@YAHPAVvtkImageToImageFilter@@PAUTcl
> >>>_Interp@@HQAPAD at Z)
> >>>C:\programming\HybridRendering\vtkMy\bin\Debug/vtkmyImagingTCL.dll :
> fatal
> >>
> >>error
> >>
> >>>LNK1120: 1 unresolved externals
> >>>Error executing link.exe.
> >>>
> >>>ALL_BUILD - 2 error(s), 0 warning(s)
> >>>
> >>>
> >>>So, can anybody see what's wrong with this?
> 
> It looks like you've added a class to vtkMy/Imaging that derives from 
> vtkImageToImageFilter.  When it is wrapped in Tcl, the wrapper tries to 
> call the wrapper of the superclass, which is defined in vtkFilteringTCL, 
> so you need to link to that library as well.
> 
> Please try editing vtkMy/Imaging/CMakeLists.txt and change this line:
> 
>    TARGET_LINK_LIBRARIES (vtkmyImagingTCL vtkmyCommonTCL vtkmyImaging)
> 
> to this:
> 
>    TARGET_LINK_LIBRARIES (vtkmyImagingTCL vtkmyCommonTCL vtkmyImaging
>                           vtkFilteringTCL)
> 
> -Brad
> 
> 


-- 

             ################################################
             # Bruce Lamond                                 #
             # Edinburgh Virtual Environment Centre (EdVEC) #
             # University of Edinburgh                      #
             # JCMB room 2403                               #
             # The Kings Buildings                          #
             # West Mains Road                              #
             # Edinburgh EH9 3JZ                            # 
             # UK                                           #
             # www.edvec.ed.ac.uk                           #
             # Tel. (00 44 )/(0) 131 650 4981               #
             ################################################



More information about the vtkusers mailing list