我正在尝试按照http://cs.uccs.edu/ 中给出的说明编译 http://cs.uccs.edu/~gsc/pub/master/kchandra/src/ 中给出的项目“volumemorph ” ~gsc/pub/master/kchandra/src/Read_Me.txt
VTK 安装是按照 VTK wiki for linux 系统的说明完成的。
在编译 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 用户。