[Insight-users] CMake 2.6 + CableSwig + InsightApplications error
Oleksandr Dzyubak
adzyubak at gmail.com
Thu Jun 5 12:00:59 EDT 2008
Dear ITKers,
Somehow I managed to install ITK CVS using CMake 2.6.
Afterwards I want to build InsightApplications CVS.
But I am getting errors as below.
***********Begin Errors ********
CMake Error at ConnectVTKITK/CMakeLists.txt:10 (FIND_PACKAGE):
find_package cannot find package CableSwig because CableSwig_DIR is
set to
"/lib/InsightToolkit/CSwig/lib/CableSwig" which is not a directory
containing a package configuration file (or it is not for the requested
version). Please set the cache entry CableSwig_DIR to the correct
directory, or delete it to ask CMake to search.
***************End Errors *****
That is true that in my case the location of CableSwig is different.
/usr/local/lib/InsightToolkit/CSwig/lib/CableSwig/
Following the advice from the error message, I tried to modified the
variable "CableSwig_DIR"
in the cache CMake file. However I could find such a variable there.
Neither did I in the InsightApplications/CMakeLists.txt.
In a ConnectVTKITK/CMakeLists.txt:10 I found
# Load the CableSwig settings used by ITK.
SET(CableSwig_DIR ${ITK_CableSwig_DIR})
FIND_PACKAGE(CableSwig)
But I could find "ITK_CableSwig_DIR" in CMakeLists.txt files or Cmake
modules.
I have couple questions.
1) Why CableSwing cannot be found since I have built CableSwig "Inside
ITK" so
CableSwig should be built as part of ITK?
2) In my case the script looks for
"/lib/InsightToolkit/CSwig/lib/CableSwig" which,
of course, does not exist so I have to reassign the variable.
What is the best way to solve that?
3) Is there any "general" fix to solve that problem so any time when I want
to build InsightApplications, I do not have to search and change the
configuration files?
Thanks,
Alex
More information about the Insight-users
mailing list