attached new patch and old patch  too..

On Saturday, May 21, 2022, Andrew Randrianasulu <[email protected]>
wrote:

>
>
> On Saturday, May 21, 2022, Andrew Randrianasulu <[email protected]>
> wrote:
>
>>
>>
>> On Saturday, May 21, 2022, Andrea paz via Cin <[email protected]>
>> wrote:
>>
>>> I tried using your patch
>>> (0001-Try-to-disable-jasper-jpeg2000-in-opencv.patch) and still the
>>> opencv plugins do not appear. As usual I attach cin5.log and
>>> config.log.
>>
>>
>> cin5.log 9404246/9289K 98%
>> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/opencv/modules/videoio/sr
>> c/cap_ffmpeg_impl.hpp:541:5: error: ‘AVBSFContext’ does not name a type
>> ; did you mean ‘AVIOContext’?
>>   541 | AVBSFContext* bsfc;
>>       | ^~~~~~~~~~~~
>>       | AVIOContext
>> cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid fo
>> r C/ObjC but not for C++
>> /home/paz/cinelerra5/cinelerra-5.1/thirdparty/opencv/modules/videoio/sr
>> c/cap_ffmpeg_impl.hpp: In member function ‘void CvCapture_FFMPEG::init(
>> )’:
>>
>>
>> so now it breaks in different place... can you try to disable ffmpeg
>> integration too?
>>
>
> from documentation...
> ===
>
> It is possible to use CMake tool to print all available options:
>
> # initial configuration
> cmake ../opencv
> # print all options
> cmake -L
> # print all options with help message
> cmake -LH
> # print all options including advanced
> cmake -LA
> ====
>
> FFmpeg
> WITH_FFMPEG (default: ON)
>
> Integration with FFmpeg library for decoding and encoding video files and
> network streams. This library can read and write many popular video
> formats. It consists of several components which must be installed as
> prerequisites for the build:
>
> avcodec
> avformat
> avutil
> swscale
> avresample (optional)
> Exception is Windows platform where a prebuilt plugin library containing
> FFmpeg will be downloaded during a configuration stage and copied to the
> bin folder with all produced libraries.
>
> Note
> Libav library can be used instead of FFmpeg, but this combination is not
> actively supported.
> GStreamer
> WITH_GSTREAMER (default: ON)
>
> Enable integration with GStreamer library for decoding and encoding video
> files, capturing frames from cameras and network streams. Numerous plugins
> can be installed to extend supported formats list. OpenCV allows running
> arbitrary GStreamer pipelines passed as strings to cv::VideoCapture and
> cv::VideoWriter objects.
>
> Various GStreamer plugins offer HW-accelerated video processing on
> different platforms.
>
> https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html
>
>
> ===
>
>
>>
>>
>>
>>>
>>> PS: I was thinking that since compiling the latest version on git
>>> works (4.5, on https://github.com/opencv/opencv.git), can we try
>>> putting this in CinGG git? I mean instead of the current version 3.
>>>
>>
>>
>> if it does not demand too much from cmake/gcc..
>>
>
From bee8ca8703edd98ca78d021fe59bd7a5dbe44979 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Sun, 15 May 2022 22:22:53 +0300
Subject: [PATCH 1/2] Try to disable jasper/jpeg2000 in opencv

---
 cinelerra-5.1/opencv_build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
index 7be18228..9f845ba6 100644
--- a/cinelerra-5.1/opencv_build
+++ b/cinelerra-5.1/opencv_build
@@ -80,6 +80,7 @@ $(opencv)/build: $(opencv).src
   -DWITH_IPP=OFF \
   -DWITH_LAPACK=OFF \
   -DWITH_GPHOTO2=OFF \
+  -DWITH_JASPER=OFF \
   -DBUILD_SHARED_LIBS=OFF \
   -DINSTALL_C_EXAMPLES=OFF \
   -DINSTALL_PYTHON_EXAMPLES=OFF \
@@ -105,6 +106,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 \
-- 
2.36.1

From 54e86159e9a93bfa4a6cfe55a8df2409ee00ab2c Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Sat, 21 May 2022 13:59:13 +0300
Subject: [PATCH 2/2] Disable more in opencv build

---
 cinelerra-5.1/opencv_build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
index 9f845ba6..f443e29c 100644
--- a/cinelerra-5.1/opencv_build
+++ b/cinelerra-5.1/opencv_build
@@ -81,6 +81,9 @@ $(opencv)/build: $(opencv).src
   -DWITH_LAPACK=OFF \
   -DWITH_GPHOTO2=OFF \
   -DWITH_JASPER=OFF \
+  -DWITH_FFMPEG=OFF \
+  -DWITH_GSTREAMER=OFF \
+  -DWITH_ANDROID_MEDIANDK=OFF \
   -DBUILD_SHARED_LIBS=OFF \
   -DINSTALL_C_EXAMPLES=OFF \
   -DINSTALL_PYTHON_EXAMPLES=OFF \
@@ -107,6 +110,9 @@ $(opencv)/build: $(opencv).src
   -DWITH_LAPACK=OFF \
   -DWITH_GPHOTO2=OFF \
   -DWITH_JASPER=OFF \
+  -DWITH_FFMPEG=OFF \
+  -DWITH_GSTREAMER=OFF \
+  -DWITH_ANDROID_MEDIANDK=OFF \
   -DBUILD_SHARED_LIBS=ON \
   -DINSTALL_C_EXAMPLES=ON \
   -DINSTALL_PYTHON_EXAMPLES=ON \
-- 
2.36.1

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to