完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
我在CCSv6.1.2(linux)中导入了例程EMIF工程,编译时报错,找不到三个头文件以及一些其他问题,具体3个头文件是K2_Board_Init.h,K2_common.h,KeyStone_EMIF16_init.h,我想应该是include path中没有找到这3个头文件的路径,请问应该如何添加这三个头文件的路径?下面附上具体报错的信息,以及目前我的include path配置信息。
**** Build of configuration 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 **** |
|
相关推荐
4个回答
|
|
如果工程里是链接的文件,你可以试试删掉重现链接一下,应急的方法是直接把该文件拷贝过来。
include选项下,看你的ORIGINAL_PROJECT_ROOT有没有正确定义,可以试试先把绝对路径加进去看看编译是否出错。 |
|
|
|
hdfsf 发表于 2018-6-21 16:41 你好 我在该工程的文件夹中没有找到那三个头文件,K2_Board_Init.h,K2_common.h,KeyStone_EMIF16_init.h,如下图所示,还是这三个头文件在其他路径下? 我的ORIGINAL_PROJECT_ROOT定义如图所示,在该工程的文件夹里也找不到这三个头文件,所以也不知道绝对路径。 |
|
|
|
wu58518 发表于 2018-6-21 16:55 这几个文件应该是在common文件夹下,最好再确认下下载包里有没有 |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
336 浏览 1 评论
529 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
774 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
651 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1130 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
60浏览 29评论
155浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
252浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
202浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
59浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 17:13 , Processed in 0.926406 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号