[Cin] opencv potential fix?

Andrew Randrianasulu randrianasulu at gmail.com
Sun May 15 21:26:43 CEST 2022


may be I put disable in wrong branch..

trying to put it in both dynamic and static branches...

attached.

On Sunday, May 15, 2022, Andrew Randrianasulu <randrianasulu at gmail.com>
wrote:

> strange, it still errs out in jpeg2000 file..
>
>
> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/
> opencv/modules/imgcodecs/src/grfmt_jpeg2000.cpp: In member function ‘
> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/
> opencv/modules/imgcodecs/src/grfmt_jpeg2000.cpp:381:48: error: lvalue
>   381 | jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
>       | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/
> opencv/modules/imgcodecs/src/grfmt_jpeg2000.cpp: In member function ‘
> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/
> opencv/modules/imgcodecs/src/grfmt_jpeg2000.cpp:447:48: error: lvalue
>   447 | jas_seqent_t* pix_row = &jas_matrix_get( buffer, y / ystep, 0 );
>       | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
> make[5]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/build.make:202:
> modules/imgcodecs/CMakeFiles/opencv
> make[5]: *** Attesa per i processi non terminati....
>
>
> ===
>
> from configuration summary it still find/use jasper lib 2.0.33..
>
> -- Media I/O: -- ZLib: /lib64/libz.so (ver 1.2.12)
> -- JPEG: /lib64/libjpeg.so (ver 80)
>  -- WEBP: /lib64/libwebp.so (ver encoder: 0x0
> -- PNG: /lib64/libpng.so (ver 1.6.37)
>  -- TIFF: /lib64/libtiff.so (ver 42 / 4.3.0)
> -- JPEG 2000: /lib64/libjasper.so (ver 2.0.33)
>  -- OpenEXR: build (ver 2.3.0)
> -- HDR: YES
>  -- SUNRASTER: YES
> -- PXM: YES
> -- PFM: YES
> --
> ====
>
> so I guess my fix not working..
>
> but I see you use opencv 4.2.0 - I think I used another tarball from cingg
> website? with version 3.... need to check.
>
> On Monday, May 2, 2022, Andrew Randrianasulu <randrianasulu at gmail.com>
> wrote:
>
>> try to  patch cingg like this:
>>
>> diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
>> index 7be18228..49056989 100644
>> --- a/cinelerra-5.1/opencv_build
>> +++ b/cinelerra-5.1/opencv_build
>> @@ -105,6 +105,7 @@ $(opencv)/build: $(opencv).src
>>    -DWITH_IPP=OFF \
>>    -DWITH_LAPACK=OFF \
>>    -DWITH_GPHOTO2=OFF \
>> + -DWITH_JASPER=OFF \
>>    -DBUILD_SHARED_LIBS=ON \
>>    -DINSTALL_C_EXAMPLES=ON \
>>    -DINSTALL_PYTHON_EXAMPLES=ON \
>> $
>>
>> and see if opencv build proceed to  actually 100% mark w/o errors.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220515/fec6b632/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Try-to-disable-jasper-jpeg2000-in-opencv.patch
Type: text/x-diff
Size: 938 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220515/fec6b632/attachment-0001.bin>


More information about the Cin mailing list