<br>Hi Shaoping,<br><br>The easy way to go about this, is to configure<br>InsightApplications with CMake from its top <br>directory.<br><br>and then build the subdirectories that<br>you need.<br><br>BTW: Are you trying to build the Volview Plugins ?<br>
or are you trying to build the ImageViewer ?<br><br><br><br>     Regards,<br><br><br>             Luis<br><br><br>------------------------------------------------------------<br><div class="gmail_quote">2010/6/18 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;"><div>Hi,all users:</div>
<div>I have problem with program ImageViewer, appropriate with InsightApplication, and have litle change<br>in code CMakeLists.txt, i have a problem.. the CMakeLists code is :</div>
<div>PROJECT(ImageViewer)</div>
<div>IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</div>
<div>  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)</div>
<div>  FIND_PACKAGE(FLTK)<br>  IF(FLTK_FOUND)<br>    INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<br>  ENDIF(FLTK_FOUND)</div>
<div>ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )</div>
<div>INCLUDE_DIRECTORIES (<br>  ${InsightApplications_SOURCE_DIR}/Auxiliary/FltkImageViewer<br>)</div>
<div>SET(ImageViewer_GUI_SRCS<br>  ImageViewerGUI.fl<br>  )</div>
<div>FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )</div>
<div>SET ( ImageViewer_SRCS<br>  ImageViewer.cxx<br>  ${ImageViewer_FLTK_UI_SRCS}<br>  )<br>ITK_DISABLE_FLTK_GENERATED_WARNINGS(&quot;${ImageViewer_SRCS}&quot;)</div>
<div>ADD_GUI_EXECUTABLE( ImageViewer &quot;${ImageViewer_SRCS}&quot; )<br>TARGET_LINK_LIBRARIES (ImageViewer<br>  ITKBasicFilters<br>  ITKIO<br>  ITKFltkImageViewer<br>)<br>there was not change with ImageViewer.cxx code and ImageViewerGUI.fl code..<br>
<br>after i configure it, it work, and no error..  after i compile it, there is error,<br><br>it say: &quot; LINK : fatal error LNK1104: cannot open file &quot;..\VolviewPlugIns\bin\Debug\ITKFltkImageViewer.lib &quot;<br>
<br>then i search ITKFltkImageViewer.lib, but there was not found.. <br><br>what&#39;s wrong??? what mistake i have??  <br><br>i use CMake-2.8,   ITK-3.18.0,   FLTK-1.1.10,   Visual Studio2005 <br><br>thank you very much.</div>

<div>                                  shaoping sun<br><br></div><br><br><span title="neteasefooter"></span><br>_____________________________________<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.html" target="_blank">http://www.kitware.com/products/protraining.html</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></blockquote></div><br>