Freescale / libimxdmabuffer

Library for allocating and managing physically contiguous memory ("DMA memory" or "DMA buffers") on i.MX devices
GNU Lesser General Public License v2.1
19 stars 12 forks source link

Failing to build caused by missing header #6

Closed Donnyp751 closed 1 year ago

Donnyp751 commented 1 year ago

Hello, I'm having trouble getting the libimxdmabuffer to compile for the IMX6Q as my toolchain sysroot doesn't seem to contain the linux/mxcfb.h header file. I'm wondering how to obtain this or resolve this error to get the package building? It looks like this issue had cropped up before but I couldn't find a resolution publicly.

Command being ran to build: ./waf configure --prefix=$PREFIX --imx-linux-headers-path=/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include

Error encountered: Checking for header linux/mxcfb.h : not found Could not find linux/mxcfb.h in path "/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include" specified by --imx-linux-headers-path

NIKovachev commented 1 year ago

Hi, it's an old issue but try to add DEPENDS = "linux-imx-headers" in your libimxdmabuffer recipe file. This should solve it.

Regards, Nik Kovachev

dv1 commented 1 year ago

I'm changing the check, since mxcfb.h is no longer included in some sysroots. I'm closing this for now though, since it is a BSP issue. If you still have problems, and they are caused by libimxdmabuffer issues, please open a new issue.