[vtkusers] Compiling VTK in cygwin

Andrey Sklyar skyarland at gmail.com
Sun Dec 28 01:10:36 EST 2008


I get an error while compiling
'/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx' while doing an
out-of-source build of VTKwith both the 5.2.0 release and the current
CVS head.  Could somebody suggest a way to solve this problem?

Mathieu discussed this problem in earlier posts (below), but I wasn't
able to find a solution.
http://www.cygwin.com/ml/cygwin/2004-03/msg00016.html
http://www.cygwin.com/ml/cygwin/2004-03/msg00020.html
http://www.vtk.org/pipermail/vtk-developers/2005-August/003675.html

Details
-----------------
The 5.2.0 release downloaded from http://www.vtk.org/get-software.php
on (10/29/2008)

I checked out VTK from the cvs repository on Saturday (12/27/2008)
cvs -d :pserver:anonymous at public.kitware.com:/cvsroot/VTK checkout VTK

System
-----------------
I'm running cygwin 1.5.25 on Windows XP.
I'm using
- g++ version 3.4.4 (sygming special, gdc 0.12, using dmd 0.125)
- cmake version 2.6-patch 2

Compilation
-----------------
CFLAGS=(blank)
CXXFLAGS=(blank)
CC=/bin/gcc.exe
CXX=/bin/g++.exe

Error
-----------------
[ 78%] Building CXX object Hybrid/CMakeFiles/vtkHybrid.dir/vtkWin32VideoSource.o
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx: In function
`LRESULT vtkWin32VideoSourceCapControlProc(HWND__*, int)':
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:137: error:
`CONTROLCALLBACK_PREROLL' undeclared (first use this function)
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:137: error: (Each
undeclared identifier is reported only once for each function it
appears in.)
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:142: error:
`CONTROLCALLBACK_CAPTURING' undeclared (first use this function)
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx: In function
`LRESULT vtkWin32VideoSourceStatusCallbackProc(HWND__*, int, const
CHAR*)':
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:167: error:
`IDS_CAP_BEGIN' undeclared (first use this function)
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:172: error:
`IDS_CAP_END' undeclared (first use this function)
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx: In member function
`virtual void vtkWin32VideoSource::Initialize()':
/usr/src/vtkcvs/VTK/Hybrid/vtkWin32VideoSource.cxx:331: error:
`AVSTREAMMASTER_NONE' undeclared (first use this function)
make[2]: *** [Hybrid/CMakeFiles/vtkHybrid.dir/vtkWin32VideoSource.o] Error 1
make[1]: *** [Hybrid/CMakeFiles/vtkHybrid.dir/all] Error 2
make: *** [all] Error 2

- Andrey



More information about the vtkusers mailing list