Re: Error while adding " libimxvpuapi2" and "gstreamer" pkgs in my local.conf for imx8mplus


Khem Raj
 

On Mon, Jan 30, 2023 at 6:34 PM Takayasu Ito <ito@...> wrote:

Hi Nikita

The problem is that in the imx-vpu-hantro recipe, the encoder library,
libhantro_h1.so, is not installed for mx8mp, but is installed for mx8mm.

In the libimxvpuapi2 recipe, imx8mp specifies imx8mm in IMX_PLATFORM.
Therefore, the _encoder variable used in the waf wsctipt file is set to
true, so a check is made for the presence of hantro_h1, resulting in an
error.
At this time, libimxvpuapi2 support for imx8m is imx8m and imx8mm, so by
changing the setting to one for imx8m, which does not use a hardware
encoder, the build for imx8mp will pass.

Create the libimxvpuapi2_%.bbappen file and add
IMX_PLATFOEM:mx8mp-nxp-bsp = "imx8m"
I think this is perhaps in right direction but I would suggest

IMX_PLATFORM:mx8mp-nxp-bsp = "imx8mm"



Translated with www.DeepL.com/Translator (free version)
On 2023/01/30 20:19, Nikita Gupta wrote:
Hello Takayasu
Thanks for your suggestion, but after implementing i am facing same
thing (see attached image).

Regards
Nikita Gupta

On Fri, 27 Jan 2023 at 17:55, Takayasu Ito <ito@...
<mailto:ito@...>> wrote:

Hi Nikita

> *IMAGE_INSTALL:append = "gstreamer1.0 gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad

If you do not put a space after the double quotation marks, the
package names before and after will be attached to each other
during the merge.

See
https://docs.yoctoproject.org/bitbake/2.2/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-override-style-syntax <https://docs.yoctoproject.org/bitbake/2.2/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-override-style-syntax>

