[MINC-users] MINC 2.0.13

Alex Zijdenbos alex at bic.mni.mcgill.ca
Tue Sep 18 21:40:08 EDT 2007


OK, well. I'm going through this pretending to be a naive user, which
hope will be instructive.

Specifying --with-minc2 does not appear to do anything. Specifying
--enable-minc2 ends up with:

  configure: error: cannot find required library hdf5

So fine, I need hdf5, I sort of knew that ;)

Note: why would I need to specify --enable-minc2 when  am trying to
build minc2? That seems counterintuitive, to put it mildly. Especially
since it won't build without specifying that option, I would call this
a bug.

Anyways, continuing on, let's hunt for hdf5. On a debian system,
'apt-cache libhdf5' tells me there are 3 different versions (serial,
lam, and mpich). Which one do i choose? Let's choose 'serial' (seems
the least threatening). Still:

  configure: error: cannot find required library hdf5

# ls -al /usr/lib/libhdf5*
lrwxrwxrwx  1 root root      22 Sep 18 21:06
/usr/lib/libhdf5-1.6.2.so.0 -> libhdf5-1.6.2.so.0.0.0
-rw-r--r--  1 root root 1089000 May 21  2004 /usr/lib/libhdf5-1.6.2.so.0.0.0
lrwxrwxrwx  1 root root      26 Sep 18 21:06
/usr/lib/libhdf5_cpp-1.6.2.so.0 ->libhdf5_cpp-1.6.2.so.0.0.0
-rw-r--r--  1 root root  228196 May 21  2004 /usr/lib/libhdf5_cpp-1.6.2.so.0.0.0

OK, so I guess minc just doesn't like this version of hdf5?

Fine. Let's remove the deb package and install from the 1.6.1 package
from packages.bic.mni.mcgill.ca then.

Ah, now it configures and compiles. So minc2 requires hdf5-1.6.1?

My main question is: where can I find instructions on how to build and
install minc2? The README states:

"For building and installation instructions, refer to the files
INSTALL.minc and INSTALL." INSTALL exists but only talks about generic
installation procedures. there is no file called INSTALL.minc.

So I still have no clue where to find installation instructions, and
google or the wiki doesn't help me. This should be improved...

In any case, an hour later I have less hair, but appear to have a
working installation of MINC2.

-- A

On 9/18/07, Claude LEPAGE <claude at bic.mni.mcgill.ca> wrote:
> Alex,
>
> I guess that if you are using minc-2.0.13, you should specify --with-minc2
> in your ./configure line.
>
> In fact, I use:
>   ./configure --with-minc2 --enable-shared=no --enable-static=yes --enable-acr-nema --enable-minc2
>
> Can you try this out? You can omit shared/static flags if you want.
>
> Claude
>
> > Anybody tried to build this package yet? It does not seem to work out
> > of the box:
> >
> > % ./configure --prefix=/usr/local/bic
> > % make
> > depbase=`echo conversion/nifti1/mnc2nii.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> >         gcc -DHAVE_CONFIG_H -I. -I./libsrc -I./volume_io/Include
> > -I./volume_io/Include -I./progs/Proglib -I./conversion/Acr_nema     -g
> > -O2 -MT conversion/nifti1/mnc2nii.o -MD -MP -MF $depbase.Tpo -c -o
> > conversion/nifti1/mnc2nii.o conversion/nifti1/mnc2nii.c &&\
> >         mv -f $depbase.Tpo $depbase.Po
> > conversion/nifti1/mnc2nii.c:1:19: minc2.h: No such file or directory
> > make[2]: *** [conversion/nifti1/mnc2nii.o] Error 1
> > make[2]: Leaving directory `/usr/local/src/minc-2.0.13'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/minc-2.0.13'
> > make: *** [all] Error 2
> >
> > $ find . -name minc2.h
> > ./libsrc2/minc2.h
> >
> > Looks like there is a problem with the -I list. It's including
> > ./libsrc, but not ./libsrc2 where minc2.h seems to live.
>
>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
>


More information about the MINC-users mailing list