https://github.com/Randrianasulu/CinelerraGG-slackbuild/blob/master/openCV4-... basically re-applied locally because opencv build eats a bit too much space...
on topic of opencv I instalked opencv 4.5.5 on termux and tried to build cingg plugins against this. most plugins worked with hack - but for some reason final link faild to add opencv libs (no pkgconfig for them, it seems?) and so resulted plugins aborted cin on load. hack: $ git diff thirdparty/Makefile plugins/Makefile diff --git a/cinelerra-5.1/plugins/Makefile b/cinelerra-5.1/plugins/Makefile index e6718432..cb3a10e8 100644 --- a/cinelerra-5.1/plugins/Makefile +++ b/cinelerra-5.1/plugins/Makefile @@ -8,7 +8,8 @@ endif ifneq ($(WANT_OPENCV), no) want_var:=$(WANT_OPENCV) include $(TOPDIR)/opencv_build -OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj +#OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj +OPENCV_OBJS := flowobj gaborobj moveobj stylizeobj findobj $(OPENCV_OBJS): opencv endif ifneq ($(WANT_CUDA), no) err, not all changes... $ git diff thirdparty/Makefile plugins/Makefile plugins diff --git a/cinelerra-5.1/plugins/Makefile b/cinelerra-5.1/plugins/Makefile index e6718432..cb3a10e8 100644 --- a/cinelerra-5.1/plugins/Makefile +++ b/cinelerra-5.1/plugins/Makefile @@ -8,7 +8,8 @@ endif ifneq ($(WANT_OPENCV), no) want_var:=$(WANT_OPENCV) include $(TOPDIR)/opencv_build -OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj +#OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj +OPENCV_OBJS := flowobj gaborobj moveobj stylizeobj findobj $(OPENCV_OBJS): opencv endif ifneq ($(WANT_CUDA), no) diff --git a/cinelerra-5.1/plugins/findobj/findobj.h b/cinelerra-5.1/plugins/findobj/findobj.h index 2bea44af..541e9e6f 100644 --- a/cinelerra-5.1/plugins/findobj/findobj.h +++ b/cinelerra-5.1/plugins/findobj/findobj.h @@ -50,7 +50,7 @@ #include "opencv2/core/types.hpp" #include "opencv2/core/mat.hpp" #include "opencv2/imgproc/imgproc.hpp" -#include "opencv2/xfeatures2d.hpp" +#include "opencv2/features2d.hpp" #include "opencv2/calib3d.hpp" #include "opencv2/flann/defines.h" #include "opencv2/flann/params.h" @@ -60,7 +60,7 @@ using namespace std; using namespace cv; -using namespace cv::xfeatures2d; +//using namespace cv::xfeatures2d; using namespace cvflann; // enabled detectors diff --git a/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h b/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h index 197522f3..ebfe1881 100644 --- a/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h +++ b/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h @@ -28,7 +28,7 @@ #include "opencv2/core/mat.hpp" #include "opencv2/calib3d.hpp" #include "opencv2/photo.hpp" -#include "opencv2/ximgproc.hpp" +#include "opencv2/imgproc.hpp" #include "opencv2/video/video.hpp" #include <vector> @@ -36,7 +36,7 @@ using namespace std; using namespace cv; -using namespace cv::ximgproc; +//using namespace cv::ximgproc; class PuzzleObjConfig; class PuzzleObj; (END) === puzzleobj failed to build anyway, so I commented it out. may be on more standart Linux dynamuc/system build with this hack still will work (produce usable plugins?) On Saturday, April 16, 2022, Andrew Randrianasulu <[email protected]> wrote:
https://github.com/Randrianasulu/CinelerraGG-slackbuild/blob/master/ openCV4-static-gcc5_more-disable-3.diff
basically re-applied locally because opencv build eats a bit too much space...
After a long time I tried to copy the OpenCV filters inside CinGG (don't compile them while I compile CinGG). At startup they are not loaded.
Andrea, I will test this today after I get my GIT checkin done and see if I have the same problem. Do you mean you copied the filters from another run or did you actually compile with the OpenCV downloaded from the website? On Thu, Apr 28, 2022 at 1:42 AM Andrea paz via Cin < [email protected]> wrote:
After a long time I tried to copy the OpenCV filters inside CinGG (don't compile them while I compile CinGG). At startup they are not loaded. -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
No, I simply copied the six OpenCV plugins from CinGG's git. I copied them to .../bin/plugins/video/. These were not being recognized though. I was using the build with external ffmpeg 5 (--without-thirdparty); now that I tried the normal CinGG build from git, I have no more problems and I have the OpenCV plugins working.
On Thursday, April 28, 2022, Andrea paz via Cin <[email protected]> wrote:
No, I simply copied the six OpenCV plugins from CinGG's git. I copied them to .../bin/plugins/video/. These were not being recognized though. I was using the build with external ffmpeg 5 (--without-thirdparty); now that I tried the normal CinGG build from git, I have no more problems and I have the OpenCV plugins working.
according to https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html you can try to disable opencv's use of openexr (!) by using cmake option WITH_OPENEXR=OFF and also disable all ffmpeg/gstreamer stuff too...
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
participants (3)
-
Andrea paz -
Andrew Randrianasulu -
Phyllis Smith