[vtkusers] Using VTK and FLTK..Reply

Sean McInerney seanm at nmr.mgh.harvard.edu
Fri Jul 30 16:52:38 EDT 2004


Okay BeeJay ... Let's see ...

   Both VTK 4.4 and 4.2 should work, but the 4.2 headers should not be 
used when linking with the 4.4 libraries (and vice versa). Hopefully, 
this can boil down to some simple tweaking via CMake (the CMakeSetup 
executable on windows). Aside from making sure that CMakeSetup is 
dealing with headers and libraries from the correct versions of VTK and 
FLTK, try setting 'BUILD_SHARED_LIBS' to 'OFF'.

   If this doesn't help, feel free to send the CMakeCache.txt file 
generated by CMakeSetup to me.

-Sean

Sentil Balaji wrote:
> Hey Sean,
> 
>      Actually, I have two different versions of
> VTK(4.4 and 4.2) but I use 4.4.All the dll's belong to
> the latest version.I use FLTK1.4,have'nt made any
> changes to it.This is what I did:
>   1. I downloaded the vtkFLTK package and installed it
> to a folder VTKFLTK
>   2. Used Cmake to create the binaries and Cmake
> popped asking for FLTK_INCLUDE_DIR but it
> automatically picked up vtk4.2\lib folder.
>  3.  After building  VTK_FTLK.dsw, I got a vtkFLTK.lib
> file in my Debug folder but  the program stopped with
> 2 errors(linker errors).
>  4.  I tried the example program with the .lib file
> included with VTK4.4 and had several linker errors.
>    I still doubt the last step as I believe there
> might be a version conflict.But, I also had the belief
> that an upper version would'nt conflict.
>    I think what I got is a static library...I aint 
> sure..Please Let me know If I had messed things up
> somewhere...
> 
> Many Thanks
> 
> Cheers
> 
> BeeJay
> 



More information about the vtkusers mailing list