File: Fix_detection_tensorflow-lite.patch

package info (click to toggle)
libcamera 0.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,488 kB
  • sloc: cpp: 85,656; python: 18,099; ansic: 12,763; sh: 1,309; makefile: 60
file content (16 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix detection of system tensorflow-lite by relying on the
 find_library function as fallback detection mechanism.
Author: Dylan Aïssi <daissi@debian.org>

--- a/src/ipa/rpi/controller/meson.build
+++ b/src/ipa/rpi/controller/meson.build
@@ -33,6 +33,9 @@
 ]
 
 tflite_dep = dependency('tensorflow-lite', required : get_option('rpi-awb-nn'))
+if not tflite_dep.found()
+    tflite_dep = cc.find_library('tensorflow-lite', required: get_option('rpi-awb-nn'))
+endif
 
 if tflite_dep.found()
     rpi_ipa_controller_sources += files([