ubuntu16.04配置xawtv-3.95

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







评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

武溪嵌人

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值