<div dir="ltr">It does, but it does not blow away any CMake cached variables from CMakeCache.txt, which is where the OpenGL libs and header locations are stored.<br><br><div><br><div class="gmail_quote">On Fri, Sep 5, 2008 at 11:11 AM, 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 was wondering about make clean. &nbsp;Doesn&#39;t that clean up stuff that vtk<br>
may have scattered thru my disk, libraries etc? &nbsp;I am definitely blowing<br>
away VTK-build.<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 11:04 AM<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>
The surest way to get a complete rebuild is to just blow away<br>
everything in the VTK-Build directory. Rerun ccmake setting all your<br>
custom selections that you want. The rebuild.<br>
<br>
You can try running cmake ../VTK from the VTK-Build directory and see<br>
if the newer ATI stuff is picked up. I am not sure how to tell that<br>
though. I would just blow away and start over. The build is relatively<br>
quick on a newer machine. 15 Minutes or so.<br>
<br>
---<br>
Mike Jackson - Principal Software Engineer<br>
<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
<br>
<br>
On Sep 5, 2008, at 10:56 AM, Labitt, Bruce wrote:<br>
<br>
&gt; I originally used ccmake and set &quot;t&quot; for the advanced view. &nbsp;I did not<br>
&gt; use RPATH originally. &nbsp;In ccmake I set enabling python.<br>
&gt;<br>
&gt; BUILD_TESTING is on. &nbsp;I just did a make test and found that most tests<br>
&gt; failed. &nbsp;Umm, 916 out of 952 tests failed!<br>
&gt;<br>
&gt; I just realized that I built vtk BEFORE I installed the ATI3D drivers.<br>
&gt; That means I did not have &quot;opengl&quot; stuff installed. &nbsp;So, do I need to<br>
&gt; rebuild vtk? &nbsp;I presume yes.<br>
&gt;<br>
&gt; If I need to rebuild, then what do I do?<br>
&gt;<br>
&gt; make clean ? to uninstall everything<br>
&gt;<br>
&gt; Then delete the contents of /VTK-build<br>
&gt; and execute<br>
&gt; [VTK-build]$ env CC=/usr/bin/gcc CXX=/usr/bin/g++ ccmake ../VTK<br>
&gt;<br>
&gt; This is because I want to do a out-of-source build.<br>
&gt;<br>
&gt; Does that sound right? &nbsp;/VTK has the original files, and /VTKData the<br>
&gt; data files.<br>
&gt;<br>
&gt; Directory Structure<br>
&gt; /home/me<br>
&gt; /home/me/VTK &nbsp; ==&gt; unmolested extracted files<br>
&gt; /home/me/VTK-build ==&gt; where I want stuff to be built<br>
&gt; /home/me/VTKData &nbsp; &nbsp; &nbsp; ==&gt; unmolested data files<br>
&gt;<br>
&gt; Thanks<br>
&gt; -Bruce<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Mike Jackson [mailto:<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>]<br>
&gt; Sent: Friday, September 05, 2008 10:02 AM<br>
&gt; To: Labitt, Bruce<br>
&gt; Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
&gt; Subject: Re: [vtkusers] Getting Started Questions<br>
&gt;<br>
&gt; Couple ideas, but they may be way off for Linux.<br>
&gt; &nbsp; First, use &quot;ccmake&quot; to run the &quot;gui&quot; version of cmake. After that<br>
&gt; launches press the &quot;t&quot; key to get the advanced view. Scroll down the<br>
&gt; list and look for VTK_USE_RPATH (I think that is it) and turn that ON.<br>
&gt; This allows running VTK apps from the build directory but will stop<br>
&gt; any type of actual &quot;install&quot; of vtk. This may solve the library<br>
&gt; loading issues.<br>
&gt;<br>
&gt; &nbsp; &nbsp;Still in ccmake, there is an option to &quot;BUILD_TESTING&quot;. Turn this<br>
&gt; on or make sure it was ON. Type &quot;c&quot; to configure again. Type &quot;g&quot; to<br>
&gt; generate new makefiles and exit ccmake.<br>
&gt; &nbsp; Recompile vtk. If you have a multi-core/multi-processor system use<br>
&gt; &quot;make -j2&quot; to help speed up the recompile.<br>
&gt; &nbsp; After the compilation reaches 100% you can do a &quot;make test&quot; which<br>
&gt; will run all the tests and report any errors. Simply watch the output<br>
&gt; for any tests that fail. If they all pass then you have a good build.<br>
&gt;<br>
&gt; Hope some of that helps<br>
&gt; -----<br>
&gt; Mike<br>
&gt; <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
&gt;<br>
&gt; On Sep 5, 2008, at 9:54 AM, Labitt, Bruce wrote:<br>
&gt;<br>
&gt;&gt; Thanks Mike.<br>
&gt;&gt;<br>
&gt;&gt; Believe me, I&#39;m far from a guru myself - that is why I am &quot;here&quot;<br>
&gt;&gt; asking<br>
&gt;&gt; questions. &nbsp;Instead of using LD_LIBRARY_PATH, shouldn&#39;t I just use<br>
&gt;&gt; ldconfig for the new directory of libraries? &nbsp;I would have thought<br>
&gt;&gt; the<br>
&gt;&gt; build process would have done this already..<br>
&gt;&gt;<br>
&gt;&gt; Yes, compile did reach 100%. &nbsp;Is there a log file showing that<br>
&gt;&gt; everything passes?<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 9:18 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; I am not a linux guru but it looks like your LD_LIBRARAY_PATH may<br>
&gt;&gt; need<br>
&gt;&gt; to include the VTK-build/bin directory.<br>
&gt;&gt;<br>
&gt;&gt; Also, when you compiled vtk, did the compile reach 100% ?? That would<br>
&gt;&gt; indicate a successful compile.<br>
&gt;&gt;<br>
&gt;&gt; Mike<br>
&gt;&gt;<br>
&gt;&gt; On Sep 5, 2008, at 8:57 AM, Labitt, Bruce wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m trying to get started with vtk. &nbsp;I have downloaded vtk5.2. &nbsp;I<br>
&gt;&gt;&gt; used<br>
&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; build<br>
&gt;&gt;&gt; is really successful? &nbsp;Can I examine an output file? &nbsp;Is there a<br>
&gt;&gt;&gt; test<br>
&gt;&gt;&gt; suite I can run?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have built vtk out of place into a VTK-build directory. &nbsp;Some of<br>
&gt;&gt;&gt; the<br>
&gt;&gt;&gt; files in the VTK-build/bin directory do not run, for instance,<br>
&gt;&gt;&gt; when I<br>
&gt;&gt;&gt; run<br>
&gt;&gt;&gt; [ bin]$./GraphicsCxxTests &nbsp; &nbsp; &nbsp; &nbsp; the result is<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ./GraphicsCxxTests: error while loading shared libraries:<br>
&gt;&gt;&gt; libvtkRendering.so.5.2: cannot open shared object file: No such file<br>
&gt;&gt;&gt; or<br>
&gt;&gt;&gt; directory<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; libvtkRendering.so.5.2 is in the current directory bin<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Other files do run, like Medical1, and Cone6.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I attempted to compile in python support. &nbsp;I cannot tell if this was<br>
&gt;&gt;&gt; done properly however. &nbsp;If I type<br>
&gt;&gt;&gt; [ VTK-build/bin] $ vtkpython<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I get<br>
&gt;&gt;&gt; vtk version 5.0.4, vtk source &nbsp;rather than the expected 5.2. &nbsp;Is<br>
&gt;&gt;&gt; this<br>
&gt;&gt;&gt; correct?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If I type [ VTK-build/bin]$ ./vtkpython &nbsp;I get<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ./vtkpython: error while loading shared libraries: libvtkViews.so.<br>
&gt;&gt;&gt; 5.2:<br>
&gt;&gt;&gt; cannot open shared object file: No such file or directory.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; There is a libvtkViews.so.5.2 in the directory...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any tips or help would be greatly appreciated.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Bruce<br>
&gt;<br>
<br>
<br>
<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>