<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - 0.22.0 does not find openjpeg-2.0.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58906#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - 0.22.0 does not find openjpeg-2.0.0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58906">bug 58906</a>
              from <span class="vcard"><a class="email" href="mailto:Thomas.Freitag@alfa.de" title="Thomas Freitag <Thomas.Freitag@alfa.de>"> <span class="fn">Thomas Freitag</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=58906#c10">comment #10</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=98748" name="attach_98748" title="initial attempt at openjpeg2 support">attachment 98748</a> <a href="attachment.cgi?id=98748&action=edit" title="initial attempt at openjpeg2 support">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=58906&attachment=98748'>[review]</a> [review]
> initial attempt at openjpeg2 support

> I've updated my patch to support openjpeg2 with pkg-config support. I've
> also merged the JPEG2000Stream2.cc changes into JPEG2000Stream.cc.

> Thomas, you should be able to rebase your changes onto this.</span >

I first just applied Your patch, the configure now works fine, it detects
openjpeg 2.1. BUT: when I try to compile it (without any changes from me), I
got

JPEG2000Stream.cc: In member function 'void JPXStream::init()':
JPEG2000Stream.cc:231:3: warning: 'void opj_stream_set_user_data(void**,
void*)' is deprecated (declared at
/usr/local/include/openjpeg-2.1/openjpeg.h:1082) [-Wdeprecated-declarations]
JPEG2000Stream.cc:231:47: error: too many arguments to function 'void
opj_stream_set_user_data(void**, void*)'
In file included from JPEG2000Stream.h:21:0,
                 from JPEG2000Stream.cc:17:
/usr/local/include/openjpeg-2.1/openjpeg.h:1082:1: note: declared here
JPEG2000Stream.cc:231:47: warning: 'void opj_stream_set_user_data(void**,
void*)' is deprecated (declared at
/usr/local/include/openjpeg-2.1/openjpeg.h:1082) [-Wdeprecated-declarations]
make[3]: *** [JPEG2000Stream.lo] Fehler 1

I looked into the openjpeg 2,0 header files, it's the same,
opj_stream_set_user_data only accepts two arguments, so I'm wondering how You
get it compiled. Okay, if I apply my changes, we'll get it compiled again. But
will we get my patch compiled on any installation???</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>