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

opj_decompress 2.4.0 built with library 2.3.0. #1352

Closed
John-Nagle opened this issue May 31, 2021 · 3 comments
Closed

opj_decompress 2.4.0 built with library 2.3.0. #1352

John-Nagle opened this issue May 31, 2021 · 3 comments

Comments

@John-Nagle
Copy link

Downloaded the 2.4.0 version of OpenJPEG from https://github.com/uclouvain/openjpeg/releases/download/v2.4.0/openjpeg-v2.4.0-linux-x86_64.tar.gz
and extracted opj_decompress. Tried

opj_decompress -h

Got

This is the opj_decompress utility from the OpenJPEG project.
It decompresses JPEG 2000 codestreams to various image formats.
It has been compiled against openjp2 library **v2.3.0.**

Was that executable built with the wrong library?

@rouault
Copy link
Collaborator

rouault commented May 31, 2021

Was that executable built with the wrong library?

no, but you have likely your system libopenjp2 that is used.

Demo on my system:

$ ldd openjpeg-v2.4.0-linux-x86_64/bin/opj_decompress | grep openjp2
libopenjp2.so.7 => /lib/x86_64-linux-gnu/libopenjp2.so.7 (0x00007f6ce0d37000)

$ openjpeg-v2.4.0-linux-x86_64/bin/opj_decompress -h |head -n 4

This is the opj_decompress utility from the OpenJPEG project.
It decompresses JPEG 2000 codestreams to various image formats.
It has been compiled against openjp2 library v2.3.1.

$ LD_LIBRARY_PATH=openjpeg-v2.4.0-linux-x86_64/lib openjpeg-v2.4.0-linux-x86_64/bin/opj_decompress -h |head -n 4

This is the opj_decompress utility from the OpenJPEG project.
It decompresses JPEG 2000 codestreams to various image formats.
It has been compiled against openjp2 library v2.4.0.

The message "has been compiled" is a bit misleading, as it reflects the runtime version, not the build time one

@John-Nagle
Copy link
Author

Oh, so it's loading an older .so file. Let me look at that. More later.

@John-Nagle
Copy link
Author

OK, please close; that wasn't the problem. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants