http://cs.uccs.edu/~gsc/pub/master/kchandra/src/ にある指示に従って、 http: //cs.uccs.edu/ にあるプロジェクト「volumemorph」をコンパイルしようとしています。 ~gsc/pub/master/kchandra/src/Read_Me.txt
VTK のインストールは、Linux システム用の VTK wiki の指示に従って行いました。
volumemorph プロジェクトのコンパイル時に、次のメッセージが表示されます。
make all-recursive
make[1]: Entering directory `/home/axlia/volumemorph'
Making all in volumemorph
make[2]: Entering directory `/home/axlia/volumemorph/volumemorph'
source='CADisplayEngine.cpp' object='CADisplayEngine.o' libtool=no \
depfile='.deps/CADisplayEngine.Po' tmpdepfile='.deps/CADisplayEngine.TPo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -c -o CADisplayEngine.o `test -f 'CADisplayEngine.cpp' || echo './'`CADisplayEngine.cpp
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from CADisplayEngine.cpp:18:0:
CADisplayEngine.h: In member function ‘float CADisplayEngine::getRenderTimeInSeconds()’:
CADisplayEngine.h:80:79: warning: conversion to ‘float’ from ‘double’ may alter its value [-Wconversion]
CADisplayEngine.cpp: In member function ‘void CADisplayEngine::initialize(int, int)’:
CADisplayEngine.cpp:68:16: error: ‘class vtkVolumeRayCastMapper’ has no member named ‘SetInput’
CADisplayEngine.cpp: In member function ‘void CADisplayEngine::render(CAVolume*)’:
CADisplayEngine.cpp:117:13: error: ‘class vtkJPEGWriter’ has no member named ‘SetInput’
CADisplayEngine.cpp: In member function ‘bool CADisplayEngine::saveImageFile()’:
CADisplayEngine.cpp:196:6: warning: no return statement in function returning non-void [-Wreturn-type]
make[2]: *** [CADisplayEngine.o] Error 1
make[2]: Leaving directory `/home/axlia/volumemorph/volumemorph'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/axlia/volumemorph'
make: *** [all] Error 2
コードが機能するはずですが、コンパイルできず、行き詰まっています。何か助けはありますか? どうすれば直せますか?
PS私はUbuntu 12.10を使用しており、新しいLinuxユーザーです。