问题1:
在编译缺少的lua组件中,出现readline/readline.h:没有那个文件或目录
解决方式:
使用命令 :sudo apt-get install libreadline-dev ,安装后编译正常
问题2:
在编译缺少组建libmad组件中,在./configure命令中 出现 configure: error: C++ preprocessor "/lib/cpp" fails sanity check 问题
解决方式:
使用命令: sudo apt-get install build-essential ,安装后编译出现问题3
问题3:
在编译make时 ,出现错误 cc1: error: unrecognized command line option '-fforce-mem'
解决方式:
将现有Makefile文件中有关与-fforce-mem删除掉,重新编译,编译正常。
问题4:
继续./configure时,出现如下错误 configure: error: No package 'libavcodec' found
解决方式:
缺少ffmpeg相关组件,./configure时出现 yasm/nasm not found or too old. Use --disable-yasm for a crippled build ,安装yasm 后,编译安装
问题5:
继续./configure时,出现configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin
解决方式:
缺少a52dec组建,编译安装后正常
问题6:
继续./configure时,出现configure: error: Package requirements (xcb >= 1.6) were not met:
解决方式:
到http://xcb.freedesktop.org/dist/上下载最新的tarball,我下的是1.7的版本,即libxcb 和xcb-proto装好就可以了(先装后者,否则前者装不上),编译libxcb出现问题7
问题7:
configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met:
解决方式:
sudo apt-get install libxau-dev
在https://launchpad.net/ubuntu/+source/libpthread-stubs/0.1-2下载 pthread-stubs ,编译运行
问题8:
继续./configure时 出现 configure: error: No package 'alsa' found. alsa-lib 1.0.24 or later required.
解决方式:
安装alsa即可
问题9:
继续./configure时,出现 configure: error: libgcrypt version 1.1.94 or higher not found
解决方式:
sudo apt-get install libgcrypt11-dev
问题10:
make时出现 lua/demux.c:55:5: 错误: 隐式声明函数‘luaL_checkint’
解决方式:
在lua模块下的生成的lauxlib.h 中 添加了 #define LUA_COMPAT_APIINTCASTS