為了要用IR remote
我裝了debian的lirc-modules-source下來make-kpkg
但出現了錯誤訊息:
- 代碼: 選擇全部
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:52:41: ../drivers/media/video/bttv.h: 沒有此一檔案或目錄
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:53:42: ../drivers/media/video/bttvp.h: 沒有此一檔案或目錄
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:57:2: #error "*******************************************************"
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:58:2: #error " Sorry, this driver needs bttv version 0.7.45 or "
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:59:2: #error " higher. If you are using the bttv package, copy it to "
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:60:2: #error " the kernel "
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:61:2: #error "*******************************************************"
In file included from include/linux/i2c.h:34,
from /usr/src/modules/lirc/drivers/kcompat.h:167,
from /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:64:
include/linux/device.h:418:1: warning: "MODULE_ALIAS_CHARDEV_MAJOR" redefined
In file included from /usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:64:
/usr/src/modules/lirc/drivers/kcompat.h:131:1: warning: this is the location of the previous definition
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:71: error: `BTTV_UNKNOWN' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:97: error: `BTTV_UNKNOWN' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:97: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:97: error: (near initialization for `rcv_infos[0].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:97: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:97: error: (near initialization for `rcv_infos[0]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:98: error: `BTTV_PXELVWPLTVPAK' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:98: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:98: error: (near initialization for `rcv_infos[1].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:98: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:98: error: (near initialization for `rcv_infos[1]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:99: error: `BTTV_PXELVWPLTVPRO' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:99: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:99: error: (near initialization for `rcv_infos[2].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:99: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:99: error: (near initialization for `rcv_infos[2]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:100: error: `BTTV_PV_BT878P_9B' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:100: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:100: error: (near initialization for `rcv_infos[3].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:100: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:100: error: (near initialization for `rcv_infos[3]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:101: error: `BTTV_PV_BT878P_PLUS' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:101: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:101: error: (near initialization for `rcv_infos[4].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:101: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:101: error: (near initialization for `rcv_infos[4]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:102: error: `BTTV_AVERMEDIA' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:102: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:102: error: (near initialization for `rcv_infos[5].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:102: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:102: error: (near initialization for `rcv_infos[5]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:103: error: `BTTV_AVPHONE98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:103: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:103: error: (near initialization for `rcv_infos[6].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:103: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:103: error: (near initialization for `rcv_infos[6]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:104: error: `BTTV_AVERMEDIA98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:104: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:104: error: (near initialization for `rcv_infos[7].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:104: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:104: error: (near initialization for `rcv_infos[7]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:105: error: `BTTV_AVPHONE98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:105: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:105: error: (near initialization for `rcv_infos[8].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:105: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:105: error: (near initialization for `rcv_infos[8]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:107: error: `BTTV_AVERMEDIA98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:107: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:107: error: (near initialization for `rcv_infos[9].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:107: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:107: error: (near initialization for `rcv_infos[9]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:109: error: `BTTV_AVERMEDIA98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:109: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:109: error: (near initialization for `rcv_infos[10].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:109: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:109: error: (near initialization for `rcv_infos[10]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:111: error: `BTTV_AVERMEDIA98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:111: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:111: error: (near initialization for `rcv_infos[11].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:111: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:111: error: (near initialization for `rcv_infos[11]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:112: error: `BTTV_CHRONOS_VS2' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:112: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:112: error: (near initialization for `rcv_infos[12].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:112: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:112: error: (near initialization for `rcv_infos[12]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:115: error: `BTTV_MIRO' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:115: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:115: error: (near initialization for `rcv_infos[13].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:115: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:115: error: (near initialization for `rcv_infos[13]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:116: error: `BTTV_DYNALINK' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:116: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:116: error: (near initialization for `rcv_infos[14].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:116: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:116: error: (near initialization for `rcv_infos[14]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:117: error: `BTTV_WINVIEW_601' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:117: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:117: error: (near initialization for `rcv_infos[15].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:117: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:117: error: (near initialization for `rcv_infos[15]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:122: error: `BTTV_MAGICTVIEW061' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:122: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:122: error: (near initialization for `rcv_infos[16].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:122: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:122: error: (near initialization for `rcv_infos[16]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:123: error: `BTTV_MAGICTVIEW063' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:123: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:123: error: (near initialization for `rcv_infos[17].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:123: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:123: error: (near initialization for `rcv_infos[17]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:124: error: `BTTV_PHOEBE_TVMAS' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:124: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:124: error: (near initialization for `rcv_infos[18].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:124: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:124: error: (near initialization for `rcv_infos[18]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:130: error: `BTTV_FLYVIDEO' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:130: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:130: error: (near initialization for `rcv_infos[19].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:130: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:130: error: (near initialization for `rcv_infos[19]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:131: error: `BTTV_FLYVIDEO_98' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:131: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:131: error: (near initialization for `rcv_infos[20].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:131: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:131: error: (near initialization for `rcv_infos[20]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:132: error: `BTTV_TYPHOON_TVIEW' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:132: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:132: error: (near initialization for `rcv_infos[21].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:132: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:132: error: (near initialization for `rcv_infos[21]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:142: error: `BTTV_WINFAST2000' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:142: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:142: error: (near initialization for `rcv_infos[22].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:142: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:142: error: (near initialization for `rcv_infos[22]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:144: error: `BTTV_WINFAST2000' undeclared here (not in a function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:144: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:144: error: (near initialization for `rcv_infos[23].bttv_id')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:144: error: initializer element is not constant
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:144: error: (near initialization for `rcv_infos[23]')
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In function `build_key':
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:191: error: `BTTV_AVERMEDIA98' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:191: error: (Each undeclared identifier is reported only once
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:191: error: for each function it appears in.)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:192: warning: implicit declaration of function `bttv_write_gpio'
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:196: warning: implicit declaration of function `bttv_read_gpio'
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:223: error: `BTTV_AVERMEDIA' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:229: error: `BTTV_AVPHONE98' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:242: error: `BTTV_FLYVIDEO' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:243: error: `BTTV_FLYVIDEO_98' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:244: error: `BTTV_TYPHOON_TVIEW' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:256: error: `BTTV_MAGICTVIEW061' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:257: error: `BTTV_MAGICTVIEW063' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:258: error: `BTTV_PHOEBE_TVMAS' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:265: error: `BTTV_MIRO' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:266: error: `BTTV_DYNALINK' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:267: error: `BTTV_PXELVWPLTVPAK' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:268: error: `BTTV_PXELVWPLTVPRO' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:269: error: `BTTV_PV_BT878P_9B' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:270: error: `BTTV_PV_BT878P_PLUS' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:294: error: `BTTV_WINFAST2000' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:297: error: `BTTV_WINVIEW_601' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In function `get_queue':
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:354: warning: implicit declaration of function `bttv_get_gpio_queue'
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:354: warning: return makes pointer from integer without a cast
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In function `gpio_remote_init':
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:404: warning: implicit declaration of function `bttv_gpio_enable'
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c: In function `init_module':
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:466: warning: implicit declaration of function `bttv_get_cardinfo'
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:473: error: `BTTV_UNKNOWN' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:495: error: `BTTV_AVPHONE98' undeclared (first use in this function)
/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.c:496: error: `BTTV_AVERMEDIA98' undeclared (first use in this function)
make[7]: *** [/usr/src/modules/lirc/drivers/lirc_gpio/lirc_gpio.o] Error 1
make[6]: *** [_module_/usr/src/modules/lirc/drivers/lirc_gpio] Error 2
make[6]: Leaving directory `/usr/src/kernel-headers-2.6.10-1-k7'
make[5]: *** [lirc_gpio.o] Error 2
make[5]: Leaving directory `/usr/src/modules/lirc/drivers/lirc_gpio'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/usr/src/modules/lirc/drivers/lirc_gpio'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/modules/lirc/drivers'
make[2]: *** [gpio] Error 2
make[2]: Leaving directory `/usr/src/modules/lirc'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/lirc'
Module /usr/src/modules/lirc failed.
好像都跟bttv有關
但我的卡是saa7134耶
另外有看了這篇
http://www.wlug.org.nz/TvTunerCards
這樣是說2.6.8以後不用裝lirc就可以使用IR裝置了嗎
可是用xev來試也沒反應
還是我英文太爛了
先謝謝了