[Insight-users] compiling error

liu jianfei flair.liu at gmail.com
Mon Aug 27 14:24:25 EDT 2007


Hello Luis

   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.

================================================================================================
/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]':
/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>]'
/home/jliu1/research/dataprocessing/dgvFileIO.cpp:536:   instantiated from
here
/graphics/apps/graphics/itk/InsightToolkit-2.8.1/Code/Common/itkArray.h:81:
error: no matching function for call to 'fill(const float&)'
/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&)
/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&)
/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&)
gmake[2]: *** [CMakeFiles/DGV.dir/dgvFileIO.o] Error 1
gmake[1]: *** [CMakeFiles/DGV.dir/all] Error 2
gmake: *** [all] Error 2
==================================================================================================

Could you tell me how to handle this problem? Thank you very much.


On 8/27/07, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Liu,
>
> What version of CMake are you using now ?
>
> What do you get when you type:
>
>
>       which cmake
>
>       cmake --version
>
>
> BTW:  Did you removed the file /usr/X11R6/lib/libX11.so
>        during your system upgrade ?
>
>        Can you please check if the file is there ?
>
>
>   If the file is not there, then you will need to rebulid
>   the ITK, VTK, FLTK libraries from scratch, so that CMake
>   doesn't expect this file to be in your system.
>
>
>
> Please let us know,
>
>
>     Thanks
>
>
>        Luis
>
>
> -----------------
> liu jianfei wrote:
> > Dear all
> >
> >    Initially, all my programs integrating VTK, ITK, and FLTK. etc
> > worked very well on Red hat linux OS. Unfortunately, I met a cmake
> > problem after upgraded the OS. Each time  using the CMake to compile
> > the program, I always faced the following error in the last step.
> >
> >
> ==========================================================================================================
> > No rule to make target `/usr/X11R6/lib/libX11.so', needed by
> `Skeleton'.  Stop.
> >
> ==========================================================================================================
> >
> > This lib file is in the /usr/lib now, and I checked it's in the
> > environment variables' list. I also tried to modify it in CCMake or
> > original CMake file. Unfortunately, I couldn't find it. BTW, I could
> > run VTK sample examples based on make file. But as for the Cmake file,
> > it's the same problem. Can anyone tell me how to figure it out? I
> > appreciate your help.
>



-- 
Sincerely
Jianfei Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070827/11a8d618/attachment.html


More information about the Insight-users mailing list