Skip to content

opencv: update to 5.1.0 - #62568

Open
zlice wants to merge 18 commits into
void-linux:masterfrom
zlice:opencv5
Open

zlice wants to merge 18 commits into
void-linux:masterfrom
zlice:opencv5

Conversation

@zlice

@zlice zlice commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Testing the changes

  • I tested the changes in this PR: yes

ffmpeg9 #62550

Local build testing

  • I built this PR locally for my native architecture, x86_64
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64-musl
    • i686 (gmic)
    • arm6/7 (gmic)

broken

gmic is a royal pain. i don't know how other distro's have gotten this to build. finally got a half gnu-make + half cmake/ninja for qt/gimp stuff to go. end up with some conflict between qt5 (for zart) and opencv5 where the c-macro is namestepped from for X11 Status and flubs, and then trying to move things around for that seems to make qt5 go fubar.

everything else appears to build for arm64-musl

gmic

there are a few build systems going on trying to build a few packages. the short version is that xbps-src's build flags aren't getting picked up, and some aren't there to begin with because the primary library is a gnu-makefile build_style, but other parts (qt+gimp) are cmake files or qmake (zart).

  • arm6/7 - don't know what mtune=generic is

mlt7

looks like ci was failing not finding dot from graphviz?

opentoonz 1.8.0

arch has more patches for tiff, i'm not familiar with the software enough to tell if/what it's fixing.

spectacle 6.8.3

https://invent.kde.org/plasma/spectacle/-/commit/5003d04e5987a78c8cf56b96b8d1ffbdf4c2feef

no longer uses opencv

opencv 5.1.0

digikam, libopenshot and siril needed patches for new Mat format - was () now {} or define array and pass to macro

@zlice zlice changed the title [WIP] opencv: update to 5.0.0 [skip ci] [ci skip] [no ci] opencv: update to 5.0.0 Sep 18, 2026
@zlice
zlice force-pushed the opencv5 branch 5 times, most recently from 1a5d673 to 2ba4be8 Compare September 21, 2026 12:37
@zlice

zlice commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

previously built fine, kf6 updates jammed build

@zlice
zlice force-pushed the opencv5 branch 3 times, most recently from e042a6a to 05578ae Compare September 28, 2026 16:22
@zlice
zlice force-pushed the opencv5 branch 2 times, most recently from 1f91c61 to 401a09c Compare November 5, 2026 16:54
@zlice

zlice commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

gmic updated its download page to a get_file.php - https://gmic.eu/get_file.php?file=source/gmic_4.0.7.tar.gz

@zlice
zlice force-pushed the opencv5 branch 3 times, most recently from 066fef9 to e761998 Compare November 12, 2026 16:05
@zlice

zlice commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

it looks like gmic was merged out of PR. just leaving this here for the next poor sap that touches gmic =)

# opencv5/opencv2 & qt & X11 conflict and namestep on 'Status' for enums then c 'define'
# https://github.com/opencv/opencv/issues/7113
# also a 'None' namestep between qt and X11
# gmic's Makefile/cmake build seems to half work.
# but fails in weird ways, like un/re-defining the namesteps
# or c/cxxflags not being picked up inside Makefile->cmake/qmake.
# this isn't helped by the fact that the cmake build tries to look for gmic, which the
# distro build is building and doesn't have yet, and tries to fall back to static libs
# which just further exacerbates and confuses gmic's whole multi-package build.
#
# tldr
# the gmic 'src/Makefile' technically has something for qt/gimp/zart - but
# swallows xbps-src's cxxflags, and throws things into disarray

@zlice
zlice force-pushed the opencv5 branch 2 times, most recently from d642d64 to 562ec8a Compare November 23, 2026 19:08
@zlice zlice changed the title opencv: update to 5.0.0 opencv: update to 5.1.0 Nov 23, 2026
@zlice
zlice force-pushed the opencv5 branch 2 times, most recently from f04fd90 to 3545365 Compare November 24, 2026 00:10
@zlice

zlice commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

apparently... within the last week, gmic just totally removed the 4.0.7 tar and only 4.0.8 is available. was able to build because sources were downloaded. that sounds like it would make updates mandatory, revbumps be damned. https://github.com/GreycLab/gmic/releases/tag/v.4.0.8 - 4 days ago... same sha, going to use this i guess.

also johnny just updated spectacle an hour ago as this was building.

@zlice
zlice force-pushed the opencv5 branch 3 times, most recently from 7314d75 to fceeff6 Compare November 24, 2026 13:28
@zlice
zlice force-pushed the opencv5 branch 3 times, most recently from d0fa3bf to 5b0558e Compare November 24, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant