[MINC-users] Problem compiling ray_trace

Jonathan HARLAP jharlap at bic.mni.mcgill.ca
Sat Apr 1 11:30:34 EST 2006


You probably want libnetbpm9-dev...

Cheers,
J



On Fri, Mar 31, 2006 at 06:50:12PM -0500, Gil Citro wrote:
> (Sorry for the last message, I sent too soon)
> 
> On 3/31/06, Alexandre CARMEL-VEILLEUX <acveilleux at mrs.mni.mcgill.ca> wrote:
> > > libppm is provided by the netpbnm and netpbm=dev packages,
> > > I belive.
> > >
> > > Alex
> > >
> >
> 
> netpbm is the newest version.  netpbm-dev is a virtual package, and
> libnetpbm10-dev  is installed to provude it.  When I pass
> --with-image-ppm to configure when compiling bicpl-1.4.2 is still says
> configure: error: cannot find required header, but if I pass
> --with-image-netpbm it configures and compiles without error.
> 
> However, when I then try to configure and compile ray_trace it
> configures without error but gives the following error when being
> compiled
> 
> undefined reference to `ppm_writeppminit`  (see below)
> 
> If I compile bicpl without --with-image-netpbm I don't get this error
> when compiling ray_trace, but then I have the original problem I
> reported.
> 
> It looks to me like I'm missing some libraries having to do with
> pixmaps, so I did apt-cache search pixmap, and apt-get install for the
> packages below, but no change.
> 
> libgd-gd2-perl
> libgd2-xpm
> libgd2-xpm-dev
> libgdchart-gd2-xpm
> libgdchart-gd2-xpm-dev
> libgd-tools
> libxpm-dev
> libxpm4
> libxpm4-dbg
> 
> Compiling bicpl with --with-image-ppm goves the same error, and
> --with-image-netpbm gives no error until I compile ray_trace.
> 
> Thanks for all the help so far.  If anyone has any other ideas I'd
> greatly appreciate it.
> 
> Gil
> 
> 
> make  all-recursive
> make[1]: Entering directory `/usr/local/mni/ray_trace-1.0'
> Making all in Graphics
> make[2]: Entering directory `/usr/local/mni/ray_trace-1.0/Graphics'
> Making all in GLUT_windows
> make[3]: Entering directory
> `/usr/local/mni/ray_trace-1.0/Graphics/GLUT_windows'make[3]: Nothing
> to be done for `all'.
> make[3]: Leaving directory `/usr/local/mni/ray_trace-1.0/Graphics/GLUT_windows'
> Making all in G_graphics
> make[3]: Entering directory `/usr/local/mni/ray_trace-1.0/Graphics/G_graphics'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/usr/local/mni/ray_trace-1.0/Graphics/G_graphics'
> Making all in OpenGL_graphics
> make[3]: Entering directory
> `/usr/local/mni/ray_trace-1.0/Graphics/OpenGL_graphics'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory
> `/usr/local/mni/ray_trace-1.0/Graphics/OpenGL_graphics'
> make[3]: Entering directory `/usr/local/mni/ray_trace-1.0/Graphics'
> make[3]: Nothing to be done for `all-am'.
> make[3]: Leaving directory `/usr/local/mni/ray_trace-1.0/Graphics'
> make[2]: Leaving directory `/usr/local/mni/ray_trace-1.0/Graphics'
> make[2]: Entering directory `/usr/local/mni/ray_trace-1.0'
> /bin/sh ./libtool --mode=link gcc  -g -O2   -o ray_trace  ray_trace.o
> intersect.o trace.o volume.o Graphics/libbicgl.a -lbicpl -lvolume_io
> -lminc -lnetcdf -lm
> mkdir .libs
> gcc -g -O2 -o ray_trace ray_trace.o intersect.o trace.o volume.o 
> Graphics/libbicgl.a -lbicpl /usr/lib/libvolume_io.so
> /usr/lib/libminc.so -lnetcdf -lm
> /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[2]: *** [ray_trace] Error 1
> make[2]: Leaving directory `/usr/local/mni/ray_trace-1.0'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/mni/ray_trace-1.0'
> 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