[vtkusers] problem compile VTK
kitware-vtk at kulnet.kuleuven.ac.be
kitware-vtk at kulnet.kuleuven.ac.be
Mon Oct 21 17:06:03 EDT 2002
--- Forwarded by news2mail for Joeri Verbiest <verbiestj at yahoo.com> ---
Hi,
I have a problem installing VTK.
I do:
env CXX=g++ CC=g++ cmake
I get:
running cd /opt/VTK && /bin/Templates/cconfigure
loading cache ./config.cache
checking for gcc... (cached) g++
checking whether the C compiler (g++ ) works... yes
checking whether the C compiler (g++ ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of void *... (cached) 4
checking size of char... (cached) 1
checking size of short... (cached) 2
checking size of float... (cached) 4
checking size of double... (cached) 8
checking how to run the C preprocessor... (cached) g++ -E
checking for X... (cached) libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) no
checking for gethostbyname in -lnsl... (cached) no
checking for connect... (cached) no
checking for connect in -lsocket... (cached) no
checking for remove... (cached) no
checking for remove in -lposix... (cached) no
checking for shmat... (cached) no
checking for shmat in -lipc... (cached) no
checking for IceConnectionNumber in -lICE... (cached) no
checking whether byte ordering is bigendian... (cached) no
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking system version (for dynamic loading)... Linux-2.4.4-4GB
checking for dlopen in -ldl... (cached) no
checking for dld.h... (cached) no
checking for sys/prctl.h... (cached) yes
checking for pthread.h... (cached) yes
checking for pthread_create in -lpthreads... (cached) no
checking for pthread_create in -lpthread... (cached) no
checking for ar... (cached) /usr/bin/ar
creating ./config.status
creating CCMakeSystemConfig.cmake
running cd /opt/VTK && /bin/Templates/cxxconfigure
loading cache ./config.cache
checking for c++... (cached) g++
checking whether the C++ compiler (g++ ) works... yes
checking whether the C++ compiler (g++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking system version (for dynamic loading)... Linux-2.4.4-4GB
checking for ansi standard C++ stringstream ... yes
checking for ar... (cached) /usr/bin/ar
creating ./config.status
creating CXXCMakeSystemConfig.cmake
cmake: creating : /opt/VTK/Makefile
cmake: creating : /opt/VTK/Wrapping/Makefile
cmake: creating : /opt/VTK/Utilities/Makefile
cmake: creating : /opt/VTK/Utilities/zlib/Makefile
cmake: creating : /opt/VTK/Utilities/png/Makefile
cmake: creating : /opt/VTK/Utilities/jpeg/Makefile
cmake: creating : /opt/VTK/Utilities/Doxygen/Makefile
cmake: creating : /opt/VTK/Common/Makefile
cmake: creating : /opt/VTK/Filtering/Makefile
cmake: creating : /opt/VTK/Imaging/Makefile
cmake: creating : /opt/VTK/Graphics/Makefile
cmake: creating : /opt/VTK/IO/Makefile
cmake: creating : /opt/VTK/Rendering/Makefile
cmake: creating : /opt/VTK/Common/Testing/Makefile
cmake: creating : /opt/VTK/Common/Testing/Cxx/Makefile
cmake: creating : /opt/VTK/Filtering/Testing/Makefile
cmake: creating : /opt/VTK/Graphics/Testing/Makefile
cmake: creating : /opt/VTK/Graphics/Testing/Cxx/Makefile
cmake: creating : /opt/VTK/Imaging/Testing/Makefile
cmake: creating : /opt/VTK/Imaging/Testing/Cxx/Makefile
cmake: creating : /opt/VTK/IO/Testing/Makefile
cmake: creating : /opt/VTK/Rendering/Testing/Makefile
cmake: creating : /opt/VTK/Rendering/Testing/Cxx/Makefile
I think that this is OK (I hope).
Then I do make
I get:
/bin/cmake -S/opt/VTK -O/opt/VTK -H/opt/VTK -B/opt/VTK
cmake.depends is up-to-date
/opt/VTK/Wrapping: building default_target
cmake.depends is up-to-date
/opt/VTK/Utilities: building default_target
cmake.depends is up-to-date
/opt/VTK/Utilities/zlib: building default_target
cmake.depends is up-to-date
g++ -I/opt/VTK/Utilities/zlib -I/opt/VTK/Rendering -I/opt/VTK
-I/opt/VTK/Common -I/opt/VTK/Filtering -I/opt/VTK/Imaging
-I/opt/VTK/Graphics -I/opt/VTK/IO -I/opt/VTK/Utilities/zlib
-I/opt/VTK/Utilities/png -I/opt/VTK/Utilities/jpeg
-I/opt/VTK/Common/Testing/Cxx -c /opt/VTK/Utilities/zlib/adler32.c -o
adler32.o
/opt/VTK/Utilities/zlib/adler32.c:21: `adler' was not declared in this
scope
/opt/VTK/Utilities/zlib/adler32.c:21: `buf' was not declared in this
scope
/opt/VTK/Utilities/zlib/adler32.c:21: `len' was not declared in this
scope
/opt/VTK/Utilities/zlib/adler32.c:22: `uLong adler32' redeclared as
different kind of symbol
/opt/VTK/Utilities/zlib/zlib.h:821: previous declaration of `uLong
adler32(long unsigned int, const Bytef *, unsigned int)'
/opt/VTK/Utilities/zlib/adler32.c:22: initializer list being treated as
compound expression
/opt/VTK/Utilities/zlib/adler32.c:22: syntax error before `adler'
/opt/VTK/Utilities/zlib/adler32.c:25: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:27: `adler' was not declared in this
scope
/opt/VTK/Utilities/zlib/adler32.c:30: parse error before `if'
/opt/VTK/Utilities/zlib/adler32.c:34: syntax error before `-='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: parse error before `{'
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:36: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:37: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:38: syntax error before `-='
/opt/VTK/Utilities/zlib/adler32.c:42: syntax error before `+='
/opt/VTK/Utilities/zlib/adler32.c:44: syntax error before `%='
/opt/VTK/Utilities/zlib/adler32.c:45: syntax error before `%='
make[5]: *** [adler32.o] Error 1
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_zlib] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Utilities] Error 2
make: *** [default_target] Error 2
What is the problem.
Thanks
JV
More information about the vtkusers
mailing list