[vtkusers] VTK & kdevelop
Tuhin
tk.sinha at vanderbilt.edu
Wed Jun 25 10:34:55 EDT 2003
It would be nice to have a KDevelop project generator in CMake. That way one
could use the FIND_PACKAGE(VTK) directive in a CMakeLists.txt file and CMake
would do all the hard work for you. I remember someone posting on this topic
(i.e. KDevelop integration into CMake), but I haven't heard anything since.
Does anyone have any info on the status, or lack thereof, of this project?
Tuhin Sinha
On Wednesday 25 June 2003 06:29, N Smethurst wrote:
> Christos
>
> There's no problem using VTK classes in a c++ program developed with
> KDevelop. my main activity involves a program developed with KDevelop
> using QT/KDE & VTK.
>
> You can use VTK in the same way as any other shared library. Go into the
> project options dialog, and add the following (this is for KDevelop 2.15):
>
> This assumes that VTK is installed in /usr
>
> In compiler options:
> In Flags and Warnings:
> C Preprocessor flags: -I/usr/include/vtk
> C++ Compiler flags: -Wno-deprecated (this avoids all the deprecated
> messages)
> In Linker Flags
> Additional flags: -L/usr/lib/vtk
> -Wl,--rpath,/usr/lib/vtk
>
> In Linker Options:
> Additional libraries: -lvtkIO -lvtkHybrid -lvtkGraphics -lvtkRendering
> (and any others that you may need)
> You probably need to select the math check box too.
>
> and that should be all you need to do apart from including the headers in
> your program as normal like:
>
> #include <vtkActor.h>
>
> Hope this helps.
>
> Nick
>
> Le Mardi 24 Juin 2003 20:16, Christos Panagiotou a écrit :
> > Hi
> >
> > I am having the following problem
> > I have compiled the official version of VTK (not nightly release)
> > I want to use some of its classes to a project i am working on (I am
> > working with KDevelop (which I havent worked before))
> > However I dont know how to setup kdevelop to work with VTK
> > Is it possible someone to explain to me how to set it up?
> > for example how can I set up the paths for the .h files so kdevelop will
> > see them etc.
> >
> > Maybe this is a kdevelop question but I think some of you must have done
> > it! I would be greatful for any kind of help!
> >
> > thanks
> > christos
> >
> >
> >
> > _______________________________________________
> > 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://www.vtk.org/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://www.vtk.org/mailman/listinfo/vtkusers
--
Graduate Research Assistant
Dept. Of BME
Vanderbilt University
615-343-8261
More information about the vtkusers
mailing list