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

Bug in libopenjpwl.pc #374

Closed
gcode-importer opened this issue Jul 7, 2014 · 1 comment
Closed

Bug in libopenjpwl.pc #374

gcode-importer opened this issue Jul 7, 2014 · 1 comment

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 374

I have found a bug in the pkg-config file for JPWL
and openjpeg-2.
-----------------------------------------------
Before changing the contents of libopenjpwl.pc:
-----------------------------------------------
prefix=/usr/local/opj2
bindir=${prefix}/bin
mandir=${prefix}/
docdir=${prefix}/
libdir=${prefix}/lib
includedir=${prefix}/include/openjpeg-2.1

Name: openjpwl
Description: JPEG2000 Wireless library (Part 11)
URL: http://www.openjpeg.org/
Version: 2.1.0
Requires: openjp2 <================
Libs: -L${libdir} -lopenjpwl
Libs.private: -lm
Cflags: -I${includedir}


pkg-config --libs libopenjpwl

Package openjp2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `openjp2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openjp2', required by 'openjpwl', not found

-----------------------------------------------
After changing the contents of libopenjpwl.pc:
-----------------------------------------------
prefix=/usr/local/opj2
bindir=${prefix}/bin
mandir=${prefix}/
docdir=${prefix}/
libdir=${prefix}/lib
includedir=${prefix}/include/openjpeg-2.1

Name: openjpwl
Description: JPEG2000 Wireless library (Part 11)
URL: http://www.openjpeg.org/
Version: 2.1.0
Requires: libopenjp2 <========== CHANGE
Libs: -L${libdir} -lopenjpwl
Libs.private: -lm
Cflags: -I${includedir}


root: pkg-config --libs libopenjpwl
-L/usr/local/opj2/lib -lopenjpwl -lopenjp2

======================================

It seems that JPWL images can be shown only with code from
openjpeg-v1.

openjpeg-2.x-trunk-r2871-1/src/bin/jpwl/opj_jpwl_decompress.c:

 dinfo = opj_create_decompress(codec_format);
 opj_setup_decoder(dinfo, &parameters);
 cio = opj_cio_open((opj_common_ptr)dinfo, buf, buf_size);
 image = opj_decode(dinfo, cio);
 opj_cio_close(cio);


With code from openjpeg-v2 I get:

        opj_read_header failed

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff5a04c1c in opj_destroy_codec ()
   from /usr/local/opj2/lib/libopenjp2.so.7

winfried

Reported by szukw000 on 2014-07-07 20:15:19

@gcode-importer
Copy link
Author

no dataset to reproduce. closing as invalid.

Reported by malaterre on 2014-09-17 09:57:14

  • Status changed: Invalid

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

No branches or pull requests

2 participants