[vtkusers] vtk Build for Visual Studio
Bob Palank
bob at stlcc.org
Tue Sep 28 16:41:30 EDT 2010
Once I'm done I want VTK 560 content for three folders - bin (holding dlls),
Include (for all header files) and a Lib folder for all lib files. I'll
move the files into the correct folders on my own.
Building vtk apps requires the include and lib folders and application
execution is dependent on the dlls. In coding , I use explicit includes and
pragmas ( e.g.
#pragma comment(lib, "d:\\vtk560\\Lib\\vtkRendering.lib")
Now the question in VS 2008 do I right click and build on INSTALL or
ALL_BUILD?
As of now I have everything I need except there are no dlls- not in debug
nor release.
Does the VS2008 Build generate the dlls ? ?
TIA
Bob
-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com]
Sent: Monday, September 27, 2010 3:36 PM
To: Bob Palank
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtk Build for Visual Studio
On Mon, Sep 27, 2010 at 4:16 PM, John Drescher <drescherjm at gmail.com> wrote:
>> Upon a VS 2008 Build completion, should I expect to see a collection of
dll
>> files?
>
> If you enabled shared lib building when you configured that then yes.
> I believe this is the default.
>
>> If so, where?
>
> In the build folder (that you configured) there will be a bin/debug
> and bin/release ...
>
BTW, when you are building under Visual Studio do not build the
install target (like some guides tell you) that will only cause
problems with debugging because when you install the .dll names are
the same for debug and release so with the name collision you have to
choose to install debug or release instead of being able to use either
in a normal development process. For CMake based applications instead
you tell them where your VTK_DIR is and that location is the root
where you had your build created.
John
More information about the vtkusers
mailing list