From: Cojocaru,Vlad (vlad.cojocaru_at_eml-r.villa-bosch.de)
Date: Mon Apr 21 2008 - 18:35:21 CDT

Dear Alex, Dear John, vmd users

I followed Alex's suggestion and modified the Make-arch file (for the linux-64 architecture .. .I have 1 CPU Athlon 64 so I guess that's the right option for compiling tachyon) as described below. Tachyon compilation succeeds. However no success ... the compilation of vmd fails with the same error. It's something about the linking of the vmd executable to the tachyon library but now I am out of ideas how I could fix this.

I also attach a diff file between my modified configure and the original one.

Best wishes
vlad

---------------Modified Make-arch (in ./lib/tachyon/unix)-------------
# Linux on AMD64/EM64T, using gcc
linux-64:
        $(MAKE) all \
        "ARCH = linux-64" \
        "CC = gcc" \
        "CFLAGS = -m64 -Wall -O6 -fomit-frame-pointer -ffast-math -DLinux -DLP64 $(MISCFLAGS) $(USEJPEG) $(USEPNG)" \
        "AR = ar" \
        "ARFLAGS = r" \
        "STRIP = strip" \
        "RANLIB = ranlib" \
        "LIBS = -L. -ltachyon $(MISCLIB) $(JPEGLIB) $(PNGLIB)"
        "USEJPEG= -DUSEJPEG"
        "JPEGINC= -I/usr/include"
        "JPEGLIB= -L/usr/lib64 -ljpeg"
        "USEPNG= -DUSEPNG"
        "PNGINC= -I/usr/include"
        "PNGLIB= -L/usr/lib64 -lpng -lz"

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