[vtkusers] Problem compiling VTK4.2.2
Tore Aurstad
toreaur at stud.ntnu.no
Thu Feb 10 15:38:02 EST 2005
I always get an error now when compiling in the IO subdirectory. More
specifically when compiling vtkBMPReader, I haven't done any changes but
use the official tar.gz file from the website.
First I download the file into /usr/local/share
Then I run cmake -i
And then make:
I have tried also gmake -j which gets a bit further, but that parallell
compilation method is too much for my P4 pc(!). I have also tried make -
j
make install does not work since the previous step faults
I have also tried to force the make by: make -i -k
That does not help either!
I used to be able to compile on my Fedora Core 2, but not Fedora Core 3.
I'm going to do a full update now (10GB), but have no clue if that will
help. I have tried setting the compiler both to g++ c++ or gcc with the
help of cmake -i..
Here is the output where all fails (I need to also be able to run VTK in
Tcl and Python, to run Scicraft:
/usr/local/share/VTK/Graphics: building default_target
/usr/local/share/VTK/IO: building default_target
Building object file vtkBMPReader.o...
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
double]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:545: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:545: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
float]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:548: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:548: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = long
unsigned int]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:551: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:551: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:554: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = int]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:560: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:560: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
unsigned char]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:569: instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate
2: /usr/local/share/VTK/IO/vtkBMPReader.cxx:572: instantiated from
here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
make[3]: *** [vtkBMPReader.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_IO] Error 2
make: *** [default_target] Error 2
I guess there are some setup problems, please help out.
To run Scicraft I need to compile btw:
Python
PyQt
PyQwt
VTK
Octave
R
RPy
Scicraft
I have installed the prerequisites except PyQwt and VTK..
Thanks for help,
Tore Aurstad
More information about the vtkusers
mailing list