[問題] spca5xx make錯誤?

看板Linux作者 (從數學發現心世界)時間13年前 (2012/04/29 20:40), 編輯推噓0(005)
留言5則, 3人參與, 最新討論串1/3 (看更多)
root@debian:/home/user/Downloads/spca5xx-20060501# make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/home/user/Downloads/spca5xx-20060501 CC=cc modules make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-686-bigmem' /usr/src/linux-headers-2.6.32-5-common/scripts/Makefile.build:49: *** CFLAGS was changed in "/home/user/Downloads/spca5xx-20060501/Makefile". Fix it to use EXTRA_CFLAGS. Stop. make[3]: *** [_module_/home/user/Downloads/spca5xx-20060501] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686-bigmem' make: *** [default] Error 2 不能編譯是哪個檔案或路徑需要修改? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.255.12.29

04/29 21:40, , 1F
我對此軟體不熟,單從錯誤訊息來看,它抱怨 ../spca5xx..
04/29 21:40, 1F

04/29 21:40, , 2F
/Makefile 裏面動到 CFLAGS, 訊息建議說,把想要的變更放
04/29 21:40, 2F

04/29 21:41, , 3F
EXTRA_CFLAGS,而不要直接更動 CFLAGS
04/29 21:41, 3F

04/30 08:07, , 4F
試看看 : KBUILD_NOPEDANTIC=1 make
04/30 08:07, 4F

04/30 13:25, , 5F
這個結果是一樣的哦! thx
04/30 13:25, 5F
文章代碼(AID): #1FdJQcHT (Linux)
文章代碼(AID): #1FdJQcHT (Linux)