[MINC-users] source compile

George He george.he at yale.edu
Wed Oct 17 10:10:17 EDT 2012


Hi there,

I have been using a few programs from the minc-toolkit on an SGI machine
and my goal is to compile it on Fedora/Centos machines.
I downloaded minc-toolkit source code from
https://github.com/BIC-MNI/minc-toolkit and then I tried to follow the
instructions on that page to compile it (since I'm using Fedora/Centos).

cmake ../minc-toolkit   -- this seemed working.
make stopped at here:

[ 58%] Building CXX object
oobicpl/CMakeFiles/vertstats_math.dir/src/vertstats_math.cc.o
In file included from
/home/jhe/Downloads/minc-toolkit/oobicpl/src/vertstats_math.cc:2:0:
/home/jhe/Downloads/minc-toolkit/oobicpl/src/mniVertstatsMath.h: In
instantiation of ‘T vectorMean(std::vector<T>&) [with T = float]’:
/home/jhe/Downloads/minc-toolkit/oobicpl/src/mniVertstatsMath.h:93:25:
required from ‘std::vector<T> vectorNormalise(std::vector<T>&) [with T =
float]’
/home/jhe/Downloads/minc-toolkit/oobicpl/src/vertstats_math.cc:215:38:
required from here
/home/jhe/Downloads/minc-toolkit/oobicpl/src/mniVertstatsMath.h:58:23:
error: ‘vectorSum’ was not declared in this scope, and no declarations were
found by argument-dependent lookup at the point of instantiation
[-fpermissive]
/home/jhe/Downloads/minc-toolkit/oobicpl/src/mniVertstatsMath.h:65:3: note:
‘template<class T> T vectorSum(std::vector<T>)’ declared here, later in the
translation unit
make[2]: ***
[oobicpl/CMakeFiles/vertstats_math.dir/src/vertstats_math.cc.o] Error 1
make[1]: *** [oobicpl/CMakeFiles/vertstats_math.dir/all] Error 2
make: *** [all] Error 2

But it's OK since I only need a few functions in conglomerate, so I just cd
into conglomerate and did make and make install.
It worked. but then I found I need the program "deform_surface", which was
not compiled by default. Further, I found it was declared but not defined
anywhere in the source code I have.

My question is: where can I get the source code that defines
deform_surface? If it was replace by another program, what is it? and how
do I use that program to achieve what deform_surface was doing?
It would be even better if you could help to compile the whole package.

Thanks for the help.
George


More information about the MINC-users mailing list