<div dir="ltr">Hi,<div><br></div><div>During uninstalling I tried sudo make uninstall. However at that time it did not work out and gave the error as "there is no target `uninstall` to make". I am looking into your other points. Thanks a lot for your help.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 14, 2014 at 8:42 PM, Brian Helba <span dir="ltr"><<a href="mailto:brian.helba@kitware.com" target="_blank">brian.helba@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Ujjwal,<br></div><div><br>To be clear, when you say that you "installed" ITK / VTK, I'm assuming that you mean that after running "make", you ran "make install" (or more probably "sudo make install").<br>
<br></div>If this is the case, then the installation copied the built ITK/VTK libraries, header files, CMake configuration, etc. to standard locations on your system. Typically, you can run "[sudo] make uninstall" from your build directory to then delete these files, but since you already deleted the build directory, you'll have to remove them manually. I don't have the full list of install paths in front of me at the moment, but if you can't find the files yourself, feel free to make a follow-up post (including what Linux distribution you're using), and I or someone else will try and post them for you. Assuming that ITK / VTK follow the FHS [1], "/usr/local" is probably a good place to start looking.<br>
<br>This is the reason why your new programs are still pointing to the old version of ITK: it is still installed and is being located before the new version. By requiring version 4.5, you are forcing CMake to continue the search even after it finds 4.4.<br>
<br>--<br><br></div>As for OpenCV, if you don't need to use it for any of your programs, I would recommend just configuring and building ITK with Module_ITKOpenCVBridge disabled.<br><br>--<br><br></div>Finally, note that installing ITK / VTK is not really necessary most of the time. You can simply build ITK / VTK somewhere in your home directory, and then manually add the "ITK_DIR" or "VTK_DIR" CMake configuration variable to any of your own projects that have the "find_package(ITK ...)" / "find_package(VTK ...)" line in their CMakeLists.txt. Set the value of "ITK_DIR" / "VTK_DIR" to be the path to the directory of your ITK / VTK build.<br>
<br></div>Despite having to manually add the extra CMake variable when first configuring a new project (although even this can be automated with environment variables), this is sometimes more convenient overall, as you can rebuild ITK / VTK with new options any time, without having to reinstall it (which requires root privledges) and there is no uninstall step to worry about if you no longer need ITK / VTK or want to make a fresh build.<br>
<br>[1] <a href="http://www.pathname.com/fhs/" target="_blank">http://www.pathname.com/fhs/</a><br><br></div>Hope this helps,<br></div>Brian<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On Fri, Feb 14, 2014 at 9:22 AM, UJJWAL aryan <span dir="ltr"><<a href="mailto:meetukme@gmail.com" target="_blank">meetukme@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>
I installed VTK-6.1.0 and ITK-4.5 on my system (Ubuntu 13.04) . Before that, ITK-4.4 and VTK-5.10 were installed on my system.<br>
</div>
In order to remove them, I simply removed the build folders from which I had run cmake during their installation (this method of removal was suggested to me in the mailing list a long time back).<br><br></div>After I installed ITK-4.5 and VTK-6.1.0, I faced the following issues :<br>
<br></div> When trying to compile a trivial ITK test program, it failed to link because <br></div> find_package(ITK REQUIRED) was still pointing to UseITK.cmake file correspondin g to ITK-4.4 and not ITK-4.5. Finally in order to solve it, I wrote find_package(ITK 4.5 REQUIRED) <br>
</div>My first question is :<br></div> 1. Why did it continue pointing to ITK-4.4 ? What is the correct way to remove previous versions of libraries so that all their traces are gone and there are no such conflicting links ?<br>
<br></div>2. Even after solving this problem, it fails to link because it cannot find any opencv libraries. I compiled ITK with support for ITKOPencvBridge. However in the test code, I have not used anything even remotely concerned with OpenCV. Even in my CMakeLists.txt file, I have not called Opencv at all. Then why is it trying to link to Opencv ? <br>
</div>Why is it not able to find those libraries when they are in usr/local/lib/opencv and /usr/local/lib/opencv2 ? About this, on further probing I found that opencv.pc file is present in pkg-config folder which describes the package opencv perfectly.<br>
</div>Running Opencv test programs showed that OpenCv is installed properly.<br><br></div>3. How do I detect any traces of old and unused and unnecessary library files left in my system and remove them without disturbing the rest of the system ?<br>
<br><br><div><div><div><div>It might be that some of my questions are too basic or trivial. But I am not an expert in Linux and any help and patient support would be deeply appreciated<span><font color="#888888"><br clear="all">
</font></span></div><span><font color="#888888"><div><div><div>
<div><div><div><div><div><div><div><br>-- <br>Ujjwal<br><br>
</div></div></div></div></div></div></div></div></div></div></font></span></div></div></div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Brian Helba<br>Medical Imaging<br>Kitware, Inc.<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ujjwal<div>IIIT Hyderabad </div><div>Mob - 8142265628</div><div><a href="mailto:ujjwal@research.iiit.ac.in" target="_blank">ujjwal@research.iiit.ac.in</a><br><br>
<br></div>
</div>