我在CCSv6.1.2(linux)中导入了例程EMIF工程,编译时报错,找不到三个头文件以及一些其他问题,具体3个头文件是K2_Board_Init.h,K2_common.h,KeyStone_EMIF16_init.h,我想应该是include path中没有找到这3个头文件的路径,请问应该如何添加这三个头文件的路径?下面附上具体报错的信息,以及目前我的include path配置信息。
**** Build of configura
tion Debug for project EMIF ****
/home/lzh/ccsv6/ccsv6/utils/bin/gmake -k all
gmake: *** 没有规则可以创建“src/
ARMv7_CPU.o”.需要的目标“/root/exm/common/ARMv7_CPU.s”
gmake: *** 没有规则可以创建“src/CP15.o”.需要的目标“/root/exm/common/CP15.s”
Building file: ../src/EMIF_FLASH_mem_test.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/EMIF_FLASH_mem_test.d" -MT"src/EMIF_FLASH_mem_test.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/EMIF_FLASH_mem_test.o" "../src/EMIF_FLASH_mem_test.c"
../src/EMIF_FLASH_mem_test.c:7:23: fatal error: K2_common.h: No such file or directory
#include "K2_common.h"
^
compilation terminated.
gmake: *** [src/EMIF_FLASH_mem_test.o] 错误 1
Building file: ../src/EMIF_NAND_FLASH_test.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/EMIF_NAND_FLASH_test.d" -MT"src/EMIF_NAND_FLASH_test.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/EMIF_NAND_FLASH_test.o" "../src/EMIF_NAND_FLASH_test.c"
../src/EMIF_NAND_FLASH_test.c:33:27: fatal error: K2_Board_Init.h: No such file or directory
#include "K2_Board_Init.h"
^
compilation terminated.
gmake: *** [src/EMIF_NAND_FLASH_test.o] 错误 1
Building file: ../src/EMIF_NOR_FLASH_test.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/EMIF_NOR_FLASH_test.d" -MT"src/EMIF_NOR_FLASH_test.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/EMIF_NOR_FLASH_test.o" "../src/EMIF_NOR_FLASH_test.c"
../src/EMIF_NOR_FLASH_test.c:30:27: fatal error: K2_Board_Init.h: No such file or directory
#include "K2_Board_Init.h"
^
compilation terminated.
gmake: *** [src/EMIF_NOR_FLASH_test.o] 错误 1
Building file: ../src/EMIF_main.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/EMIF_main.d" -MT"src/EMIF_main.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/EMIF_main.o" "../src/EMIF_main.c"
../src/EMIF_main.c:29:23: fatal error: K2_common.h: No such file or directory
#include "K2_common.h"
^
compilation terminated.
gmake: *** [src/EMIF_main.o] 错误 1
gmake: *** 没有规则可以创建“src/K2_Board_Init.o”.需要的目标“/root/exm/common/K2_Board_Init.c”
gmake: *** 没有规则可以创建“src/K2_DDR_Init.o”.需要的目标“/root/exm/common/K2_DDR_Init.c”
gmake: *** 没有规则可以创建“src/K2_common.o”.需要的目标“/root/exm/common/K2_common.c”
gmake: *** 没有规则可以创建“src/KeyStone_EMIF16_Init.o”.需要的目标“/root/exm/common/KeyStone_EMIF16_Init.c”
gmake: *** 没有规则可以创建“src/common_test.o”.需要的目标“/root/exm/common/common_test.c”
gmake: *** 没有规则可以创建“src/startup_A15.o”.需要的目标“/root/exm/common/startup_A15.s”
Building file: ../src/FLASH/flash_nand.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/FLASH/flash_nand.d" -MT"src/FLASH/flash_nand.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/FLASH/flash_nand.o" "../src/FLASH/flash_nand.c"
../src/FLASH/flash_nand.c:32:34: fatal error: KeyStone_EMIF16_init.h: No such file or directory
#include "KeyStone_EMIF16_init.h"
^
compilation terminated.
gmake: *** [src/FLASH/flash_nand.o] 错误 1
Building file: ../src/FLASH/flash_nor.c
Invoking: GNU Compiler
"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -D__ARMv7 -DK2E_EVM -DDEVICE_K2E -I"/home/lzh/ccsv6/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"/root/exm/EMIF/src" -I"/root/exm/common" -I"/root/exm/EMIF/src/FLASH" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages/ti/csl" -I"/home/lzh/ccsv6/pdk_keystone2_3_01_04_07/packages" -O3 -Wall -specs="rdimon.specs" -MMD -MP -MF"src/FLASH/flash_nor.d" -MT"src/FLASH/flash_nor.d" -std=c99 -funsafe-math-optimizations -fprefetch-loop-arrays -o"src/FLASH/flash_nor.o" "../src/FLASH/flash_nor.c"
../src/FLASH/flash_nor.c:23:34: fatal error: KeyStone_EMIF16_init.h: No such file or directory
#include "KeyStone_EMIF16_init.h"
^
compilation terminated.
gmake: *** [src/FLASH/flash_nor.o] 错误 1
gmake: 由于错误目标“all”并未重新创建。
**** Build Finished ****
0