[MINC-users] Problem compiling ray_trace

Alexandre CARMEL-VEILLEUX acveilleux at mrs.mni.mcgill.ca
Mon Apr 3 13:30:28 EDT 2006


	It's not linking with the lib, most likely. Maybe try this:

cd <conglomerate dir>
vi Makefile
/^LIBS
A
 -lppm
<escape>
:wq
make

	You could also rerun ./configure with some environment variable
set so it does the smart thing.

Alex


On Mon, Apr 03, 2006 at 01:13:39PM -0400, Gil Citro wrote:
> Date: Mon, 3 Apr 2006 13:13:39 -0400
> From: "Gil Citro" <citrog at gmail.com>
> To: "MINC users mailing list" <minc-users at bic.mni.mcgill.ca>
> Subject: Re: [MINC-users] Problem compiling ray_trace
> 
> If I install libnetbpm9-dev I can ./configure bicpl-14.2 --with-image-ppm
> without errors.  However, when I then try to configure and compile
> conglomerate-1.6 I get the error below when compiling.  This does not
> happen if bicpl is configured without --with-image-ppm.
> 
> I hope nobody minds my sending this to the list.  I just thought it would
> be useful in case anyone searches for an answer to a similar problem
> in the future.  If it's too much detail for this list let me know.  Thanks.
> 
> Gil
> 
> 
> On 4/1/06, Jonathan HARLAP <jharlap at bic.mni.mcgill.ca> wrote:
> > You probably want libnetbpm9-dev...
> >
> > Cheers,
> > J
> >
> 
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x3e): In function `input_rgb_file':
> /usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:31: undefined reference
> to `ppm_readppminit'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x4b):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:33:
> undefined reference to `pm_allocrow'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0xa2):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:46:
> undefined reference to `ppm_readppmrow'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0xb6):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:56:
> undefined reference to `pm_freerow'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x1c3): In function
> `output_rgb_file':/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:97:
> undefined reference to `ppm_writeppminit'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x1d1):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:100:
> undefined reference to `pm_allocrow'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x20c):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:118:
> undefined reference to `ppm_writeppmrow'
> /usr/local/lib/libbicpl.a(rgb_io.o)(.text+0x219):/usr/local/mni/bicpl-1.4.2/Images/rgb_io_ppm.c:121:
> undefined reference to `pm_freerow'
> collect2: ld returned 1 exit status
> make[1]: *** [composite_images] Error 1
> make[1]: Leaving directory `/usr/local/mni/conglomerate-1.6'
> make: *** [all] Error 2
> 
> _______________________________________________
> 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