<br>Hi Shaoping,<br><br>Again:<br><br>        Do not configure individual directories.<br><br><br>Please configure InsightApplications from<br>the Top directory <br><br>and <br><br>       BUILD the individual subdirectories<br>
       that you are interested on.<br><br><br>This means that you will open the <br>InsightApplications.sln file inside Visual Studio,<br>then look for the project that you want to build,<br>right clidk on it , and select &quot;Build&quot;.<br>
     <br><br>     Regards,<br><br><br>             Luis<br><br><br>-------------------------------------------------------<br><div class="gmail_quote">2010/6/20 shaoping sun <span dir="ltr">&lt;<a href="mailto:sunshaoping_928@163.com">sunshaoping_928@163.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><p>Hi Luis:</p>
<p> First of all,thank you for your help. I try it with your suggestion. I configure InsightApplications with CMake from its top directory.there are several previous errors. Then, I build two directories separately.I try configure the directory of  Volview Plugins with cmake and compile it with vs2005 separately,there is no error.However, when I configure the directory of  ImageViewer with cmake separately,there is a error. The error information is as follow:</p>

<p><span style="color: rgb(255, 0, 0);">CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">Missing variable is:</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">FLTK_FLUID_EXECUTABLE</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">CMake Error at CMakeLists.txt:35 (ITK_DISABLE_FLTK_GENERATED_WARNINGS):</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">Unknown CMake command &quot;ITK_DISABLE_FLTK_GENERATED_WARNINGS&quot;.</span></p>
<p style="margin: 0px; color: rgb(255, 0, 0); text-indent: 0px;"></p>
<p style="margin: 0px; color: rgb(255, 0, 0); text-indent: 0px;"></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(255, 0, 0);">FLTK_WRAP_UI was called with a target that was never created: ImageViewer. The problem was found while processing the source directory: D:/ITK/InsightApplications-3.16.0/ImageViewer. This FLTK_WRAP_UI call will be ignored.</span></p>

<p style="margin: 0px; text-indent: 0px;">Configuring incomplete, errors occurred!</p>
<p>the information of CMakeLists.txt of  ImageViewer  is :</p>
<p>  cmake_minimum_required(VERSION 2.6)<br>PROJECT(ImageViewer)</p><div><div></div><div class="h5">
<p>IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</p>
<p>  FIND_PACKAGE(ITK)<br>  IF(ITK_FOUND)<br>    INCLUDE(${ITK_USE_FILE})<br>  ELSE(ITK_FOUND)<br>    MESSAGE(FATAL_ERROR<br>            &quot;Cannot build InsightApplications without ITK.  Please set ITK_DIR.&quot;)<br>
  ENDIF(ITK_FOUND)</p>
<p>  FIND_PACKAGE(FLTK)<br>  IF(FLTK_FOUND)<br>    INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<br>  ENDIF(FLTK_FOUND)</p>
<p>ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</p>
<p>INCLUDE_DIRECTORIES (<br>  ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<br>)</p>
<p>SET(ImageViewer_GUI_SRCS<br>  ImageViewerGUI.fl<br>  )</p>
<p>FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )</p>
<p>SET ( ImageViewer_SRCS<br>  ImageViewer.cxx<br>  ${ImageViewer_FLTK_UI_SRCS}<br>  )<br>ITK_DISABLE_FLTK_GENERATED_WARNINGS(&quot;${ImageViewer_SRCS}&quot;)</p>
<p>ADD_GUI_EXECUTABLE( ImageViewer &quot;${ImageViewer_SRCS}&quot; )<br>TARGET_LINK_LIBRARIES (ImageViewer<br>  ITKBasicFilters<br>  ITKIO<br>  ITKFltkImageViewer<br>)<br></p>
</div></div><p>what is wrong? I hope you help me .thank you very much.</p>
<p>         regards</p>
<p>                          shaoping sun</p><font color="#888888"><br><br><span title="neteasefooter"></span></font></blockquote></div><br>