[vtkusers] RE: vtk, cygwin and opengl

R Douglas Everhart everhart at surfbest.net
Tue Jan 28 10:33:21 EST 2003


This builds an executable that must be executed through the CYGWIN interface
(CYGWIN command prompt window).  It uses the native Windows opengl API, so
it takes advantage of hardware acceleration.  I've found it to be faster
than the Linux port on the same box.

Thanks,

R. Douglas Everhart
everhart at surfbest.net

-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of William
Greathouse
Sent: Tuesday, January 28, 2003 9:10 AM
To: R Douglas Everhart; vtkusers at public.kitware.com
Subject: RE: [vtkusers] vtk, cygwin and opengl


Am I correct in assuming this builds a MS-Window's executable and
not an X Window executable?  I am interested in building an X
compatible VTK under Cygwin.  Has anyone accomplished this?

TIA,
Bill

> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of R Douglas
> Everhart
> Sent: Tuesday, January 28, 2003 8:34 AM
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] vtk, cygwin and opengl
>
>
> I recently completed building vtk4.0 on CYGWIN.  I had looked in
> the mailing
> list archives to find a procedure to do this and didn't find a
> recipe.  So,
> I thought others might benefit from my experience.  Here's what
> you need to
> do in addition to the standard vtk build procedures:
>
> 1. cmake.  You need to have cmake running under CYGWIN.  This is available
> as a standard package now.  You can install it from any CYGWIN
> distribution
> mirror.  This sure beats building it by hand.
>
> 2. opengl header files.  You must move or delete the opengl headers in
> /usr/X11R6/include/GL (gl.h, glu.h,.....).  These header files are not
> congruent with opengl32.  The -I flag in the makefile forces these header
> files to be found first, if they are present.  If you fail to do this, you
> will get a bunch of undefined library errors when you try to link the vtk
> libraries with an application.  The correct headers are present as part of
> the w32api package.
>
> 3. w32api.  You must have a recent version of w32api.  This insures that
> your build will correctly reference opengl-1.1.  I suggest installing the
> lastest one from a CYGWIN distribution mirror.
>
> Your mileage may vary, but this is what worked for me.
>
> Enjoy
>
> R. Douglas Everhart
> everhart at surfbest.net
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list