Steve Green

mxc_ipudev_test sample is missing struct ipu_task

Discussion created by Steve Green on Jan 27, 2012
Latest reply on Jul 4, 2012 by Steve Green

Dear all, I have a problem building the mxc_ipudev_test sample in the imx-test suite, looks like there is an undefined structure.

I've tried a complete re-unpack of the imx_test using:
./ltib -p imx-test -m prep

Then a build using ./ltib yields loads of errors:

make -C mxc_ipudev_test
make[2]: Entering directory `/home/revo/ltib/rpm/BUILD/imx-test-11.09.01/test/mxc_ipudev_test'
mkdir -p /home/revo/ltib/rpm/BUILD/imx-test-11.09.01/platform/IMX51/
In file included from mxc_ipudev_test.c:35:
mxc_ipudev_test.h:28: error: field 'task' has incomplete type
mxc_ipudev_test.c: In function 'process_cmdline':
mxc_ipudev_test.c:56: error: dereferencing pointer to incomplete type
mxc_ipudev_test.c:56: error: dereferencing pointer to incomplete type
mxc_ipudev_test.c:57: error: dereferencing pointer to incomplete type
mxc_ipudev_test.c:58: error: dereferencing pointer to incomplete type
mxc_ipudev_test.c: In function 'dump_ipu_task':
mxc_ipudev_test.c:110: error: dereferencing pointer to incomplete type
mxc_ipudev_test.c:111: error: dereferencing pointer to incomplete type
............. and many more errors the same.

Looking at file "mxc_ipudev_test.h" line 28 (the first error) it uses an undefined structure "struct ipu_task" which appears to be the root of all these 'incomplete type' errors. But I can't find the declaration of this structure anywhere - I even did a total grep of my hard drive for all files containing the term "ipu_task" but not found. Am I maybe missing an updated header? Thanks.

Outcomes