[Insight-users] compiling error
flair.liu at gmail.com
Mon Aug 27 14:24:25 EDT 2007
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.
member function 'void itk::Array<TValueType>::Fill(const TValueType&) [with
TValueType = float]':
instantiated from 'void
TOutputImage = itk::Image<short int, 3u>]'
/home/jliu1/research/dataprocessing/dgvFileIO.cpp:536: instantiated from
error: no matching function for call to 'fill(const float&)'
note: candidates are: void std::fill(unsigned char*, unsigned char*, const
note: void std::fill(signed char*, signed char*, const
note: void std::fill(char*, char*, const char&)
gmake: *** [CMakeFiles/DGV.dir/dgvFileIO.o] Error 1
gmake: *** [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,
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Insight-users