FreeImage jpeg library conflicts with system jpeg library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeimage (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libfreeimage3
Version Info:
libfreeimage3 3.9.3-3
libjpeg62 6b-13
libogre-14 1.4.3-1
Description:
Freeimage static build of libJPEG conflict with the system jpg library meaning that FreeImage cannot be used alongside any library that uses the system JPEG library.
Error Message:
FreeImage error: 'JPEG parameter struct mismatch: library thinks size is 464, caller expects 428' when loading format JPEG terminate called after throwing an instance of 'int'
Reason to suspect conflict with libjpeg:
"A common error that users of the library sometimes stumble upon is "JPEG parameter struct mismatch: library thinks size is X, caller expects Y" where X and Y are some numbers in the range 400-500. The reason for the error is that the user is using a version of the header file, jpeglib.h, that is different from the version of the installed binaries."
[http://
I am using libogre-14 and get this error when I try to load a jpeg.
If its not freeimage maybe should assign bug to libogre-14
Update:
Using -lOgreMain in the linker params ensures the Ogre libraries get linked first and solves the conflict with the jpeg library linked by wxWidgets.
BUT
If any wx component requires the the JPEG library then the same problem occurs in reverse.
Suggestion, FreeImage should use the same version of the JPEG library as is present on Ubuntu?
Would the maintainer like to comment on this?
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Related Error Messages:
FreeImage Dependancy linking to system instead of FreeImage: "JPEG parameter struct mismatch: library thinks size is 464, caller expects 428"
System JPEG dependancy linking to FreeImage JPG instead of system: "JPEG parameter struct mismatch: library thinks size is 428, caller expects 464"
Possible Solution:
Update the package!!
There is a news story on the FreeImage site dated "November 19th, 2007" that seems to have the problem solved in the next version. freeimage. sourceforge. net/news. html
http://
The new version use gcc visibility support to solve the problem.