在ccs8.2.0环境下对目标板EVMK2G的官方工程文件MCASP_Audio_evmK2G_armExampleProject进行编译时出现了如下错误:fatal error:std.h:No such file or directory。下面是工程的编译过程:
**** Build of configuration Debug for project MCASP_Audio_evmK2G_armExampleProject ****
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -OBuilding file: "C:/ti/pdk_k2g_1_0_12/packages/ti/drv/mcasp/example/evmK2G/armv7/bios/AudioLoopback.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_50_08_24_core/xs" –xdcpath="C:/ti/bios_6_73_01_01/packages;C:/ti/pdk_k2g_1_0_12/packages;C:/ti/edma3_lld_2_12_05_30C/packages;C:/ti/ipc_3_50_03_04/packages;C:/ti/ndk_3_40_01_01/packages;C:/ti/uia_2_30_01_02/packages;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmTCI66AK2G02 -r debug -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "C:/ti/pdk_k2g_1_0_12/packages/ti/drv/mcasp/example/evmK2G/armv7/bios/AudioLoopback.cfg"
cla15fg package/cfg/AudioLoopback_pa15fg.c …
subdir_rules.mk:12: recipe for target 'build-206349055-inproc' failed
In file included from package/cfg/AudioLoopback_pa15fg.c:43:0:
C:/ti/pdk_k2g_1_0_12/packages/ti/csl/Settings.h:50:17: fatal error: std.h: No such file or directory
#include <std.h>
^
compilation terminated.
xdctools_3_50_08_24_core\gmake.exe: *** [package/cfg/AudioLoopback_pa15fg.oa15fg] Error 1
js: "C:/ti/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-206349055-inproc] Error 1
gmake: *** [build-206349055] Error 2
subdir_rules.mk:9: recipe for target 'build-206349055' failed
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
工程为官方原版例程,没有经过修改,且includes已经包含了路径C:\ti\xdctools_3_50_08_24_core\packages\xdc\std.h。请问是哪里出了问题?
Nancy Wang:
直接将std.h添加到工程里有用吗?
ian:
回复 Nancy Wang:
我尝试将std.h直接放在工程中进行编译,问题并没有解决。另外当我编译另一官方例程MCASP_DeviceLoopback_evmK2G_armExampleProject时出现了一样的错误。