Graphics-VTK

 view release on metacpan or  search on metacpan

Common/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Common',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Filtering/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Filtering',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Graphics/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Graphics',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Hybrid/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Hybrid',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

IO/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::IO',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Imaging/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Imaging',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Makefile.PL  view on Meta::CPAN

use ExtUtils::MakeMaker;
use Config;

$CCFLAGS = ' ';
require "./VTK.config";

my $dynamic_lib;
# Solaris seems to need these flags when running 
#   Suns C++ Compiler
if( $Config{'osname'} eq 'solaris' &&
	$vtkConfigMacro{CC} eq 'CC'){
	
	$CCFLAGS .= ' -DHAS_BOOL ';
	$vtkConfigMacro{LIBS}[0] .= ' -lCrun -lCstd ';
}
	
$VERSION = '4.0.001';

WriteMakefile(
    'NAME' => 'Graphics::VTK',
    'CCFLAGS' => $CCFLAGS,
    'DISTNAME' => 'PerlVTK',
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM'  => 'VTK.pm',
    'CONFIGURE' => sub { return \%vtkConfigMacro },
   );



Patented/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Patented',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Rendering/Makefile.PL  view on Meta::CPAN


my %configHash = %vtkConfigMacro;

$configHash{INC} = '-I../ '.$configHash{INC}; # Add another dir to include path


WriteMakefile(
    'NAME'	=> 'Graphics::VTK::Rendering',
    'CCFLAGS'   => $CCFLAGS,
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'VERSION_FROM' => '../VTK.pm',

Tk/Makefile.PL  view on Meta::CPAN

    'NAME'     => 'Graphics::VTK::Tk',
    'DIR'      => ['pTk','vtkGlue',reverse(sort(keys %$dir))],
    'DISTNAME' => "VTK",
    'MYEXTLIB' => 'pTk/libpTk$(LIB_EXT)' . ($win_arch =~ /^(open32|pm)$/
					    ? ' pTk/dllInit$(LIB_EXT)'
					    : ''),
    'LIBS'    => \@libs,
    'OBJECT'  => '$(O_FILES)',
    'clean'      => { FILES => 'pTk/tkConfig.h ' },
    @macro,
    'CONFIGURE' => sub { my $configHash = {%vtkConfigMacro};
    			 $configHash->{INC} = "-I../ -I$ptkPath -IpTk -I$ptkPath/pTk ".$configHash->{INC};
			 return $configHash; },
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'CCFLAGS'   => $CCFLAGS,

   );


sub MY::top_targets

Tk/Tk.xs  view on Meta::CPAN


#include "tkGlue.def"

#include "tkPort.h"
#include "tkInt.h"
/* Include win32 Tk Stuff */
#ifdef WIN32
#include "tkWin.h"
#include "tkWinInt.h"
#endif
#include "tkVMacro.h"
#include "tkGlue.h"
#include "tkGlue.m"




DECLARE_VTABLES;
DECLARE_WIN32_VTABLES;

MODULE = Graphics::VTK::Tk	PACKAGE = Graphics::VTK

Tk/pTk/Makefile.PL  view on Meta::CPAN

if( $tkversion <= 800.022 ){
	# Tkversion 800.022 needs the old style LandWidgetArg
	#  instead of the new LangWidgetObj call
	$define .= ' -DUSE_LANGWIDGETARG';
}

# Find path to existing pTk include files
my $ptkPath = Tk::MMutil::findINC('Tk/pTk/Lang.h');
$ptkPath =~ s/\/Lang.h$//g;

my %configHash = %vtkConfigMacro;

$configHash{INC} = "-I../ $inc -I$ptkPath -I. -Ibitmaps ".$configHash{INC}; # Add another dir to include path

# Get list of objects, since makemaker won't autodetect the cxx files (also lets
#  us control win32 files)
my @cxxfiles = ( qw/ vtkXRenderWindowTclInteractor vtkTkRenderWidget vtkTkImageViewerWidget vtkTkImageWindowWidget /);
# Remove X stuff if win32
if( $^O =~ /win32/i){
	@cxxfiles = grep $_ !~ /vtkXRenderWindow/, @cxxfiles;
}

Tk/pTk/mTk/vtkTcl/tkWinX.c  view on Meta::CPAN


/* This portion of the tkWinX.c file from the Tk distribution is included in the PerlVTK distribution
   because the function TkWinChildProc is not exported by perlTk
*/ 

