Ubuntu23.04编译VLC3.0.20的各种错误处理

Ubuntu23.04编译VLC3.0.20的注意事项

重要的事情说在前面:自己搭建VLC的编译环境很难成功,我自己从头搭建重试了很多很多次,只有一次编译出来了,而且只编译出来了VLC本体,没有Web插件等。官方的wiki也很长时间没更新了,完全不适应新的版本,推荐使用Docket环境进行编译可参考我的另一篇文章使用Docket交叉编译Windows64的VLC3.0.21

错误处理

lua

configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

shell 复制代码
sudo apt install liblua5.4-dev
liba52

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.

shell 复制代码
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
tar zxvf a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
CFLAGS=-fPIC ./configure --enable-shared
make
make install
cd ..
xcb-shm

configure: error: Package requirements (xcb-shm) were not met:

Package 'xcb-shm', required by 'virtual:world', not found

shell 复制代码
apt-get install libxcb-xv0-dev
apt-get install libxcb-composite0-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-xf86dri0-dev libxcb-xinerama0-dev libxcb-render-util0-dev
xcb-randr

configure: error: Package 'xcb-randr', required by 'virtual:world', not found. Package 'xcb-xkb', required by 'virtual:world', not found. Pass --disable-xcb to skip X11 support.

shell 复制代码
sudo apt-get install libxcb-randr0-dev libxcb-xkb-dev
alsa

configure: error: Package 'alsa', required by 'virtual:world', not found. alsa-lib 1.0.24 or later required. Pass --disable-alsa to ignore this error.

shell 复制代码
apt-get install libasound2-dev
pkg-config

Error: "pkg-config" is not installed.

shell 复制代码
apt-get install pkg-config
flex

ERROR: flex is not installed.

shell 复制代码
sudo apt-get install flex
bison

ERROR: GNU bison is not installed.

shell 复制代码
sudo apt-get install bison
bootstrap

./bootstrap: 78: autoreconf: not found

shell 复制代码
sudo apt update
sudo apt install autoconf
c++14

configure: error: *** A compiler with support for C++14 language features is required

shell 复制代码
sudo apt-get install build-essential
dlopen LT_INIT

./configure: line 12019: syntax error near unexpected token dlopen' ./configure: line 12019: LT_INIT(dlopen win32-dll shared disable-static)'

shell 复制代码
sudo apt-get update
sudo apt-get install libtool
libmad

configure: error: Could not find libmad on your system

shell 复制代码
wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
tar -xzvf libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
./configure


# ----------------
vim Makefile
:129
将-fforce-mem删除
# ----------------
make
make install
相关推荐
dust_and_stars11 分钟前
Ubuntu 24.04 使用 Snap 安装 code-server、CLion、PyCharm、JetBrains Toolbox 完整教程
ubuntu·pycharm
学途路漫漫24 分钟前
Ubuntu 24.04 安装 Howdy 面部识别登录完整指南(含国内网络环境踩坑)
ubuntu
火山上的企鹅1 小时前
Codex实战:APP远程升级服务搭建(二)阿里云ECS部署Node升级服务_Ubuntu_systemd_Nginx
nginx·ubuntu·阿里云·qgc
承渊政道1 小时前
【MySQL数据库学习】(MySQL内置函数)
数据库·学习·mysql·ubuntu·bash·数据库开发·数据库系统
2601_9618454215 小时前
法考真题及答案解析|历年真题|资料已整理
linux·windows·ubuntu·macos·centos·gnu
zzqssliu1 天前
Next.js图片自适应压缩:跨境站点图片加载提速代码方案
linux·javascript·ubuntu
干掉乔治的猪1 天前
【如何恢复 Ubuntu 引导分区:Windows11 + Ubuntu22.04 双系统 GRUB 修复踩坑记录】
linux·ubuntu·grub·修复·双系统
l齐天1 天前
Ubuntu 中编译 Go + PBC 程序为 Windows 11 可运行文件
windows·ubuntu·golang
biubiubiu07061 天前
Ubuntu中3种定时任务
数据库·ubuntu·postgresql
星间都市山脉2 天前
Android STS(Security Test Suite)完整介绍与测试流程
android·java·linux·windows·ubuntu·android studio·androidx