on topic of opencv I instalked opencv 4.5.5 on termux and tried to build cingg plugins against this. <div><br></div><div>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. </div><div><br></div><div><br></div><div>hack:</div><div><br></div><div>$ git diff thirdparty/Makefile plugins/Makefile</div><div>diff --git a/cinelerra-5.1/plugins/Makefile b/cinelerra-5.1/plugins/Makefile</div><div>index e6718432..cb3a10e8 100644</div><div>--- a/cinelerra-5.1/plugins/Makefile</div><div>+++ b/cinelerra-5.1/plugins/Makefile</div><div>@@ -8,7 +8,8 @@ endif</div><div> ifneq ($(WANT_OPENCV), no)</div><div> want_var:=$(WANT_OPENCV)</div><div> include $(TOPDIR)/opencv_build</div><div>-OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj</div><div>+#OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj</div><div>+OPENCV_OBJS := flowobj gaborobj moveobj stylizeobj findobj</div><div> $(OPENCV_OBJS): opencv</div><div> endif</div><div> ifneq ($(WANT_CUDA), no)</div><div><br></div><div><br></div><div>err, not all changes... </div><div><br></div><div><br></div><div><br></div><div>$ git diff thirdparty/Makefile plugins/Makefile plugins</div><div>diff --git a/cinelerra-5.1/plugins/Makefile b/cinelerra-5.1/plugins/Makefile</div><div>index e6718432..cb3a10e8 100644</div><div>--- a/cinelerra-5.1/plugins/Makefile</div><div>+++ b/cinelerra-5.1/plugins/Makefile</div><div>@@ -8,7 +8,8 @@ endif</div><div> ifneq ($(WANT_OPENCV), no)</div><div> want_var:=$(WANT_OPENCV)</div><div> include $(TOPDIR)/opencv_build</div><div>-OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj</div><div>+#OPENCV_OBJS := findobj flowobj gaborobj moveobj stylizeobj puzzleobj</div><div>+OPENCV_OBJS := flowobj gaborobj moveobj stylizeobj findobj</div><div> $(OPENCV_OBJS): opencv</div><div> endif</div><div> ifneq ($(WANT_CUDA), no)</div><div>diff --git a/cinelerra-5.1/plugins/findobj/findobj.h b/cinelerra-5.1/plugins/findobj/findobj.h</div><div>index 2bea44af..541e9e6f 100644</div><div>--- a/cinelerra-5.1/plugins/findobj/findobj.h</div><div>+++ b/cinelerra-5.1/plugins/findobj/findobj.h</div><div>@@ -50,7 +50,7 @@</div><div> #include "opencv2/core/types.hpp"</div><div> #include "opencv2/core/mat.hpp"</div><div> #include "opencv2/imgproc/imgproc.hpp"</div><div>-#include "opencv2/xfeatures2d.hpp"</div><div>+#include "opencv2/features2d.hpp"</div><div> #include "opencv2/calib3d.hpp"</div><div> #include "opencv2/flann/defines.h"</div><div> #include "opencv2/flann/params.h"</div><div>@@ -60,7 +60,7 @@</div><div><br></div><div> using namespace std;</div><div> using namespace cv;</div><div>-using namespace cv::xfeatures2d;</div><div>+//using namespace cv::xfeatures2d;</div><div> using namespace cvflann;</div><div><br></div><div> // enabled detectors</div><div>diff --git a/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h b/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h</div><div>index 197522f3..ebfe1881 100644</div><div>--- a/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h</div><div>+++ b/cinelerra-5.1/plugins/puzzleobj/puzzleobj.h</div><div>@@ -28,7 +28,7 @@</div><div> #include "opencv2/core/mat.hpp"</div><div> #include "opencv2/calib3d.hpp"</div><div> #include "opencv2/photo.hpp"</div><div>-#include "opencv2/ximgproc.hpp"</div><div>+#include "opencv2/imgproc.hpp"</div><div> #include "opencv2/video/video.hpp"</div><div><br></div><div> #include <vector></div><div>@@ -36,7 +36,7 @@</div><div><br></div><div> using namespace std;</div><div> using namespace cv;</div><div>-using namespace cv::ximgproc;</div><div>+//using namespace cv::ximgproc;</div><div><br></div><div> class PuzzleObjConfig;</div><div> class PuzzleObj;</div><div>(END)</div><div><br></div><div>===</div><div><br></div><div>puzzleobj failed to build anyway, so I commented it out. </div><div><br></div><div>may be on more standart Linux dynamuc/system build with this hack still will work (produce usable plugins?) <br><br>On Saturday, April 16, 2022, Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="https://github.com/Randrianasulu/CinelerraGG-slackbuild/blob/master/openCV4-static-gcc5_more-disable-3.diff" target="_blank">https://github.com/<wbr>Randrianasulu/CinelerraGG-<wbr>slackbuild/blob/master/<wbr>openCV4-static-gcc5_more-<wbr>disable-3.diff</a><div><br></div><div>basically re-applied locally because opencv build eats a bit too much space... </div><div><br></div><div><br></div>
</blockquote></div>