-
Bug
-
Resolution: Unresolved
-
Severe (Ebuild)
-
None
-
None
-
emerge -aq opencv
-
opencv currently doesn't merge.
opencv 4.8 build fails for missing flatbuffers header file
with in-portage flatbuffers 1.11.0, we got version mismatch for 23, we can got flatbuffers-23.5.26 from zugaina, and then fails for not 23.5.9, simple rename flatbuffers ebuild works.
then it fails with quirc_flip of quirc, we only has 1.0 in portage, rename ebuild to 1.2 and update 1.0 patch for 1.2 it works.
--- files/quirc-1.0-link.patch 2023-03-21 08:17:08.175838479 +0800 +++ files/quirc-1.2-link.patch 2023-07-08 15:40:56.605626557 +0800 @@ -2,7 +2,7 @@ index 6f5c2ec..adb4e75 100644 --- a/Makefile +++ b/Makefile -@@ -57,7 +57,7 @@ libquirc.a: $(LIB_OBJ) +@@ -76,7 +76,7 @@ libquirc.a: $(LIB_OBJ) libquirc.so: libquirc.so.$(LIB_VERSION) libquirc.so.$(LIB_VERSION): $(LIB_OBJ)
and then fails for missing flatbuffers license, patch opencv with this it finnally works.
diff --git a/media-libs/opencv/opencv-4.8.0.ebuild b/media-libs/opencv/opencv-4.8.0.ebuild index eddeeab..e08a6c3 100644 --- a/media-libs/opencv/opencv-4.8.0.ebuild +++ b/media-libs/opencv/opencv-4.8.0.ebuild @@ -241,7 +241,7 @@ src_prepare() { -i CMakeLists.txt cmake/*cmake || die sed -e '/ocv_install_3rdparty_licenses/d' \ - -i cmake/OpenCVDetectOpenCL.cmake || die + -i cmake/OpenCVDetectOpenCL.cmake cmake/OpenCVDetectFlatbuffers.cmake || die if use examples; then sed -i 's/\(opencv_dnn\)/\1\n opencv_gapi/' samples/cpp/CMakeLists.txt || die @@ -463,4 +463,4 @@ multilib_src_install() { local orig_BUILD_DIR=${BUILD_DIR} python_foreach_impl python_module_compile fi -} \ No newline at end of file +}