Hello Luis<br><br>&nbsp;&nbsp; Thanks for your reply. I think I figure out the previous error by creating /usr/X11R6/lib/libX11.so. And I also checked my cmake file, which version is&nbsp; 2.4-patch 6. Unfortunately, some of my programs worked fine, but the other got the following error. 
<br><br>================================================================================================<br>/graphics/apps/graphics/itk/InsightToolkit-2.8.1/Code/Common/itkArray.h: In member function 'void itk::Array&lt;TValueType&gt;::Fill(const TValueType&amp;) [with TValueType = float]':
<br>/graphics/apps/graphics/itk/InsightToolkit-2.8.1/Code/IO/itkImageSeriesReader.txx:77:&nbsp;&nbsp; instantiated from 'void itk::ImageSeriesReader&lt;TOutputImage&gt;::GenerateOutputInformation() [with TOutputImage = itk::Image&lt;short int, 3u&gt;]'
<br>/home/jliu1/research/dataprocessing/dgvFileIO.cpp:536:&nbsp;&nbsp; instantiated from here<br>/graphics/apps/graphics/itk/InsightToolkit-2.8.1/Code/Common/itkArray.h:81: error: no matching function for call to 'fill(const float&amp;)'
<br>/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:573: note: candidates are: void std::fill(unsigned char*, unsigned char*, const unsigned char&amp;)<br>/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:581: note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void std::fill(signed char*, signed char*, const signed char&amp;)
<br>/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:589: note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void std::fill(char*, char*, const char&amp;)<br>gmake[2]: *** [CMakeFiles/DGV.dir/dgvFileIO.o] Error 1
<br>gmake[1]: *** [CMakeFiles/DGV.dir/all] Error 2<br>gmake: *** [all] Error 2<br>==================================================================================================<br><br>Could you tell me how to handle this problem? Thank you very much. 
<br><br><br><div><span class="gmail_quote">On 8/27/07, <b class="gmail_sendername">Luis Ibanez</b> &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Liu,<br><br>What version of CMake are you using now ?<br><br>What do you get when you type:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;which cmake<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmake --version<br><br><br>BTW:&nbsp;&nbsp;Did you removed the file /usr/X11R6/lib/libX11.so<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; during your system upgrade ?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can you please check if the file is there ?<br><br><br>&nbsp;&nbsp;If the file is not there, then you will need to rebulid<br>&nbsp;&nbsp;the ITK, VTK, FLTK libraries from scratch, so that CMake
<br>&nbsp;&nbsp;doesn&#39;t expect this file to be in your system.<br><br><br><br>Please let us know,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;Thanks<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br>-----------------<br>liu jianfei wrote:<br>&gt; Dear all<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Initially, all my programs integrating VTK, ITK, and FLTK. etc
<br>&gt; worked very well on Red hat linux OS. Unfortunately, I met a cmake<br>&gt; problem after upgraded the OS. Each time&nbsp;&nbsp;using the CMake to compile<br>&gt; the program, I always faced the following error in the last step.
<br>&gt;<br>&gt; ==========================================================================================================<br>&gt; No rule to make target `/usr/X11R6/lib/libX11.so&#39;, needed by `Skeleton&#39;.&nbsp;&nbsp;Stop.<br>
&gt; ==========================================================================================================<br>&gt;<br>&gt; This lib file is in the /usr/lib now, and I checked it&#39;s in the<br>&gt; environment variables&#39; list. I also tried to modify it in CCMake or
<br>&gt; original CMake file. Unfortunately, I couldn&#39;t find it. BTW, I could<br>&gt; run VTK sample examples based on make file. But as for the Cmake file,<br>&gt; it&#39;s the same problem. Can anyone tell me how to figure it out? I
<br>&gt; appreciate your help.<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely<br>Jianfei Liu