[vtkusers] errors in build vtkWin32VideoSource

David Gobbi dgobbi at irus.rri.on.ca
Fri May 18 13:08:48 EDT 2001

Hi Zhang,

To use vtkWin32VideoSource, you must go into the 'Advanced'
options in pcmaker and add VFW32.LIB to the 'Extra Linker Flags'.

 - David

  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Sat, 19 May 2001, zhangzhijun wrote:

> Dear all:
>         I want to add the vtkWin32Videosource class, and I first add it in the makefile.in
> and run pcmaker, and then run nmake in windows to build it. but it failed and I got
> the following information. can anyone tell me how to do it?
>  cl.exe /nologo /D "STRICT" /MD /W3 /Ob1 /Oi /Ot /Oy /Gs /I "C:\Program F
> iles\Microsoft Visual Studio\VC98\include" /I "C:\vtkbin" /I "C:\Program Files\v
> tk32\vtksrc\common" /I "C:\Program Files\vtk32\vtksrc\graphics" /I "C:\Program F
> iles\vtk32\vtksrc\imaging" /D "NDEBUG" /D "WIN32"  /I "C:\Program Files\vtk32\vt
> ksrc\patented"  /I "C:\Program Files\vtk32\vtksrc\contrib"  /D "_WINDOWS" /D "_W
> INDLL" /D "_MBCS" /D "VTKDLL" /Foobj\ /c "C:\Program Files\vtk32\vtksrc\graphics
> \vtkGraphicsFactory.cxx"
> vtkGraphicsFactory.cxx
>         link.exe @C:\WINDOWS\TEMP\nma36843.
>    Creating library vtkdll.lib and object vtkdll.exp
> vtkWin32VideoSource.obj: error LNK2001: unresolved external symbol _capCreateCa
> ptureWindowA at 32
> vtkdll.dll: fatal error LNK1120: 1 unresolved externals
> NMAKE: fatal error U1077: 'C:\vtkbin\vtkdll\link.exe' : return code '0x460'
> Stop.
> regards,
> zj zhang

More information about the vtkusers mailing list