<br>Thanks for your reply ... would you mind telling me how to set simpleitk dir variable in my cmake file... I am using qtcreator with plain cmake list ... I already set up cmake module path variable with this directory that you mentioned but with no success .<br>
<br>.I am now rebuilding simple itk with the default setting where there is no shared libraries <br><br>Another question ... the cmake install prefix path is set by default to my build directory ... should I change this to something related to usr/local directory ... also I have already built and installed the latest version of itk .. does this affect or change anything in simpleitk building ...<br>
<br>Thanks and I hope you can help me figure out how to solve this .. I have been struggling with it all day long with no hope<br><br>Thanks<br>Shireen<br>On Saturday, March 9, 2013, Bradley Lowekamp <<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
> Hello,<br>><br>> The quick answer is in your project's configuration set the CMake variable "SimpleITK_DIR" to "/PathToYouSimpleITKSuperbuid/lib/cmake/SimpleITK-0.6". This path should contain the SimpleITKConfig.cmake file and a couple other SimpleITK files. Alternatively, You should also be able to point this variable to the actual SimpleITK sub-build which would be "/PathToYouSimpleITKSuperbuid/SimpleITK-build".<br>
><br>> Regarding the installation. The way Superbuilds install is a little different than expected. In short it happens during the Superbuild process. If you configure the "CMAKE_INSTALL_PREFIX" to the path you want ITK and SimpleITK installed, they will be installed during the superbuild.<br>
><br>> The install only installs the C++ headers and libraries and not any of the Wrapped languages. Most of the wrapped languages have their own way to do things and configure modules, so that is not done by default.<br>
><br>> Lastly, because you said you needed to set the LD_LIBRARY_PATH it sounds like you choose to use shared libraries? This adds a bit of complexity to things, so unless there is a good reason I would not recommend to it get started with.<br>
><br>> Brad<br>><br>><br>><br>> On Mar 9, 2013, at 5:01 PM, Shireen Elhabian <<a href="mailto:shireen.youssef@gmail.com">shireen.youssef@gmail.com</a>> wrote:<br>><br>>> Hi,<br>>><br>
>> I have built SimpleITK using SuperBuild as recommended. There is not<br>>> make install rule for SimpleITK and I also updated LD_LIBRARY_PATH.<br>>><br>>> Now I am trying to use it in my c++ projects (using cmake), but I am<br>
>> getting the following error, please tell me what I am missing here please<br>>><br>>> CMake Error at CMakeLists.txt:13 (FIND_PACKAGE):<br>>> By not providing "FindSimpleITK.cmake" in CMAKE_MODULE_PATH this project<br>
>> has asked CMake to find a package configuration file provided by<br>>> "SimpleITK", but CMake did not find one.<br>>><br>>> Could not find a package configuration file provided by "SimpleITK" with<br>
>> any of the following names:<br>>><br>>> SimpleITKConfig.cmake<br>>> simpleitk-config.cmake<br>>><br>>> Add the installation prefix of "SimpleITK" to CMAKE_PREFIX_PATH or set<br>
>> "SimpleITK_DIR" to a directory containing one of the above files. If<br>>> "SimpleITK" provides a separate development package or SDK, be sure it has<br>>> been installed.<br>>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>>><br>>> Visit other Kitware open-source projects at<br>>> <a href="http://www.kitware.com/opensource/opensource.html">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">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">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">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br><br>-- <br>Shireen Y. Elhabian, PhD<br>Information Technology Dept.,<br>Faculty of Computers and Information,<br>
Cairo University<br>