Skip to content

Conversation

@quic-ptak
Copy link
Contributor

@quic-ptak quic-ptak commented Dec 2, 2025

Dynamic OpenCV packages such as libopencv_core, libopencv_fastcv, and libopencv_imgproc now include FastCV DSP functionality. These components require libfastcvopt.so as the entry point for the pipeline, which is provided by qcom-fastcv-binaries.

koenkooi
koenkooi previously approved these changes Dec 2, 2025
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Test run workflow

Test jobs for commit 2d2c840

@quic-ptak quic-ptak changed the title Update OpenCV recipe to apply qcom-fastcv-binaries as an RDEPENDS for opencv-apps on qcom aarch64. opencv: move qcom-fastcv-binaries RDEPENDS to opencv-apps for qcom aarch64 Dec 2, 2025
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Test run workflow

Test jobs for commit 9d31a57

@test-reporting-app
Copy link

test-reporting-app bot commented Dec 2, 2025

Test Results

 14 files  ±0   28 suites  +1   36m 19s ⏱️ - 7m 57s
 50 tests  - 2   50 ✅ +2  0 💤 ±0  0 ❌  - 4 
304 runs  +4  304 ✅ +8  0 💤 ±0  0 ❌  - 4 

Results for commit 2d85e52. ± Comparison against base commit 376521a.

This pull request removes 2 tests.
lava ‑ auto-login-action
lava ‑ minimal-boot

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Test run workflow

Test jobs for commit 9d31a57

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Test run workflow

Test jobs for commit 9d31a57

@quic-ptak quic-ptak changed the title opencv: move qcom-fastcv-binaries RDEPENDS to opencv-apps for qcom aarch64 opencv: add DEPENDS on qcom-fastcv-binaries for qcom aarch64 builds Dec 5, 2025
@quic-ptak quic-ptak force-pushed the master branch 2 times, most recently from f259f98 to 2d85e52 Compare December 8, 2025 06:12
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Test run workflow

Test jobs for commit f259f98

@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Test run workflow

Test jobs for commit 2d85e52

lumag
lumag previously approved these changes Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Test run workflow

Test jobs for commit 2d85e52

koenkooi
koenkooi previously approved these changes Dec 9, 2025
Copy link
Contributor

@koenkooi koenkooi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. For future recipes, a comment next to the DEPENDS line explaining about OE shlib resolution could avoid confusion. But that isn't needed for this to go in.

Dynamic OpenCV packages such as libopencv_core, libopencv_fastcv, and
libopencv_imgproc now include FastCV DSP functionality. These components
require libfastcvopt.so as the entry point for the pipeline, which is
provided by qcom-fastcv-binaries.

Signed-off-by: Pulkit Singh Tak <[email protected]>
@lumag
Copy link
Contributor

lumag commented Dec 9, 2025

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

@quic-ptak
Copy link
Contributor Author

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

In our opinion, OpenCV recipe should contain general configs only and not any vendor specific changes. Since FastCV works only with QCOM specific boards, we ought to mention all FastCV based configs (DEPENDS, RDEPENDS) in meta-qcom based bbappend .

@quic-ptak
Copy link
Contributor Author

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

If possible, can we do it in next PR? We have a deadline approaching.

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

If possible, can we do it in next PR? We have a deadline approaching.

In which PR? meta-oe uses emails for patches.

@quic-ptak
Copy link
Contributor Author

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

If possible, can we do it in next PR? We have a deadline approaching.

In which PR? meta-oe uses emails for patches.

I mean, once we merge the packageconfig patch to meta-oe, we can raise another PR to remove DEPENDS and RDEPENDS from this .bbappend

@quic-ptak
Copy link
Contributor Author

It probably should have come up earlier during review. Should this be handled in the main opencv recipe instead? I'm fine with enabling 'fastcv' in our bbappend, but the code for the PACKAGECONFIG should be probably a part of the main recipe.

