If you did not add source files when you created the component, you can add it after by using the following steps. You can also add missing source files or include files to resolve any build errors when building the AI Engine component.
- Right-click the
sourcesfolder for importing in the Explorer window, select - Select the file or folder, or hold Shift and select multiple files or folders
- Click Open
Tip: Files and folders are imported directly
into the AI Engine component folder in the open
workspace.
If the sources you specified in the graph header contain the relative path to
the kernel sources, there is no need to add each sub-directory to the config file.
If there is no relative path, you must add the include file manually. In the
following code, all kernel paths are relative to the top directory, so adding the
kernel folder is
sufficient:
adf::source(interpolator) = "kernels/interpolators/hb27_2i.cc";
adf::source(clip) = "kernels/polar_clip.cpp";
adf::source(classify) = "kernels/classifiers/classify.cc";
The general recommendation is to add all the sub-directories manually to the config file to ensure completeness. Right-click on any directory under sources in Component Explorer, select copy path, and paste it into the config file. Use the same syntax as existing included files.