[Dcmlib] undefined reference to `gdcm_jpeg8_jpeg_resync_to_restart, etc
Tanya
tanya_lll at yahoo.com
Thu Oct 18 12:45:26 CEST 2012
Dear GDCM developers and user,
I am new to GDCM. I tried to first make a small Eclipse project to read the DICOM header file but when I built my program, I got the error message attached in the bottom of this email. I think the problem related to gdcmJpeg8, gdcmJpeg12, and gdcmJpeg16 linker, but I don't know how to solve it.
I have put all these libraries name in MingGW linker - libraries -l, through the "Properties" of the project:
gdcmjpeg12,wsock32,gdcmjpeg16,vtkgdcm,gdcmopenjpeg,gdcmjpeg8,snmpapi,gdcm.
I have also put these paths in the MingGW linker - libraries through the "Properties" of the project:
"C:\Program Files\GDCM\lib\gdcm"
"C:\WINDOWS\system32"
To make it easier for you to diagnose my problem, here are the environment I use:
- Eclipse Indigo Release 2
- MinGW
- GDCM v. 1.3.2
- I generated the GDCM using CMake 2.8.9, WITHOUT, please underline "without" BUILD_SHARED_LIBS and BUILD_TESTING. Because if I used these 2, it will give me error messages in the "make".
- Compiler tobe used for the CMake : MSYS, NOT, please underline "not" MinGW
- I am on Windows XP, Professional version
Any help would be highly appreciated, and please see below for the error messages.
Best Regards,
.Tanya.
---The Error Messages :
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x260): undefined reference to `gdcm_jpeg8_jpeg_resync_to_restart'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x566): undefined reference to `gdcm_jpeg8_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x58a): undefined reference to `gdcm_jpeg8_jpeg_CreateCompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x604): undefined reference to `gdcm_jpeg8_jpeg_set_defaults'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x622): undefined reference to `gdcm_jpeg8_jpeg_simple_lossless'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x63f): undefined reference to `gdcm_jpeg8_jpeg_set_quality'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x655): undefined reference to `gdcm_jpeg8_jpeg_start_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x6c2): undefined reference to `gdcm_jpeg8_jpeg_write_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x6fe): undefined reference to `gdcm_jpeg8_jpeg_finish_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x70c): undefined reference to `gdcm_jpeg8_jpeg_destroy_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x769): undefined reference to `gdcm_jpeg8_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x88b): undefined reference to `gdcm_jpeg8_jpeg_destroy_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x8b7): undefined reference to `gdcm_jpeg8_jpeg_CreateDecompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x91b): undefined reference to `gdcm_jpeg8_jpeg_read_header'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x961): undefined reference to `gdcm_jpeg8_jpeg_start_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0x9f7): undefined reference to `gdcm_jpeg8_jpeg_read_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0xa56): undefined reference to `gdcm_jpeg8_jpeg_finish_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg8.obj):gdcmJpeg8.cxx:(.text+0xa74): undefined reference to `gdcm_jpeg8_jpeg_destroy_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x260): undefined reference to `gdcm_jpeg12_jpeg_resync_to_restart'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x566): undefined reference to `gdcm_jpeg12_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x58a): undefined reference to `gdcm_jpeg12_jpeg_CreateCompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x604): undefined reference to `gdcm_jpeg12_jpeg_set_defaults'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x622): undefined reference to `gdcm_jpeg12_jpeg_simple_lossless'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x63f): undefined reference to `gdcm_jpeg12_jpeg_set_quality'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x655): undefined reference to `gdcm_jpeg12_jpeg_start_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x6c2): undefined reference to `gdcm_jpeg12_jpeg_write_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x700): undefined reference to `gdcm_jpeg12_jpeg_finish_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x70e): undefined reference to `gdcm_jpeg12_jpeg_destroy_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x76b): undefined reference to `gdcm_jpeg12_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x88d): undefined reference to `gdcm_jpeg12_jpeg_destroy_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x8b9): undefined reference to `gdcm_jpeg12_jpeg_CreateDecompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x91d): undefined reference to `gdcm_jpeg12_jpeg_read_header'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x963): undefined reference to `gdcm_jpeg12_jpeg_start_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0x9fb): undefined reference to `gdcm_jpeg12_jpeg_read_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0xa5a): undefined reference to `gdcm_jpeg12_jpeg_finish_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg12.obj):gdcmJpeg12.cxx:(.text+0xa78): undefined reference to `gdcm_jpeg12_jpeg_destroy_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x260): undefined reference to `gdcm_jpeg16_jpeg_resync_to_restart'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x566): undefined reference to `gdcm_jpeg16_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x58a): undefined reference to `gdcm_jpeg16_jpeg_CreateCompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x604): undefined reference to `gdcm_jpeg16_jpeg_set_defaults'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x622): undefined reference to `gdcm_jpeg16_jpeg_simple_lossless'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x63f): undefined reference to `gdcm_jpeg16_jpeg_set_quality'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x655): undefined reference to `gdcm_jpeg16_jpeg_start_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x6c2): undefined reference to `gdcm_jpeg16_jpeg_write_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x700): undefined reference to `gdcm_jpeg16_jpeg_finish_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x70e): undefined reference to `gdcm_jpeg16_jpeg_destroy_compress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x76b): undefined reference to `gdcm_jpeg16_jpeg_std_error'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x88d): undefined reference to `gdcm_jpeg16_jpeg_destroy_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x8b9): undefined reference to `gdcm_jpeg16_jpeg_CreateDecompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x91d): undefined reference to `gdcm_jpeg16_jpeg_read_header'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x963): undefined reference to `gdcm_jpeg16_jpeg_start_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0x9fb): undefined reference to `gdcm_jpeg16_jpeg_read_scanlines'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0xa5a): undefined reference to `gdcm_jpeg16_jpeg_finish_decompress'
C:\Program Files\GDCM\lib\gdcm/libgdcm.a(gdcmJpeg16.obj):gdcmJpeg16.cxx:(.text+0xa78): undefined reference to `gdcm_jpeg16_jpeg_destroy_decompress'
Build error occurred, build is stopped
Time consumed: 4187 ms.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20121018/b34354b8/attachment-0001.html>
More information about the Dcmlib
mailing list