1.下载源码
2.解压,配置
./configure
make
make install
3.出现的错误
1)fatal error: X11/fonts/FSlib.h: No such file or directory
sudo apt-get install libfs-dev
sudo apt-get install libxaw7-dev
2)console/fbtools.c:24:22: fatal error: asm/page.h: No such file or directory
把asm/page.h修改为sys/user.h即可。
3)ar: creating libng/libng.a
LD console/streamer
libng/libng.a(grab-ng.o): In function `ng_plugins':
/home/armmlinux/zdfwork/work/xawtv-3.95/libng/grab-ng.c:836: undefined reference to `dlopen'
/home/armmlinux/zdfwork/work/xawtv-3.95/libng/grab-ng.c:840: undefined reference to `dlsym'
/home/armmlinux/zdfwork/work/xawtv-3.95/libng/grab-ng.c:837: undefined reference to `dlerror'
/home/armmlinux/zdfwork/work/xawtv-3.95/libng/grab-ng.c:841: undefined reference to `dlsym'
/home/armmlinux/zdfwork/work/xawtv-3.95/libng/grab-ng.c:842: undefined reference to `dlerror'
collect2: error: ld returned 1 exit status
mk/Compile.mk:74: recipe for target 'console/streamer' Failed
make: *** [console/streamer] Error 1
在makefile 里面添加 -ldl
4)console/fs.o: In function `fs_connect':
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:196: undefined reference to `FSOpenServer'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:198: undefined reference to `FSServerName'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:201: undefined reference to `FSServerName'
console/fs.o: In function `fs_open':
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:226: undefined reference to `FSListFonts'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:235: undefined reference to `FSOpenBitmapFont'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:236: undefined reference to `FSFreeFontNames'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:240: undefined reference to `FSQueryXInfo'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:243: undefined reference to `FSQueryXExtents16'
/home/armmlinux/zdfwork/work/xawtv-3.95/console/fs.c:244: undefined reference to `FSQueryXBitmaps16'
collect2: error: ld returned 1 exit status
mk/Compile.mk:74: recipe for target 'console/fbtv' Failed
make: *** [console/fbtv] Error 1
在Makefile里面添加 -lFS
5)x11/blit.c:43:8: error: unknown type name ‘bool’
... ...
mk/Compile.mk:54: recipe for target 'x11/blit.o' Failed
自己定义
typedef enum {
false,true } bool;
6)console/radio.c: In function ‘main’:
console/radio.c:877:26: error: ‘alsa_loopback’ undeclared (first use in this function)
radio_mute(fd,mute,alsa_loopback && !quit);
^
console/radio.c:877:26: note: each undeclared identifier is reported only once for each function it appears in
mk/Compile.mk:54: recipe for target 'console/radio.o' Failed
make: *** [console/radio.o] Error 1
#if defined(HAVE_ALSA)
#endif