Hello Luis<br><br> 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 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<TValueType>::Fill(const TValueType&) [with TValueType = float]':
<br>/graphics/apps/graphics/itk/InsightToolkit-2.8.1/Code/IO/itkImageSeriesReader.txx:77: instantiated from 'void itk::ImageSeriesReader<TOutputImage>::GenerateOutputInformation() [with TOutputImage = itk::Image<short int, 3u>]'
<br>/home/jliu1/research/dataprocessing/dgvFileIO.cpp:536: 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&)'
<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&)<br>/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:581: note: void std::fill(signed char*, signed char*, const signed char&)
<br>/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:589: note: void std::fill(char*, char*, const char&)<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> <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> 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> which cmake<br><br> cmake --version<br><br><br>BTW: Did you removed the file /usr/X11R6/lib/libX11.so<br>
during your system upgrade ?<br><br> Can you please check if the file is there ?<br><br><br> If the file is not there, then you will need to rebulid<br> the ITK, VTK, FLTK libraries from scratch, so that CMake
<br> doesn't expect this file to be in your system.<br><br><br><br>Please let us know,<br><br><br> Thanks<br><br><br> Luis<br><br><br>-----------------<br>liu jianfei wrote:<br>> Dear all<br>><br>> Initially, all my programs integrating VTK, ITK, and FLTK. etc
<br>> worked very well on Red hat linux OS. Unfortunately, I met a cmake<br>> problem after upgraded the OS. Each time using the CMake to compile<br>> the program, I always faced the following error in the last step.
<br>><br>> ==========================================================================================================<br>> No rule to make target `/usr/X11R6/lib/libX11.so', needed by `Skeleton'. Stop.<br>
> ==========================================================================================================<br>><br>> This lib file is in the /usr/lib now, and I checked it's in the<br>> environment variables' list. I also tried to modify it in CCMake or
<br>> original CMake file. Unfortunately, I couldn't find it. BTW, I could<br>> run VTK sample examples based on make file. But as for the Cmake file,<br>> it's the same problem. Can anyone tell me how to figure it out? I
<br>> appreciate your help.<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely<br>Jianfei Liu