[MINC-users] build almost everything minc Makefile and git repository for EZminc

Keaser, Michael L MKeaser at umaryland.edu
Thu Apr 7 10:16:47 EDT 2011


Andrew,

So are you saying substitute -lpgm -lpbm for the lppm? If so, when I did that, I received this message:

/usr/local/minc/src/Display-1.5.0/slice_window/crop.c:165: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/local/minc/lib/libbicpl.a(rgb_io.o): In function `output_rgb_file':
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:95: undefined reference to `ppm_writeppminit'
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:98: undefined reference to `ppm_allocrow'
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:116: undefined reference to `ppm_writeppmrow'
/usr/local/minc/lib/libbicpl.a(rgb_io.o): In function `input_rgb_file':
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:29: undefined reference to `ppm_readppminit'
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:31: undefined reference to `ppm_allocrow'
/usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:44: undefined reference to `ppm_readppmrow'
collect2: ld returned 1 exit status


Michael
________________________________________
From: minc-users-bounces at bic.mni.mcgill.ca [minc-users-bounces at bic.mni.mcgill.ca] On Behalf Of Andrew Janke [a.janke at gmail.com]
Sent: Thursday, April 07, 2011 3:09 AM
To: MINC users mailing list
Subject: Re: [MINC-users] build almost everything minc Makefile and git repository for EZminc

> Okay, I tried that, but I still get this message:
>
> <unimportant tmpdir thing>
> /usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:98: undefined reference to `ppm_allocrow'
> /usr/local/minc/lib/libbicpl.a(rgb_io.o): In function `input_rgb_file':
> /usr/local/minc/src/bicpl-1.4.6/Images/rgb_io_ppm.c:31: undefined reference to `ppm_allocrow'
> collect2: ld returned 1 exit status

ah, ppm_allocrow, did you link bicpl with ppm or netpbm?

I am not sure which platform you are compiling this on but on some
architectures you have to link with:

   -lpgm -lpbm


a
_______________________________________________
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