I built the Yocto Build SDK environment on my Ubuntu 16.04 PC as mentioned in the Yocto Project User's Guide and the also referred to the Linux User's Guide.
While building the demo OpenCL application DemoApps/OpenCL/Info from the DemoFramework (GitHub - NXPmicro/gtec-demo-framework), using the following command:
FslBuild.py --Variants [WindowSystem=Wayland] --BuildThreads 2
I am getting the following error:
source/FslDemoApp/Util/Graphics/Service/ImageLibrary/ImageLibraryServiceDevIL.cpp:48:10: fatal error: IL/il.h: No such file or directory
Kindly let me know how it could be resolved.
Thanks and regards
I am having the same error. How did you solve the problem? The answer by Bio_TICFSL looks like Ubuntu solution using apt-get. I need to do Building by Yocto.
The apt-get solution is not useful.. It only configures on the Ubuntu side.. Whereas, we need the headers within the Yocto SDK, since we are doing a Yocto based build.
Hi Takashi san
This is a very frustrating problem.. Luckily, I could solve it after many days of work.
Let me explain how I resolved it, here:
Reason for the error:
Since we are doing a Yocto Build, we need a Yocto build environment configured within the Ubuntu Terminal session, where we are running the FslBuild.py script. It's mentioned in this link:
In the above link, it's mentioned that you need to install the SDK by using the following command:
But the above shell script is no longer readily available for download anywhere on the internet. So we have to build this SDK by ourselves, for the appropriate hardware that we are using and install it before we can run FslBuild.py.
The IL/il.h headers are available within this SDK that are compatible for our application.
Build the SDK code and generate the SDK installer script (shell script) by referring to :
and also the i.MX_Yocto_Project_User's_Guide.pdf. [Use the above link as a reference, to go to the appropriate sections within the Yocto Users' Guide document. This will be much more easier. Follow the setup steps and board configuration names as per the Users' Guide document.]
- Build the Yocto SDK for the hardware board that you are using.
- This will generate a SDK installer shell script.
- Use this script to install the SDK.
- After installation, setup the environment variables within the Ubuntu Terminal session using a command like this:
Configure the following environment variables too (ROOTFS path should be updated as per your system path):
export FSL_PLATFORM_NAME=Yocto export ROOTFS=~/sdk/4.9.51-mx8-beta/sysroots/aarch64-poky-linux
After all the above are done, you may proceed with using FslBuild.py script to build your application.
Hope this helps!
Thanks for your advice.
I found the header IL/il.h under the "sysroots-components" directory of Yocto BUILD_DIR.
I did copy it and some other headers, library files to the SDK installed directory then the compile was succeeded.