On 2023/01/27 20:48, Nikita Gupta wrote:
> Hello List,
>
> As i earlier mentioned that i want to do some customisation in
local.conf by adding few pkgs (below).
> *IMAGE_INSTALL:append = "gstreamer1.0 gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
> gstreamer1.0-plugins-ugly gstreamer1.0-libav imx-vpuwrap
imx-gpu-g2d imx-gpu-viv gstreamer1.0-plugins-imx imx-gst1.0-plugin"
> LICENSE_FLAGS_ACCEPTED = " commercial"
> IMAGE_INSTALL:append = "kernel-devsrc"
> IMAGE_INSTALL:append = "gstreamer1.0-rtsp-server
gst-variable-rtsp-server"
> IMAGE_INSTALL:append = " gtk+3"
> CORE_IMAGE_EXTRA_INSTALL += " opencv libopencv-core-dev
libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev
> libopencv-ml-dev"
> #LICENSE_FLAGS_WHITELIST = " commercial"
> IMAGE_ROOTFS_EXTRA_SPACE = "1048576 "*
> and iafter bitbake m getting below errors.
>
> nikita@nikita-HP-Laptop-15-bs0xx:~/Yocto/imx-yocto-bsp$ *bitbake
imx-image-full*
> Loading cache: 100%
|##########################################################################################################|
> Time: 0:00:01
> Loaded 4736 entries from dependency cache.
> Parsing recipes: 100%
|########################################################################################################|
> Time: 0:00:02
> Parsing of 3190 .bb files complete (3188 cached, 2 parsed). 4738
targets, 262 skipped, 3 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> ERROR: Nothing RPROVIDES
'imx-gst1.0-pluginkernel-devsrcgstreamer1.0-rtsp-server' (but
>
/home/nikita/Yocto/imx-yocto-bsp/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb <http://imx-image-full.bb>
> <http://imx-image-full.bb <http://imx-image-full.bb>> RDEPENDS on
or otherwise requires it)
> NOTE: Runtime target
'imx-gst1.0-pluginkernel-devsrcgstreamer1.0-rtsp-server' is
unbuildable, removing...
> Missing or unbuildable dependency chain was:
['imx-gst1.0-pluginkernel-devsrcgstreamer1.0-rtsp-server']
> ERROR: Required build target 'imx-image-full' has no buildable
providers.
> Missing or unbuildable dependency chain was: ['imx-image-full',
'imx-gst1.0-pluginkernel-devsrcgstreamer1.0-rtsp-server']
>
> Summary: There were 2 ERROR messages, returning a non-zero exit code.
>
> These packages are needed i can not remove So please help me what
can i do in this.
>
> Thanks in Advance.
>
> On Fri, 27 Jan 2023 at 17:00, Nikita Gupta
<nikitagupta2509@... <mailto:nikitagupta2509@...>
<mailto:nikitagupta2509@...
<mailto:nikitagupta2509@...>>> wrote:
>
> Hello Alex
>
> When i run bitbake libimxvpuapi2 and it shows below error
(images attached).
> Can you please tell me that is "libimxvpuapi2" compatible
with imx8mplus board?
>
> Thanks in Advance
>
> On Fri, 27 Jan 2023 at 14:35, Alexander Kanavin
<alex.kanavin@... <mailto:alex.kanavin@...>
<mailto:alex.kanavin@... <mailto:alex.kanavin@...>>> wrote:
>
> The screenshot indicates the problem originates in
libimxvpuapi2
> recipe. So you should get more information by running
'bitbake
> libimxvpuapi2'.
>
> Alex
>
> On Fri, 27 Jan 2023 at 07:46, Nikita Gupta
<nikitagupta2509@... <mailto:nikitagupta2509@...>
<mailto:nikitagupta2509@...
<mailto:nikitagupta2509@...>>> wrote:
> >
> > Hello Alexander
> >
> > I am not getting your query . Can u please explain
your question?
> >
> > Regards
> > Nikita Gupta
> >
> > On Wed, Jan 25, 2023, 18:35 Alexander Kanavin
<alex.kanavin@... <mailto:alex.kanavin@...>
<mailto:alex.kanavin@... <mailto:alex.kanavin@...>>> wrote:
> >>
> >> What happens if you bitbake libimx… thingy directly?
> >>
> >> Alex
> >>
> >> On Wed 25. Jan 2023 at 13.47, Nikita Gupta
<nikitagupta2509@... <mailto:nikitagupta2509@...>
<mailto:nikitagupta2509@...
<mailto:nikitagupta2509@...>>> wrote:
> >>>
> >>> Hello list,
> >>>
> >>> I was just making image for imx8mplus by adding few
pkgs in my local.conf but encountered few errors so i am here
> for your help.
> >>> I added below pkgs in my local.conf file
> >>>
> >>> IMAGE_INSTALL:append = "gstreamer1.0
gstreamer1.0-plugins-base gstreamer1.0-plugins-good
gstreamer1.0-plugins-bad
> gstreamer1.0-plugins-ugly gstreamer1.0-libav imx-vpuwrap
imx-gpu-g2d imx-gpu-viv gstreamer1.0-plugins-imx
> imx-gst1.0-plugin"
> >>> LICENSE_FLAGS_WHITELIST = "commercial"
> >>> IMAGE_INSTALL:append = "kernel-devsrc"
> >>> IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server
gst-variable-rtsp-server"
> >>> IMAGE_INSTALL:append = " gtk+3"
> >>> CORE_IMAGE_EXTRA_INSTALL += " opencv
libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev
> libopencv-objdetect-dev libopencv-ml-dev"
> >>> IMAGE_ROOTFS_EXTRA_SPACE = "1048576 "
> >>>
> >>> So my local.conf file now looks like this
> >>> So i am getting below error after baking my recipe (
Attached image).
> >>>
> >>> Please tell what should I need to do to resolve this.
> >>>
> >>> Thanks in advance
> >>>
> >>>
> >>>
>
>
>
>
>

--
Takayasu Ito
Solution Department, Lineo Solutions, Inc.
https://www.lineo.co.jp/english/ <https://www.lineo.co.jp/english/>
Email: ito@... <mailto:ito@...>
Yocto Project Ambassador
--
Takayasu Ito
Yocto Project Ambassador
Solution Department Lineo Solutions, Inc.
https://www.lineo.co.jp/english/
Email: ito@...



Join {yocto@lists.yoctoproject.org to automatically receive all group messages.