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

Vladimir S. FONOV vladimir.fonov at gmail.com
Thu Apr 7 11:19:12 EDT 2011


Hello,

netpbm version 10.35.74 is build  as part of quarantine creation. There 
should be file libnetpbm.a in /usr/local/minc/lib

Keaser, Michael L wrote:
> 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
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users


-- 
Best regards,
  Vladimir S. FONOV ~ v.s.fonov  <at> ilmarin.info


More information about the MINC-users mailing list