Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong JPEG library version: library is 80, caller expects 70 #105

Open
ertong opened this Issue May 26, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@ertong
Copy link

ertong commented May 26, 2016

When the library is used in ubuntu 14.04 with javafx, javafx stops loading jpeg images with error:
Wrong JPEG library version: library is 80, caller expects 70

To reproduce this issue it is enough to run the following code
mavenproject4.TAR.gz
using OracleJDK8u92 32bit in ubuntu live cd.

The result should look similar to
image

@ertong

This comment has been minimized.

Copy link
Author

ertong commented May 26, 2016

The initial track to this issue was from webcam-capture library (sarxos/webcam-capture#468). But it looks the problem is inside openimaj library.

@jonhare

This comment has been minimized.

Copy link
Member

jonhare commented May 31, 2016

I haven't had a chance to look at this yet, but it is likely to do with a mismatch in the jpeg libraries being used - it might be that the OpenIMAJ capture library is pulling in the system libjpeg-8, whilst javafx wants libjpeg-7 (bundled with the jvm/jre).

A possible temporary work-around might be to load a jpeg image using javafx before using any video capture code (i.e. as early in your program as possible). This might cause it to load the version of libjpeg it expects...

@ertong

This comment has been minimized.

Copy link
Author

ertong commented May 31, 2016

@jonhare, thanks for your answer.
You workaround looks working (sarxos/webcam-capture#468 (comment)). But it looks like some sort of magic :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.