The VTK/Examples folder is built on some of the dashboard submissions. Looking for BUILD_EXAMPLES ON and vtk in the DashboardScripts folder shows where they might be being built (for scripts that are still running, some of these will be stale, old scripts that don't run anymore......)<div>
<br></div><div><div>davidcole@damogran : DashboardScripts</div><div><span class="Apple-style-span" style="font-weight: bold;">$ grep BUILD_EXAMPLES * | grep vtk | grep ON</span></div><div>Eternia_vtk_gcc_exp.cmake:BUILD_EXAMPLES:BOOL=ON</div>
<div>amber2_vtk_valgrind.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>beleriand_vtk_volumepro_nmake71.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>dash11_vtk_vs71.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>dash17_vtkSNL_gcc40.cmake:BUILD_EXAMPLES:BOOL=ON</div>
<div>dash1_vtk_vs71.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>dash20_vtk_vs9_exp.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>dash5_vtkSNLstatic_gcc.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>destiny_vtk_aCC-static.cmake:BUILD_EXAMPLES:BOOL=ON</div>
<div>destiny_vtk_aCC.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>faraway_vtk_coverage.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>faraway_vtk_valgrind.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>hythloth_vtk_gcc-4.1.cmake:BUILD_EXAMPLES:BOOL=ON</div>
<div>krondor_vtkcarbon_gcc.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>krondor_vtkcocoa_gcc.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>midworld_vtk_carbon_gcc.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>midworld_vtk_cocoa_gcc.cmake:BUILD_EXAMPLES:BOOL=ON</div>
<div>morva_vtk_vs71.cmake:BUILD_EXAMPLES:BOOL=ON</div><div>shannara_vtk_CC.cmake:BUILD_EXAMPLES:BOOL=ON</div><div><br></div><div><br></div><div>You should be able to build VTK/Examples/CMakeLists.txt as an independent top level project, point it to VTK_DIR for a build or install tree of VTK and then get all the examples that "make sense" for the current platform and build of VTK.</div>
<div><br></div><div>So the examples have the very huge potential to stay as fresh as the rest of VTK as long as we have enough dashboard machines that turn on BUILD_EXAMPLES in their scripts.</div><div><br></div><div>I don't think you should disconnect the examples are make them separate repository. They totally belong in the VTK repository itself -- otherwise, you will have extra work at branch time. And do examples for VTK 5.6 build against 5.4 and 5.2... etc etc etc -- no need to introduce yet another way to explode things combinatorially.... (It does not save people that much time or space to avoid 1000 source files in a source control system...)</div>
<div><br></div><div><br></div><div>HTH,</div><div>David Cole</div><div><br></div><div><br></div><br><div class="gmail_quote">On Mon, Dec 14, 2009 at 1:27 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
<br>
The examples section of the wiki is getting very large<br>
(<a href="http://www.cmake.org/Wiki/VTK_Examples" target="_blank">http://www.cmake.org/Wiki/VTK_Examples</a>). I have been working to get<br>
them all to meet VTK coding guidelines and I believe they are now at<br>
that point. It would be very helpful if these could maintained in a<br>
non-wiki format. First, operations like 'grep' become usable. It is<br>
sometimes hard to find things in big folders full of code without grep<br>
- forget about it on a wiki! Second, the examples are not regression<br>
tested so as the interfaces to the library evolve, the examples will<br>
start to degrade and become non-compilable.<br>
<br>
Ken mentioned that we should put these in the testing directory. I<br>
think that the purpose of the tests is to ensure that OTHER code<br>
works. The purpose of testing the examples is to make sure that the<br>
examples themselves still work. This is very different. Also (from my<br>
experience), people typically think of a testing directory as a<br>
cryptic jungle of comment-less code where an examples directory should<br>
be a place to go to learn how to use things. I don't think it is<br>
necessary to write tests for the examples, but ensuring they compile<br>
and link is much better than letting them rot on a webpage.<br>
<br>
I propose doing one of two thigns:<br>
a) Put the examples in the existing VTK/Examples directory<br>
<br>
b) Make the examples a separate repository (like VTKData) so that<br>
users don't need to download the many examples unless they actually<br>
want them.<br>
<br>
In both cases, we would set up dummy tests to report only compilation<br>
and linking errors.<br>
<br>
At some point a web interface could be provided, but I think the first<br>
step is to get them into a position to be regression tested.<br>
<br>
What do you think? I've been talking about this for a while now, but<br>
it is getting big enough to actually be tough to maintain so it would<br>
be nice to start the transition. As I move them to their new home, it<br>
would be a good time to review them to ensure the necessary<br>
comments/images are in place to make them as useful/clear as possible.<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>