From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Sun Apr 20 2008 - 13:33:29 CDT

On Sun, 20 Apr 2008, Cojocaru,Vlad wrote:

VC> Dear Alex, Dear John
VC>

VC> I managed to compile surf using the diff file you sent me. The surf
VC> ditributed with 1.8.6 does not contain the modifications you sent
VC> me. I progressed on the compilation quite far but now I got the
VC> error below. I compiled myself tachyon 0.98 and enabled the JPEG and
VC> PNG support by changing the Make-config file accordingly. Attached
VC> is my Make-config file for tachyon.

VC> Could you tell me what is going wrong here ?

it looks like the readme is a bit outdated. if you compile
with, e.g., "make linux-64-thr" then you have to
modify Make-arch as this will override flags from Make-config.
in your case the jpeg and png related linker flags were not propagated.

cheers,
   axel.

VC>
VC> Thanks again for all the help.
VC>
VC> Best
VC> vlad
VC>
VC> ../lib/tachyon/compile/linux-64/libtachyon.a(jpeg.o): In function `writejpeg':
VC> jpeg.c:(.text+0x3d): undefined reference to `jpeg_std_error'
VC> jpeg.c:(.text+0x53): undefined reference to `jpeg_CreateCompress'
VC> jpeg.c:(.text+0x5e): undefined reference to `jpeg_stdio_dest'
VC> jpeg.c:(.text+0x7f): undefined reference to `jpeg_set_defaults'
VC> jpeg.c:(.text+0x8e): undefined reference to `jpeg_set_quality'
VC> jpeg.c:(.text+0x9b): undefined reference to `jpeg_start_compress'
VC> jpeg.c:(.text+0xe5): undefined reference to `jpeg_write_scanlines'
VC> jpeg.c:(.text+0xfa): undefined reference to `jpeg_finish_compress'
VC> jpeg.c:(.text+0x102): undefined reference to `jpeg_destroy_compress'
VC> ../lib/tachyon/compile/linux-64/libtachyon.a(jpeg.o): In function `readjpeg':
VC> jpeg.c:(.text+0x16c): undefined reference to `jpeg_std_error'
VC> jpeg.c:(.text+0x182): undefined reference to `jpeg_CreateDecompress'
VC> jpeg.c:(.text+0x18d): undefined reference to `jpeg_stdio_src'
VC> jpeg.c:(.text+0x19a): undefined reference to `jpeg_read_header'
VC> jpeg.c:(.text+0x1a2): undefined reference to `jpeg_start_decompress'
VC> jpeg.c:(.text+0x21e): undefined reference to `jpeg_read_scanlines'
VC> jpeg.c:(.text+0x236): undefined reference to `jpeg_finish_decompress'
VC> jpeg.c:(.text+0x23e): undefined reference to `jpeg_destroy_decompress'
VC> ../lib/tachyon/compile/linux-64/libtachyon.a(pngfile.o): In function `writepng':
VC> pngfile.c:(.text+0x2f): undefined reference to `png_create_write_struct'
VC> pngfile.c:(.text+0x46): undefined reference to `png_create_info_struct'
VC> pngfile.c:(.text+0x5c): undefined reference to `png_destroy_write_struct'
VC> pngfile.c:(.text+0xb9): undefined reference to `png_init_io'
VC> pngfile.c:(.text+0xfc): undefined reference to `png_set_IHDR'
VC> pngfile.c:(.text+0x113): undefined reference to `png_set_gAMA'
VC> pngfile.c:(.text+0x122): undefined reference to `png_malloc'
VC> pngfile.c:(.text+0x16d): undefined reference to `png_set_text'
VC> pngfile.c:(.text+0x17a): undefined reference to `png_malloc'
VC> pngfile.c:(.text+0x1c1): undefined reference to `png_set_rows'
VC> pngfile.c:(.text+0x1d4): undefined reference to `png_write_png'
VC> pngfile.c:(.text+0x1e1): undefined reference to `png_free'
VC> pngfile.c:(.text+0x1ee): undefined reference to `png_free'
VC> pngfile.c:(.text+0x1fa): undefined reference to `png_destroy_write_struct'
VC> pngfile.c:(.text+0x217): undefined reference to `png_destroy_write_struct'
VC> ../lib/tachyon/compile/linux-64/libtachyon.a(pngfile.o): In function `readpng':
VC> pngfile.c:(.text+0x252): undefined reference to `png_create_read_struct'
VC> pngfile.c:(.text+0x264): undefined reference to `png_create_info_struct'
VC> pngfile.c:(.text+0x27c): undefined reference to `png_destroy_read_struct'
VC> pngfile.c:(.text+0x2d2): undefined reference to `png_init_io'
VC> pngfile.c:(.text+0x2e8): undefined reference to `png_read_png'
VC> pngfile.c:(.text+0x2f7): undefined reference to `png_get_image_width'
VC> pngfile.c:(.text+0x30d): undefined reference to `png_get_image_height'
VC> pngfile.c:(.text+0x323): undefined reference to `png_get_rows'
VC> pngfile.c:(.text+0x416): undefined reference to `png_destroy_read_struct'
VC> pngfile.c:(.text+0x438): undefined reference to `png_destroy_read_struct'
VC> collect2: ld returned 1 exit status
VC> make: *** [vmd_LINUXAMD64] Error 1
VC>
VC>

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.