[vtkusers] Compiling VTK in cygwin

Andrey Sklyar skyarland at gmail.com
Sun Dec 28 13:38:24 EST 2008


What is the configuration (CFLAGS, CXXFLAGS, CXX, CC) that people who
successfully compile VTK 5.2.0 with g++ on windows use?

I was able to compile VTK using the c++ compiler that ships with
cygwin (bin/c++.exe), but got the error below when trying to use g++.
I would like to be able to compile VTK with g++ because it is both
much faster than the c++.exe compiler and because I want to link with
another library that I compiled with g++ (wxWidgets).

> if you can get your hands on a free version of the M$ compiler, you
> can grep the headers file for the missing macro, and complete the
> cygwin headers file ones.

Will do as a last resort.

- Andrey

On Sun, Dec 28, 2008 at 12:03 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Sun, Dec 28, 2008 at 7:10 AM, Andrey Sklyar <skyarland at gmail.com> wrote:
>> 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
>
> That was a long time ago. I dont think I ever published the patch, but
> if you can get your hands on a free version of the M$ compiler, you
> can grep the headers file for the missing macro, and complete the
> cygwin headers file ones. That's what I did at the time, I do not
> remember if it worked out ok.
>
> Good luck,
> --
> Mathieu
>



More information about the vtkusers mailing list