makefile出错,直接输入没问题,高手来

sunvin 2012-09-07 10:49:02
使用makefile出错,但直接输入单条编译是没有问题的。

windows CMD模式下直接输入可以编译成功:
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -g3 -MD -MP -MQ common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.o -O1 -D ACCESS_USB_ENABLED -D ARM_MATH_CM4=true -D BOARD=SAM4S_EK -D -D DEF_TOUCH_QDEBUG_ENABLE_AT=0 -D DEF_TOUCH_QDEBUG_ENABLE_QM=0 -D DEF_TOUCH_QDEBUG_ENABLE_QTA=0 -D DEF_TOUCH_QDEBUG_ENABLE_QTB=0 -D QTOUCH_SLIDER_REVERSED -D QT_DELAY_CYCLES=5 -D QT_NUM_CHANNELS=32 -D SNS1=C -D SNS2=A -D SNSK1=C -D SNSK2=A -D UDD_ENABLE -D _DEBUG_INTERFACE_ -D -D -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -std=gnu99 -ffunction-sections -fdata-sections -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wwrite-strings -Wsign-compare -Waggregate-return -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wcast-align --param max-inline-insns-single=500 -Dprintf=iprintf -c ../../../../../common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.c -o common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.o

但通过makefile,
@$(CC) -c $(CFLAGS) $< -o $@
echo出来内容和上面一样,但提示
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
make: *** [common/components/memory/nand_flash/nand_flash_ebi/nand_flash_ecc_sw.
o] Error 1

有哪些地方会出问题呢?
...全文
182 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhengmeifu 2012-09-11
  • 打赏
  • 举报
回复
同意楼上观点,交叉编译器路径错误,设置一下工程属性吧。
bestman 2012-09-10
  • 打赏
  • 举报
回复
你的交叉编译器没有识别出来,可能是你./configure的时候没有配置正确

21,597

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