<div dir="ltr">ctest -R &quot;^TestName$&quot;<div><br></div><div>in the build directory will run just tests that match the regular expression &quot;^TestName$&quot;</div><div><br><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 2:53 PM, Labitt, Bruce <span dir="ltr">&lt;<a href="mailto:labittb1@tycoelectronics.com">labittb1@tycoelectronics.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I just tried your suggestion. &nbsp;We are getting a little closer. &nbsp;Now 7%<br>
of the tests pass vs 4% before.<br>
<br>
The first 19 tests pass, then it gets a bit patchy. &nbsp;I notice that lots<br>
of python related tests fail.<br>
<div class="Ih2E3d"><br>
-Bruce<br>
<br>
-----Original Message-----<br>
From: Mike Jackson [mailto:<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>]<br>
</div><div><div></div><div class="Wj3C7c">Sent: Friday, September 05, 2008 2:35 PM<br>
To: Labitt, Bruce<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] Getting Started Questions<br>
<br>
Someone else can chime in here but I think there is a way to just run<br>
one test. What you need to do is run one test that fails and figure<br>
out _why_ it failed. Did it fail because it couldn&#39;t find the<br>
libraries? or did it fail because OpenGL or the Window Manager mucked<br>
things up?<br>
<br>
Try this?<br>
<br>
in your terminal (assuming bash) &quot;export LD_LIBRARY_PATH=<br>
$LD_LIBRARY_PATH:/home/me/VTK-build/bin&quot;<br>
<br>
and then try &quot;make test&quot; again.<br>
<br>
If everything goes just fine, then &quot;make install&quot; will install<br>
everything into the &quot;CMAKE_INSTALL_PREFIX&quot; location which is probably /<br>
usr/local. If you want to &quot;sandbox&quot; the installation change the<br>
&quot;CMAKE_INSTALL_PREFIX&quot; to /usr/local/vtk-5.2 and build again.<br>
<br>
Mike<br>
<br>
On Sep 5, 2008, at 2:18 PM, Labitt, Bruce wrote:<br>
<br>
&gt; I just did everything all over again. &nbsp;It appeared that make<br>
&gt; completed.<br>
&gt; [100%] Built target VTKExamplesTarget is the last line.<br>
&gt;<br>
&gt; However, make test results in 4% of tests passing - all others fail.<br>
&gt; This is the same as before. &nbsp;I did not use RPATH.<br>
&gt;<br>
&gt; I&#39;m trying again - maybe I messed something up. &nbsp;I started with a<br>
&gt; blank<br>
&gt; VTK-build directory again.<br>
&gt;<br>
&gt; If [VTK-build] $ make &nbsp; &nbsp; &nbsp; &nbsp;completed, then<br>
&gt; [VTK-build] $ make test &nbsp; &nbsp; &nbsp;should work if all is good?<br>
&gt;<br>
&gt; If make test is good then I do sudo make install, yes?<br>
&gt;<br>
&gt; -Bruce<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: David E DeMarle [mailto:<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>]<br>
&gt; Sent: Friday, September 05, 2008 11:25 AM<br>
&gt; To: Labitt, Bruce<br>
&gt; Cc: Mike Jackson; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Subject: Re: [vtkusers] Getting Started Questions<br>
&gt;<br>
&gt; And unless you did a make install the only thing that configuring and<br>
&gt; building vtk would change is the build directory.<br>
&gt;<br>
&gt; On Fri, Sep 5, 2008 at 11:11 AM, Labitt, Bruce<br>
&gt; &lt;<a href="mailto:labittb1@tycoelectronics.com">labittb1@tycoelectronics.com</a>&gt; wrote:<br>
&gt;&gt; I was wondering about make clean. &nbsp;Doesn&#39;t that clean up stuff that<br>
&gt; vtk<br>
&gt;&gt; may have scattered thru my disk, libraries etc? &nbsp;I am definitely<br>
&gt; blowing<br>
&gt;&gt; away VTK-build.<br>
&gt;&gt;<br>
&gt;&gt; -Bruce<br>
&gt;&gt;<br>
&gt;&gt; -----Original Message-----<br>
&gt;&gt; From: Mike Jackson [mailto:<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>]<br>
&gt;&gt; Sent: Friday, September 05, 2008 11:04 AM<br>
&gt;&gt; To: Labitt, Bruce<br>
&gt;&gt; Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;&gt; Subject: Re: [vtkusers] Getting Started Questions<br>
&gt;&gt;<br>
&gt;&gt; The surest way to get a complete rebuild is to just blow away<br>
&gt;&gt; everything in the VTK-Build directory. Rerun ccmake setting all your<br>
&gt;&gt; custom selections that you want. The rebuild.<br>
&gt;&gt;<br>
&gt;&gt; You can try running cmake ../VTK from the VTK-Build directory and see<br>
&gt;&gt; if the newer ATI stuff is picked up. I am not sure how to tell that<br>
&gt;&gt; though. I would just blow away and start over. The build is<br>
&gt;&gt; relatively<br>
&gt;&gt; quick on a newer machine. 15 Minutes or so.<br>
&gt;&gt;<br>
&gt;&gt; ---<br>
&gt;&gt; Mike Jackson - Principal Software Engineer<br>
&gt;&gt; <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sep 5, 2008, at 10:56 AM, Labitt, Bruce wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I originally used ccmake and set &quot;t&quot; for the advanced view. &nbsp;I did<br>
&gt; not<br>
&gt;&gt;&gt; use RPATH originally. &nbsp;In ccmake I set enabling python.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; BUILD_TESTING is on. &nbsp;I just did a make test and found that most<br>
&gt; tests<br>
&gt;&gt;&gt; failed. &nbsp;Umm, 916 out of 952 tests failed!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I just realized that I built vtk BEFORE I installed the ATI3D<br>
&gt; drivers.<br>
&gt;&gt;&gt; That means I did not have &quot;opengl&quot; stuff installed. &nbsp;So, do I need<br>
&gt;&gt;&gt; to<br>
&gt;&gt;&gt; rebuild vtk? &nbsp;I presume yes.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If I need to rebuild, then what do I do?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; make clean ? to uninstall everything<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Then delete the contents of /VTK-build<br>
&gt;&gt;&gt; and execute<br>
&gt;&gt;&gt; [VTK-build]$ env CC=/usr/bin/gcc CXX=/usr/bin/g++ ccmake ../VTK<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This is because I want to do a out-of-source build.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Does that sound right? &nbsp;/VTK has the original files, and /VTKData<br>
&gt;&gt;&gt; the<br>
&gt;&gt;&gt; data files.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Directory Structure<br>
&gt;&gt;&gt; /home/me<br>
&gt;&gt;&gt; /home/me/VTK &nbsp; ==&gt; unmolested extracted files<br>
&gt;&gt;&gt; /home/me/VTK-build ==&gt; where I want stuff to be built<br>
&gt;&gt;&gt; /home/me/VTKData &nbsp; &nbsp; &nbsp; ==&gt; unmolested data files<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt; -Bruce<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -----Original Message-----<br>
&gt;&gt;&gt; From: Mike Jackson [mailto:<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>]<br>
&gt;&gt;&gt; Sent: Friday, September 05, 2008 10:02 AM<br>
&gt;&gt;&gt; To: Labitt, Bruce<br>
&gt;&gt;&gt; Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;&gt;&gt; Subject: Re: [vtkusers] Getting Started Questions<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Couple ideas, but they may be way off for Linux.<br>
&gt;&gt;&gt; &nbsp;First, use &quot;ccmake&quot; to run the &quot;gui&quot; version of cmake. After that<br>
&gt;&gt;&gt; launches press the &quot;t&quot; key to get the advanced view. Scroll down the<br>
&gt;&gt;&gt; list and look for VTK_USE_RPATH (I think that is it) and turn that<br>
&gt; ON.<br>
&gt;&gt;&gt; This allows running VTK apps from the build directory but will stop<br>
&gt;&gt;&gt; any type of actual &quot;install&quot; of vtk. This may solve the library<br>
&gt;&gt;&gt; loading issues.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; Still in ccmake, there is an option to &quot;BUILD_TESTING&quot;. Turn this<br>
&gt;&gt;&gt; on or make sure it was ON. Type &quot;c&quot; to configure again. Type &quot;g&quot; to<br>
&gt;&gt;&gt; generate new makefiles and exit ccmake.<br>
&gt;&gt;&gt; &nbsp;Recompile vtk. If you have a multi-core/multi-processor system use<br>
&gt;&gt;&gt; &quot;make -j2&quot; to help speed up the recompile.<br>
&gt;&gt;&gt; &nbsp;After the compilation reaches 100% you can do a &quot;make test&quot; which<br>
&gt;&gt;&gt; will run all the tests and report any errors. Simply watch the<br>
&gt;&gt;&gt; output<br>
&gt;&gt;&gt; for any tests that fail. If they all pass then you have a good<br>
&gt;&gt;&gt; build.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hope some of that helps<br>
&gt;&gt;&gt; -----<br>
&gt;&gt;&gt; Mike<br>
&gt;&gt;&gt; <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sep 5, 2008, at 9:54 AM, Labitt, Bruce wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks Mike.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Believe me, I&#39;m far from a guru myself - that is why I am &quot;here&quot;<br>
&gt;&gt;&gt;&gt; asking<br>
&gt;&gt;&gt;&gt; questions. &nbsp;Instead of using LD_LIBRARY_PATH, shouldn&#39;t I just use<br>
&gt;&gt;&gt;&gt; ldconfig for the new directory of libraries? &nbsp;I would have thought<br>
&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt; build process would have done this already..<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Yes, compile did reach 100%. &nbsp;Is there a log file showing that<br>
&gt;&gt;&gt;&gt; everything passes?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -----Original Message-----<br>
&gt;&gt;&gt;&gt; From: Mike Jackson [mailto:<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>]<br>
&gt;&gt;&gt;&gt; Sent: Friday, September 05, 2008 9:18 AM<br>
&gt;&gt;&gt;&gt; To: Labitt, Bruce<br>
&gt;&gt;&gt;&gt; Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt;&gt;&gt;&gt; Subject: Re: [vtkusers] Getting Started Questions<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am not a linux guru but it looks like your LD_LIBRARAY_PATH may<br>
&gt;&gt;&gt;&gt; need<br>
&gt;&gt;&gt;&gt; to include the VTK-build/bin directory.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Also, when you compiled vtk, did the compile reach 100% ?? That<br>
&gt; would<br>
&gt;&gt;&gt;&gt; indicate a successful compile.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Mike<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Sep 5, 2008, at 8:57 AM, Labitt, Bruce wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m trying to get started with vtk. &nbsp;I have downloaded vtk5.2. &nbsp;I<br>
&gt;&gt;&gt;&gt;&gt; used<br>
&gt;&gt;&gt;&gt;&gt; cmake 2.6 to build vtk on a RHEL5.2 clone. &nbsp;How can I tell if the<br>
&gt;&gt;&gt;&gt;&gt; build<br>
&gt;&gt;&gt;&gt;&gt; is really successful? &nbsp;Can I examine an output file? &nbsp;Is there a<br>
&gt;&gt;&gt;&gt;&gt; test<br>
&gt;&gt;&gt;&gt;&gt; suite I can run?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have built vtk out of place into a VTK-build directory. &nbsp;Some of<br>
&gt;&gt;&gt;&gt;&gt; the<br>
&gt;&gt;&gt;&gt;&gt; files in the VTK-build/bin directory do not run, for instance,<br>
&gt;&gt;&gt;&gt;&gt; when I<br>
&gt;&gt;&gt;&gt;&gt; run<br>
&gt;&gt;&gt;&gt;&gt; [ bin]$./GraphicsCxxTests &nbsp; &nbsp; &nbsp; &nbsp; the result is<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; ./GraphicsCxxTests: error while loading shared libraries:<br>
&gt;&gt;&gt;&gt;&gt; libvtkRendering.so.5.2: cannot open shared object file: No such<br>
&gt; file<br>
&gt;&gt;&gt;&gt;&gt; or<br>
&gt;&gt;&gt;&gt;&gt; directory<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; libvtkRendering.so.5.2 is in the current directory bin<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Other files do run, like Medical1, and Cone6.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I attempted to compile in python support. &nbsp;I cannot tell if this<br>
&gt; was<br>
&gt;&gt;&gt;&gt;&gt; done properly however. &nbsp;If I type<br>
&gt;&gt;&gt;&gt;&gt; [ VTK-build/bin] $ vtkpython<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I get<br>
&gt;&gt;&gt;&gt;&gt; vtk version 5.0.4, vtk source &nbsp;rather than the expected 5.2. &nbsp;Is<br>
&gt;&gt;&gt;&gt;&gt; this<br>
&gt;&gt;&gt;&gt;&gt; correct?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; If I type [ VTK-build/bin]$ ./vtkpython &nbsp;I get<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; ./vtkpython: error while loading shared libraries: libvtkViews.so.<br>
&gt;&gt;&gt;&gt;&gt; 5.2:<br>
&gt;&gt;&gt;&gt;&gt; cannot open shared object file: No such file or directory.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; There is a libvtkViews.so.5.2 in the directory...<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Any tips or help would be greatly appreciated.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;&gt;&gt; Bruce<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div>