In our opinion, OpenCV recipe should contain general configs only and not any vendor specific changes. Since FastCV works only with QCOM specific boards, we ought to mention all FastCV based configs (DEPENDS, RDEPENDS) in meta-qcom based bbappend .

Any thoughts on this @lumag

@quic-ptak
Copy link
Contributor Author

also adding RDEPENDS to libfastcvopt1 is causing below QA errors:

ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-core rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]
2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-imgproc rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]
2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-fastcv rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]

which are resolved when we do RDEPENDS to qcom-fastcv-binaries

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

also adding RDEPENDS to libfastcvopt1 is causing below QA errors:

ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-core rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-imgproc rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-fastcv rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]

which are resolved when we do RDEPENDS to qcom-fastcv-binaries

Add qcom-fastcv-binaries to DEPENDS

@quic-ptak
Copy link
Contributor Author

also adding RDEPENDS to libfastcvopt1 is causing below QA errors:
ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-core rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-imgproc rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-fastcv rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]
which are resolved when we do RDEPENDS to qcom-fastcv-binaries

Add qcom-fastcv-binaries to DEPENDS

But to provide FastCV DSP functionality, we also need libfastcvopt.so for entry point provided by "qcom-fastcv-binaries" asmentioned in previous discussions. Can we also RDEPENDS on "qcom-fastcv-binaries" ?

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

also adding RDEPENDS to libfastcvopt1 is causing below QA errors:
ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-core rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-imgproc rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-fastcv rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]
which are resolved when we do RDEPENDS to qcom-fastcv-binaries

Add qcom-fastcv-binaries to DEPENDS

But to provide FastCV DSP functionality, we also need libfastcvopt.so for entry point provided by "qcom-fastcv-binaries" asmentioned in previous discussions. Can we also RDEPENDS on "qcom-fastcv-binaries" ?

There is no such package

@quic-ptak
Copy link
Contributor Author

also adding RDEPENDS to libfastcvopt1 is causing below QA errors:
ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-core rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-imgproc rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps] 2025-12-09 15:20:53 - ERROR - ERROR: opencv-4.12.0-r0 do_package_qa: QA Issue: libopencv-fastcv rdepends on libfastcvopt1, but it isn't a build dependency? [build-deps]
which are resolved when we do RDEPENDS to qcom-fastcv-binaries

Add qcom-fastcv-binaries to DEPENDS

But to provide FastCV DSP functionality, we also need libfastcvopt.so for entry point provided by "qcom-fastcv-binaries" asmentioned in previous discussions. Can we also RDEPENDS on "qcom-fastcv-binaries" ?

There is no such package

in our local workspace the package is there :

ptak@hu-ptak-hyd:/local/mnt/workspace/ptak/QSBT/qli_dsp/build$ bitbake -e qcom-fastcv-binaries | grep ^PACKAGES=
PACKAGES="qcom-fastcv-binaries-src qcom-fastcv-binaries-dbg qcom-fastcv-binaries-staticdev qcom-fastcv-binaries-dev qcom-fastcv-binaries-doc qcom-fastcv-binaries-locale qcom-fastcv-binaries-dsp qcom-fastcv-binaries qcom-fastcv-binaries-qcs615-ride-dsp qcom-fastcv-binaries-qcs8300-ride-dsp qcom-fastcv-binaries-sa8775p-ride-dsp qcom-fastcv-binaries-thundercomm-rb3gen2-dsp "

Only during creation of ipks the name is being changed to libfastcvopt1 but original package still remains.

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

Only during creation of ipks the name is being changed to libfastcvopt1 but original package still remains.

You basically wrote that there is no such package. It gets renamed. I will send a patch to meta-oe.

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

Only during creation of ipks the name is being changed to libfastcvopt1 but original package still remains.

You basically wrote that there is no such package. It gets renamed. I will send a patch to meta-oe.

And I was wrong here. insane.bbclass doesn't resolve runtime-renamed packages.

@lumag
Copy link
Contributor

lumag commented Dec 10, 2025

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.

4 participants