#include "vtkTkport.h"
extern "C"{
#include "tkInt.h"
#include "tkWinInt.h"
}
#include "tkVMacro.h"

/*
 * The zmouse.h file includes the definition for WM_MOUSEWHEEL.
 */

#ifndef __BORLANDC__
#include <zmouse.h>
#endif
#ifndef WM_MOUSEWHEEL
#define WM_MOUSEWHEEL (WM_MOUSELAST+1)  // message that will be supported

Tk/pTk/mTk/vtkTcl/vtkTkImageViewerWidget.cxx  view on Meta::CPAN

#include <stdio.h>
#include <stdlib.h>
 

#include "vtkTkport.h"
#include "tkPort.h"
#include "tkInt.h"
#ifdef _WIN32
#include "tkWin.h"
#endif
#include "tkVMacro.h"

#include "vtkTkImageViewerWidget.h"

#ifdef _WIN32
#pragma warning ( disable : 4273 )
#else
#include "vtkXOpenGLRenderWindow.h"
#endif

#define VTK_ALL_EVENTS_MASK \

Tk/pTk/mTk/vtkTcl/vtkTkImageViewerWidget.cxx  view on Meta::CPAN


static void vtkTkImageViewerWidget_Destroy(char *memPtr)
{
  struct vtkTkImageViewerWidget *self = (struct vtkTkImageViewerWidget *)memPtr;
 // Destruction of the Image Viewer is handled thru the widget's perl code

  if (self->ImageViewer)
    {
    if (self->ImageViewer->GetReferenceCount() > 1)
      {
      vtkGenericWarningMacro("A TkImageViewerWidget is being destroyed before it associated vtkImageViewer is destroyed. This is very bad and usually due to the order in which objects are being destroyed. Always destroy the vtkImageViewer before dest...
      return;
      }
    // Squash the ImageViewer's WindowID
    self->ImageViewer->SetWindowId ( (void*)NULL );
    //self->ImageViewer->UnRegister(NULL);
    //self->ImageViewer = NULL;
    //free (self->IV);
  }
  ckfree((char *) memPtr);
  

Tk/pTk/mTk/vtkTcl/vtkTkImageWindowWidget.cxx  view on Meta::CPAN


#include <stdio.h>
#include <stdlib.h>

#include "vtkTkport.h"
#include "tkPort.h"
#include "tkInt.h"
#ifdef _WIN32
#include "tkWin.h"
#endif
#include "tkVMacro.h"

#include "vtkTkImageWindowWidget.h"

#ifdef _WIN32
#pragma warning ( disable : 4273 )
#else
#include "vtkXImageWindow.h"
#endif

#define VTK_ALL_EVENTS_MASK \

Tk/pTk/mTk/vtkTcl/vtkTkRenderWidget.cxx  view on Meta::CPAN

=========================================================================*/
#include <stdio.h>
#include <stdlib.h>

#include "vtkTkport.h"
#include "tkPort.h"
#include "tkInt.h"

#include "vtkTkRenderWidget.h"

#include "tkVMacro.h"


#ifdef _WIN32
#include "vtkWin32OpenGLRenderWindow.h"
#else
#include "vtkXOpenGLRenderWindow.h"
#endif


#define VTK_ALL_EVENTS_MASK \

Tk/pTk/mTk/vtkTcl/vtkXRenderWindowTclInteractor.cxx  view on Meta::CPAN

#include "vtkXRenderWindowTclInteractor.h"
#include "vtkInteractorStyle.h"
#include "vtkXOpenGLRenderWindow.h"
#include "vtkActor.h"
#include <X11/Shell.h>
#include <math.h>

#include "vtkTkport.h"
#include "tkPort.h"
#include "tkInt.h"
#include "tkVMacro.h"

#include "vtkActorCollection.h"
#include "vtkPoints.h"
#include "vtkOldStyleCallbackCommand.h"
#include "vtkObjectFactory.h"



//------------------------------------------------------------------------------
vtkXRenderWindowTclInteractor* vtkXRenderWindowTclInteractor::New()

Tk/pTk/mTk/vtkTcl/vtkXRenderWindowTclInteractor.cxx  view on Meta::CPAN


// Begin processing keyboard strokes.
void vtkXRenderWindowTclInteractor::Initialize()
{
  vtkXOpenGLRenderWindow *ren;
  int *size;

  // make sure we have a RenderWindow and camera
  if ( ! this->RenderWindow)
    {
    vtkErrorMacro(<<"No renderer defined!");
    return;
    }

  this->Initialized = 1;
  ren = (vtkXOpenGLRenderWindow *)(this->RenderWindow);

  // use the same display as tcl/tk
#if ((TK_MAJOR_VERSION <= 4)||((TK_MAJOR_VERSION == 8)&&(TK_MINOR_VERSION == 0)))
  ren->SetDisplayId(Tk_Display(tkMainWindowList->winPtr));
#else

Tk/pTk/mTk/vtkTcl/vtkXRenderWindowTclInteractor.h  view on Meta::CPAN

// now we define the C++ class

#include "vtkRenderWindowInteractor.h"
#include <X11/StringDefs.h>
#include <X11/Intrinsic.h>

class VTK_RENDERING_EXPORT vtkXRenderWindowTclInteractor : public vtkRenderWindowInteractor
{
public:
  static vtkXRenderWindowTclInteractor *New();
  vtkTypeMacro(vtkXRenderWindowTclInteractor,vtkRenderWindowInteractor);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Initializes the event handlers without an XtAppContext.  This is
  // good for when you don't have a user interface, but you still
  // want to have mouse interaction.
  virtual void Initialize();

  // Description: 
  // Initializes the event handlers using an XtAppContext that you have
  // provided.  This assumes that you want to own the event loop.
  virtual void Initialize(XtAppContext app);
  vtkGetMacro( App, XtAppContext );
  
  // Description:
  // Enable/Disable interactions.  By default interactors are enabled when
  // initialized.  Initialize() must be called prior to enabling/disabling
  // interaction. These methods are used when a window/widget is being
  // shared by multiple renderers and interactors.  This allows a "modal"
  // display where one interactor is active when its data is to be displayed
  // and all other interactors associated with the widget are disabled
  // when their data is not displayed.
  virtual void Enable();

Tk/pTk/mTk/vtkTcl/vtkXRenderWindowTclInteractor.h  view on Meta::CPAN

  // X timer methods
  int CreateTimer(int timertype);
  int DestroyTimer(void);

  // Description:
  // X Tcl specific application terminate. 
  void TerminateApp(void);

  // Description:
  // Set this flag to break the event loop.
  vtkGetMacro(BreakLoopFlag, int);
  vtkSetMacro(BreakLoopFlag, int);

  // Description:
  // Functions that are used internally.
  friend void vtkXRenderWindowTclInteractorCallback(Widget,XtPointer,
                                                 XEvent *,Boolean *);
  friend void vtkXRenderWindowTclInteractorTimer(XtPointer,XtIntervalId *);

protected:
  vtkXRenderWindowTclInteractor();
  ~vtkXRenderWindowTclInteractor();

Tk/vtkGlue/Makefile.PL  view on Meta::CPAN

Tk::MMutil::TkExtMakefile(
      'NAME' => 'Graphics::VTK::Tk::vtkGlue',

    'VERSION'  => $VERSION,
    'XS_VERSION' => $VERSION,
    'DISTNAME' => "VTK",
    'LIBS'    => \@libs,
    'OBJECT'  => '$(O_FILES)',
    'LINKTYPE' => 'static',
    @macro,
    'CONFIGURE' => sub { my $configHash = {%vtkConfigMacro};
    			 $configHash->{INC} = "-I../../ -I$ptkPath -I../pTk ".$configHash->{INC};
			 return $configHash; },
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'CCFLAGS'   => $CCFLAGS,
    'SKIP'	=> [qw( distclean dist makeaperl xs_o)],

      );

# Fix the dependancies for vTkGlue

Tk/vtkGlue/vtkGlue.cpp  view on Meta::CPAN

#ifdef __MINGW32__
#undef THIS
#endif

#include "vtkPerl.h"

#include "tkGlue.def"

#include "pTk/tkPort.h"
#include "pTk/tkInt.h"
#include "pTk/tkVMacro.h"
#include "tkGlue.h"
#include "tkGlue.m"

#include <stdlib.h>
#include "vtkObject.h"


/* Replacements for vtk's functions that appear in vtkTclUtil.cxx that are
   needed by the tk widget functions */

Tk/vtkImageViewer/Makefile.PL  view on Meta::CPAN


Tk::MMutil::TkExtMakefile(
      'NAME' => 'Graphics::VTK::Tk::vtkImageViewer',

    'VERSION'  => $VERSION,
    'XS_VERSION' => $VERSION,
    'DISTNAME' => "VTK",
    'LIBS'    => \@libs,
    'OBJECT'  => '$(O_FILES)',
    @macro,
    'CONFIGURE' => sub { my $configHash = {%vtkConfigMacro};
    			 $configHash->{INC} = "-I../../ -I$ptkPath -I../pTk -I$ptkPath/pTk ".$configHash->{INC};
			 return $configHash; },
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'CCFLAGS'   => $CCFLAGS,
    'MYEXTLIB' => '../pTk/libpTk$(LIB_EXT) ../vtkGlue/libvtkGlue$(LIB_EXT)' . ($win_arch =~ /^(open32|pm)$/
					    ? ' pTk/dllInit$(LIB_EXT)'
					    : ''),
      'dynamic_ptk' => 1
      );

Tk/vtkImageViewer/vtkImageViewer.xs  view on Meta::CPAN


#include "tkPort.h"
#include "tkInt.h"

/* Include win32 Tk Stuff */
#ifdef WIN32
#include "tkWin.h"
#include "tkWinInt.h"
#endif

#include "tkVMacro.h"
#include "tkGlue.h"
#include "tkGlue.m"

#include "../pTk/vtkTkImageViewerWidget.h"



DECLARE_VTABLES;
DECLARE_WIN32_VTABLES;

Tk/vtkImageWindow/Makefile.PL  view on Meta::CPAN


Tk::MMutil::TkExtMakefile(
      'NAME' => 'Graphics::VTK::Tk::vtkImageWindow',

    'VERSION'  => $VERSION,
    'XS_VERSION' => $VERSION,
    'DISTNAME' => "VTK",
    'LIBS'    => \@libs,
    'OBJECT'  => '$(O_FILES)',
    @macro,
    'CONFIGURE' => sub { my $configHash = {%vtkConfigMacro};
    			 $configHash->{INC} = "-I../../ -I$ptkPath -I../pTk -I$ptkPath/pTk ".$configHash->{INC};
			 return $configHash; },
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'CCFLAGS'   => $CCFLAGS,
    'MYEXTLIB' => '../pTk/libpTk$(LIB_EXT) ../vtkGlue/libvtkGlue$(LIB_EXT)' . ($win_arch =~ /^(open32|pm)$/
					    ? ' pTk/dllInit$(LIB_EXT)'
					    : ''),
      'dynamic_ptk' => 1
      );

Tk/vtkImageWindow/vtkImageWindow.xs  view on Meta::CPAN

#include "tkGlue.def"

#include "tkPort.h"
#include "tkInt.h"
/* Include win32 Tk Stuff */
#ifdef WIN32
#include "tkWin.h"
#include "tkWinInt.h"
#endif

#include "tkVMacro.h"
#include "tkGlue.h"
#include "tkGlue.m"

#include "../pTk/vtkTkImageWindowWidget.h"



DECLARE_VTABLES;
DECLARE_WIN32_VTABLES;

Tk/vtkInteractor/Makefile.PL  view on Meta::CPAN


Tk::MMutil::TkExtMakefile(
      'NAME' => 'Graphics::VTK::Tk::vtkInteractor',

    'VERSION'  => $VERSION,
    'XS_VERSION' => $VERSION,
    'DISTNAME' => "VTK",
    'LIBS'    => \@libs,
    'OBJECT'  => '$(O_FILES)',
    @macro,
    'CONFIGURE' => sub { my $configHash = {%vtkConfigMacro};
    			 $configHash->{INC} = "-I../../ -I$ptkPath -I../pTk -I$ptkPath/pTk ".$configHash->{INC};
			 return $configHash; },
    'OPTIMIZE'   => ' ', # Turn optimize off, optimization on cause very large
    			# memory consumption when compiling VTK.c
    'CCFLAGS'   => $CCFLAGS,
    'MYEXTLIB' => '../pTk/libpTk$(LIB_EXT) ../vtkGlue/libvtkGlue$(LIB_EXT)' . ($win_arch =~ /^(open32|pm)$/
					    ? ' pTk/dllInit$(LIB_EXT)'
					    : ''),
      'dynamic_ptk' => 1
      );

Tk/vtkInteractor/vtkInteractor.xs  view on Meta::CPAN


#include "tkPort.h"
#include "tkInt.h"

/* Include win32 Tk Stuff */
#ifdef WIN32
#include "tkWin.h"
#include "tkWinInt.h"
#endif

#include "tkVMacro.h"
#include "tkGlue.h"
#include "tkGlue.m"

#include "../pTk/vtkTkRenderWidget.h"



DECLARE_VTABLES;
DECLARE_WIN32_VTABLES;

VTK.config  view on Meta::CPAN

#
#
#
# Sample Perl VTK Config file for RedHat
#   Copy this file to VTK.config and modify for your installation
#    (Tested on Redhat 7.1)

%vtkConfigMacro = (
    'CC' => 'c++',
    'LIBS' => ['-L/usr/local/lib/vtk -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkPatented -lvtkRendering -lvtkHybrid -lpthread -L/usr/lib -L/usr/X11R6/lib -lGL -ldl -lXext -lXt -lSM -lICE -lX11 -lm'],

# INC should contain the paths to your VTK include files
#   Note: Extra hybrid and Rendering path included here, because the standard VTK 4.0
#     fails to put vtkVRML.h and vtk3DS.h with the rest of the include when 
#      installing.
#    Also, vtkXRenderwindow.h is missing from the Rendering directory
    'INC' => '-I/usr/local/include/vtk -I/home/cerney/vtk/vtk40/Hybrid -I/home/cerney/vtk/vtk40/Rendering'
);

VTK.config.redhat  view on Meta::CPAN

#
#
#
# Sample Perl VTK Config file for RedHat
#   Copy this file to VTK.config and modify for your installation
#    (Tested on Redhat 7.1)

%vtkConfigMacro = (
    'CC' => 'c++',
    'LIBS' => ['-L/usr/local/lib/vtk -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkPatented -lvtkRendering -lvtkHybrid -lpthread -L/usr/lib -L/usr/X11R6/lib -lGL -ldl -lXext -lXt -lSM -lICE -lX11 -lm'],

# INC should contain the paths to your VTK include files
#   Note: Extra hybrid and Rendering path included here, because the standard VTK 4.0
#     fails to put vtkVRML.h and vtk3DS.h with the rest of the include when 
#      installing.
#    Also, vtkXRenderwindow.h is missing from the Rendering directory
    'INC' => '-I/usr/local/include/vtk -I/home/cerney/vtk/vtk40/Hybrid -I/home/cerney/vtk/vtk40/Rendering'
);

VTK.config.solaris  view on Meta::CPAN

#
#  
# Sample Perl VTK Config file for Solaris.  (Using Sun's Compiler)
#   Copy this file to VTK.config and modify for your installation
#   (Tested on SunOS 5.6, perl5.6.0, built with SUN's compiler,  
#      VTK and PerlVTK built with g++)


%vtkConfigMacro = (
    'CC' => 'g++',   # Use CC if using SUNs C++ compiler
#    'LD' => 'g++',  # Only needed if complier used to build Graphics::VTK
		     #    is different than the compiler used to build perl.
		     
    'LIBS' => ['-L/projects/dbteam/vtk/lib/vtk -lvtkCommon -lvtkFiltering -lvtkImaging -lvtkPatented -lvtkRendering -lvtkHybrid -lpthread -L/home/cerney/openGL/lib -L/usr/lib -L/usr/X11R6/lib -lGL -ldl -lXext -lXt -lSM -lICE -lX11 -lm'],

# INC should contain the paths to your VTK include files
#   Note: Extra hybrid and Rendering path included here, because the standard VTK 4.0
#     fails to put vtkVRML.h and vtk3DS.h with the rest of the include when 
#      installing.

VTK.config.win32  view on Meta::CPAN

#
#
#
# Sample Perl VTK Config file for Win32
#   Copy this file to VTK.config and modify for your installation
#    (Tested on Windows with mingw compiler)

%vtkConfigMacro = (
    'CC' => 'g++',
    'LIBS' => ['-L/UDIR/mingw1.1/lib -L/UDIR/mingw1.1/lib/gcc-lib/mingw32/2.95.3-6 -L/UDIR/VTK/output/lib -lvtkCommon -lvtkFiltering -lvtkGraphics -lvtkImaging -lvtkPatented -lvtkRendering -lvtkHybrid -lvtkIO -lglut32 -lglu32 -lopengl32 -lm -lstdc++'...

# INC should contain the paths to your VTK include files
#   Note: Extra hybrid and Rendering path included here, because the standard VTK 4.0
#     fails to put vtkVRML.h and vtk3DS.h with the rest of the include when 
#      installing.
#    Also, vtkXRenderwindow.h is missing from the Rendering directory
    'INC' => '-I/UDIR/VTK/output/include -I/UDIR/VTK/Hybrid -I/UDIR/VTK/Rendering'
);



( run in 0.971 second using v1.01-cache-2.11-cpan-49f99fa48dc )