Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imx-gpu-viv: Fix EGL dependencies #1747

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

thochstein
Copy link
Contributor

For each of the EGL rendering APIs, the EGL implementation does a dlopen for the unversioned library link to the rendering API implementation. So, a runtime dependency is needed for the -dev package of each such rendering API implementation.

Fixes: #1744

Copy link
Member

@otavio otavio left a comment

Choose a reason for hiding this comment

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

We should move the required .so file to the main package instead of "rdepends" on -dev.

There are no behavioral changes here, just a cleanup to make packaging
lines consistent.

Note that SOLIBS and SOLIBSDEV are set the same as ".so", but the
former is used for main packages and the latter for -dev packages.

Also, drop ${libdir}/libGLESv1*${SOLIBS} from FILES:libgles1-imx-dev.
The rule has no effect since it is also included, correctly, in the
main package FILES:libgles1-imx.

Signed-off-by: Tom Hochstein <[email protected]>
Running tiger from imx-gpu-viv-demos does fail due to the missing -dev
package link libOpenVG.so.

The problem is the EGL implementation opens each rendering API via
dlopen of the unversioned library link. For GLES1 and GLES2, this
implementation is handled by including the unversioned library links in
their main packages. Do the same for the remaining rendering APIs GL
and OpenVG.

Fixes: #1744
Diagnosed-by: Benjamin Lemouzy <[email protected]>
Signed-off-by: Tom Hochstein <[email protected]>
@thochstein thochstein changed the title imx-gpu-viv: Add runtime dependencies for EGL imx-gpu-viv: Move libGL.so and libOpenVG.so to main package Feb 7, 2024
@thochstein thochstein changed the title imx-gpu-viv: Move libGL.so and libOpenVG.so to main package imx-gpu-viv: Fix EGL dependencies Feb 7, 2024
Copy link
Member

@angolini angolini left a comment

Choose a reason for hiding this comment

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

good catch

@otavio otavio merged commit 9dfbf66 into Freescale:master Feb 8, 2024
@thochstein thochstein deleted the imx-gpu-viv branch February 8, 2024 13:31
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.

imx-gpu-viv-demos: differences between linux-imx and linux-fslc-imx kernels
4 participants