[vtk-developers] FW: Building new vtk

Bill Hoffman bill.hoffman at kitware.com
Wed Oct 31 10:12:47 EST 2001


This should be in a FAQ I guess.

There are rules in the .dsp files that can run cmake if the CMakeLists.txt file
is changed.   So, vtkCommon.dsp : vtk/Common/CMakeLists.txt.  This can cause several
problems:

1. if you do a clean or Rebuild-all, it will remove the .dsp files and regenerate them,
and force the GUI to ask you to reload them, but you can not reload in during a build...

2. If you change many of the list files then do a build, it can take a while to
reload them one at a time.

3. On the good side, if you add a class, and do a build it will update the dsp and
do the right thing.


This is the main reason for the ALL_BUILD target.  Batch build forces you to select
configuations for each library and executable which is a pain.  Rebuild-all, removes the
dsp files and causes all the questions to be asked.   So, set the ALL_BUILD as the
active project (Debug, or Release).  Then just use the Build button.  

Since CMake supports out of source builds on windows, if you expect to be doing clean rebuilds
often, I would suggest building out of source, and just removing the tree.  (don't forget
to save the CMakeCache.txt file).

-Bill


At 10:51 AM 10/31/2001 -0500, Volpe, Christopher R (CRD) wrote:
>Ok, now that I've first verified that I'm not the only one encountering general weirdness in the
>DevStudio vtk workspace generated by CMake, I thought I'd share this experience with the community to
>see if anyone has any ideas on what might be causing this. 
>
>> During a "re-build all" in DevStudio, it sporadically pops up windows telling me that a particular
>> project file was modified outside DevStudio and do I want to re-load it. If I say "yes" it
>> complains that I can't reload during a build and that I must stop the build first. If I say "no" it
>> keeps going. But I know that nothing is modifying the project files outside of DevStudio. I closed
>> the workspace, ran cmake, re-opened the workspace, reset all my browse info settings, did a "save
>> all", and then did "Rebuild All" while my current project is set to "ALL_BUILD files". 
>> 
>Am I doing something wrong?
>
>thanks,
>
>Chris
>> g GE Corporate Research & Development 
>> ___________________________________________________________________________________________________
>> _______________________________________________
>> 
>Christopher R. Volpe
>Computer Scientist
>Visualization and Computer Vision Lab / Global Imaging Technology
>Bldg KW, Room C215
>P.O. Box 8, Schenectady, NY 12301
>
>(518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981
>e-mail: volpecr at crd.ge.com    web: http://www.crd.ge.com/~volpecr
>
>
>
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/vtk-developers 




More information about the vtk-developers mailing list