FAQ #23: Linker errors for dcm2pnm/dcmj2pnm, symbols "jpeg_xxx" cannot be located

Frequently Asked Questions regarding DCMTK

Moderator: FAQ Team

Post Reply
Message
Author
Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

FAQ #23: Linker errors for dcm2pnm/dcmj2pnm, symbols "jpeg_xxx" cannot be located

#1 Post by Jörg Riesmeier » Fri, 2004-11-05, 12:07

:?: I am trying to compile DCMTK, but get linker errors for the tools dcm2pnm and dcmj2pnm. The following symbols cannot be located:
  • jpeg_abort
  • jpeg_std_error
  • jpeg_CreateCompress
  • jpeg_CreateDecompress
  • jpeg_set_defaults
  • jpeg_set_colorspace
  • jpeg_set_quality
  • jpeg_suppress_tables
  • jpeg_start_compress
  • jpeg_write_scanlines
  • jpeg_write_raw_data
  • jpeg_finish_compress
  • jpeg_write_tables
  • jpeg_read_header
  • jpeg_start_decompress
  • jpeg_read_scanlines
  • jpeg_read_raw_data
  • jpeg_finish_decompress
  • jpeg_destroy
  • jpeg_resync_to_restart
:!: On your system, libtiff has been compiled with JPEG support enabled. After running configure for DCMTK, you need to manually update "config/Makefile.def". Locate the TIFFLIBS entry and add "-ljpeg":

Code: Select all

TIFFLIBS = -ltiff -ljpeg
DCMTK should correctly compile and link now.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest