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

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...