惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Last Week in AI
Last Week in AI
H
Help Net Security
博客园 - 叶小钗
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
月光博客
月光博客
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How to Compile Qt6/PyQt6 with Proprietary Codecs on Ubunt...
Andy Stewart · 2026-05-22 · via DEV Community
Cover image for How to Compile Qt6/PyQt6 with Proprietary Codecs on Ubuntu for EAF Browser

Andy Stewart

If you are using the Emacs Application Framework (EAF) to browse the web inside Emacs, you might have run into an annoying issue on Ubuntu: HTML5 videos (like YouTube or video streams) refuse to play, showing a blank screen or a decoding error.

This happens because the EAF Browser relies on QtWebEngine. While distributions like Arch Linux compile Qt6 with proprietary codecs enabled by default, Ubuntu's upstream packages do not include them due to licensing philosophies. To fix this, you need to compile Qt6 manually with the -webengine-proprietary-codecs flag.

Below is the surgical guide to building Qt 6.5.0 from source on Ubuntu to get your EAF terminal setup fully armed for video playback.

(Shoutout to my friend smallevilbeast for mapping out this build process!)

⚠️ Note: Remember to replace /home/user in the scripts below with your actual home directory path.

1. Install Dependencies

pip install html5lib

sudo apt install build-essential
sudo apt install libx11-dev
sudo apt install ninja-build
sudo apt install openssl libssl-dev
sudo apt install libmd4c-dev libmd4c-html0-dev
sudo apt install pkg-config
sudo apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev
sudo apt install libglew-dev libglfw3-dev libglm-dev
sudo apt install libao-dev libmpg123-dev
sudo apt install libclang-14-dev flex
sudo apt install diffstat libassimp5 libavdevice-dev libavfilter-dev libcups2-dev
sudo apt install libdraco7 libevdev-dev libinput-dev libmtdev-dev 
sudo apt isntall libpostproc-dev libpulse-dev libwacom-dev lintian 
sudo apt install lzip lzop patchutils pkg-kde-tools t1utils xvfb
sudo apt install libxshmfence-dev 
sudo apt install libxcb-keysyms1=0.4.0-1build3
sudo apt install libx11-* libx11*
sudo apt install libxcb-* libxcb*
sudo apt install libxkbcommon-x11-dev

Enter fullscreen mode Exit fullscreen mode

2.Compile

wget https://download.qt.io/archive/qt/6.5/6.5.0/single/qt-everywhere-src-6.5.0.tar.xz
tar xvf qt-everywhere-src-6.5.0.tar.xz
mv qt-everywhere-src-6.5.0 qt
mkdir qt-build
mkdir -p ~/qt/qt6.5.0
cd qt-build
../qt/configure -webengine-proprietary-codecs -webengine-printing-and-pdf -webengine-pepper-plugins -xcb -prefix /home/user/qt/qt6.5.0
cmake --build . --parallel 32
cmake --install .

Enter fullscreen mode Exit fullscreen mode

3.Replace PyQt6-Qt6

ln -s /home/user/qt/qt6.5.0 /home/user/emacs_venv/lib/python3.11/site-packages/PyQt6/Qt6

Enter fullscreen mode Exit fullscreen mode


Let's Chat

Building Qt from source can be a beast depending on your hardware. Did this configuration work smoothly on your Ubuntu setup, or did you hit a missing dependency snag? Drop a comment below if you ran into any issues, and let's get it sorted!

Happy hacking! 🚀