0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 04:35:37 +00:00
Files
termux-packages/x11-packages/opencv/fix-build-with-qt-6.9.patch
Robert Kirkman 48bc566d58 fix(x11/opencv): fix build with Qt 6.9 and migrate to libprotobuf
- fix build with Qt 6.9, issue tracked upstream here: https://github.com/opencv/opencv/issues/27223
- migrate to `libprotobuf`
2025-05-01 14:23:04 -05:00

16 lines
617 B
Diff

Patch by badshah400 in https://github.com/opencv/opencv/issues/27223
to fix:
ninja: error: build.ninja:13215: bad $-escape (literal $ must be written as $$)
--- a/modules/highgui/CMakeLists.txt
+++ b/modules/highgui/CMakeLists.txt
@@ -125,7 +125,7 @@ elseif(HAVE_QT)
endif()
foreach(dt_dep ${qt_deps})
- add_definitions(${Qt${QT_VERSION_MAJOR}${dt_dep}_DEFINITIONS})
+ link_libraries(${Qt${QT_VERSION_MAJOR}${dt_dep}})
include_directories(${Qt${QT_VERSION_MAJOR}${dt_dep}_INCLUDE_DIRS})
list(APPEND HIGHGUI_LIBRARIES ${Qt${QT_VERSION_MAJOR}${dt_dep}_LIBRARIES})
endforeach()