weston 1: 编译与运行傻瓜教程

news2024/11/14 22:45:04

sudo apt-get update
sudo apt-get upgrade

vim ~/.bashrc

export WLD=$HOME/install

export LD_LIBRARY_PATH=$WLD/lib

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/zzj/install/lib/x86_64-linux-gnu/pkgconfig/

source  ~/.bashrc

=========配置路径================

此处根据个人电脑配置路径
/home/zzj/install/lib/x86_64-linux-gnu/pkgconfig/
可能为
/home/zzj/install/lib64/pkgconfig/

=========配置路径================

/home/zzj

mkdir install
mkdir works
mkdir source


cd source

=======================wayland===================================

git clone https://gitlab.freedesktop.org/wayland/wayland.git

cd wayland

git checkout main
(
git log
commit 9700155edaae37bf91b55b58c1c2adf2ed142282 (HEAD -> main, origin/main, origin/HEAD)
Author: Mikhail Gusarov <dottedmag@dottedmag.net>
Date:   Thu Oct 20 23:31:33 2022 +0200

    protocol: wl_subsurface::destroy does not remove the role
    Role assigned to wl_surface cannot be removed.
    Delete contradicting text from wl_subsurface::destroy documentation.
    Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
)

meson build/ --prefix=$WLD
(
Command 'meson' not found, but can be installed with:
sudo apt install meson
)

sudo apt install meson

meson build/ --prefix=$WLD
(
ERROR: Pkg-config binary for machine 1 not found
)
sudo apt install pkg-config

(
Dependency "libffi" not found
)
sudo apt install libffi-dev

(
Dependency "expat" not found
)
sudo apt install libexpat1-dev

(
Dependency "libxml-2.0" not found
)
sudo apt install libxml2-dev

(
Program 'dot' not found or not executable
)
sudo apt install graphviz

(
Program 'doxygen' not found or not executable
)
sudo apt install doxygen

(
Program 'xsltproc' not found or not executable
)
sudo apt install xsltproc

(
Program 'xmlto' not found or not executable
)
sudo apt install xmlto

meson build/ --prefix=$WLD
(
Build targets in project: 60
wayland 1.21.90
  User defined options
    prefix: /home/zzj/install
Found ninja-1.10.1 at /usr/bin/ninja
)

ninja -C build/ install
(
Installing /home/zzj/works/wayland/protocol/wayland.xml to /home/zzj/install/share/wayland
Installing /home/zzj/works/wayland/protocol/wayland.dtd to /home/zzj/install/share/wayland
Installing /home/zzj/works/wayland/wayland-scanner.m4 to /home/zzj/install/share/aclocal
)

=======================wayland===================================
cd ..
=======================wayland-protocols=========================
git clone https://gitlab.freedesktop.org/wayland/wayland-protocols
cd wayland-protocols
git checkout main
(
git log
commit 37a7b9d387f01ae789432872028317488d0000c8 (HEAD -> main, origin/main, origin/HEAD)
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Mon Dec 19 12:37:57 2022 +0000

    Fix typo in xdg-activation-v1
    Noticed during review in
    https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/98#note_1003427,
    but not changed at the time.
    Noticed again in https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3090#note_1606895.
    Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
)

meson build/ --prefix=$WLD
(
Dependency "wayland-scanner" not found
)
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/zzj/install/lib/x86_64-linux-gnu/pkgconfig/
(
此处根据个人电脑配置路径
/home/zzj/install/lib/x86_64-linux-gnu/pkgconfig/
可能为
/home/zzj/install/lib64/pkgconfig/
)

meson build/ --prefix=$WLD
(
Compiler for C supports link arguments -Wl,--unresolved-symbols=ignore-all: YES
Build targets in project: 236
wayland-protocols 1.31
  User defined options
  prefix: /home/zzj/install
)

ninja -C build/ install
(
Installing /home/zzj/source/wayland-protocols/unstable/xdg-shell/xdg-shell-unstable-v5.xml to /home/zzj/install/share/wayland-protocols/unstable/xdg-shell
Installing /home/zzj/source/wayland-protocols/unstable/xdg-shell/xdg-shell-unstable-v6.xml to /home/zzj/install/share/wayland-protocols/unstable/xdg-shell
Installing /home/zzj/source/wayland-protocols/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml to /home/zzj/install/share/wayland-protocols/unstable/xwayland-keyboard-grab
Installing /home/zzj/source/wayland-protocols/build/wayland-protocols.pc to /home/zzj/install/share/pkgconfig
)
=======================wayland-protocols=========================
cd ..
=======================libinput==================================
git clone https://gitlab.freedesktop.org/libinput/libinput/
cd libinput
git checkout main
(
git log
commit 3b1f86c7c637d5ec4140ec3babc211f1fa6857ac (HEAD -> main, origin/main, origin/HEAD)
Author: Zhangyuan Nie <yuan@znie.org>
Date:   Mon Jan 16 18:43:46 2023 -0800

    quicks: invert horizontal scrolling for Logitech MX Master 3S
    Signed-off-by: Zhangyuan Nie <yuan@znie.org>
)

meson build/ --prefix=$WLD
(
Dependency "libudev" not found
)
sudo apt install libudev-dev

(
Dependency "mtdev" not found
)
sudo apt install libmtdev-dev

(
Dependency "libevdev" not found
)
sudo apt install libevdev-dev

(
Dependency "libwacom" not found
)
sudo apt install libwacom-dev

(
Dependency "gtk+-3.0" not found
)
sudo apt install libgtk-3-dev

(
Dependency "check" not found
)
sudo apt install check

meson build/ --prefix=$WLD
(
Build targets in project: 40
libinput 1.22.0
  User defined options
  prefix: /home/zzj/install
  Found ninja-1.10.1 at /usr/bin/ninja
)

ninja -C build/ install
(
Installing /home/zzj/works/libinput/build/libinput-replay.1 to /home/zzj/install/share/man/man1
Installing /home/zzj/works/libinput/build/libinput-test.1 to /home/zzj/install/share/man/man1
Installing /home/zzj/works/libinput/build/libinput-quirks-list.1 to /home/zzj/install/share/man/man1
Installing /home/zzj/works/libinput/build/libinput-quirks-validate.1 to /home/zzj/install/share/man/man1
)
=======================libinput==================================
cd ..
=======================weston====================================
git clone https://gitlab.freedesktop.org/wayland/weston.git
cd weston
git checkout main
(
git log
commit 35b3cb83b0bf427b7c40ba080bc32b58a68f5b62 (HEAD -> main, origin/main, origin/HEAD)
Author: Loïc Molinari <loic.molinari@gmail.com>
Date:   Tue Jan 3 20:14:41 2023 +0100
    gl-renderer: Disable vertex attrib arrays in shadow pass
    The blit_shadow_to_output() function leaves the generic vertex attrib
    arrays 0 and 1 enabled. This commit disables them for consistency with
    the other drawing calls of the renderer.
    Signed-off-by: Loïc Molinari <loic.molinari@gmail.com>
)

meson build/ --prefix=$WLD
(
Dependency "libinput" not found
)
//libinput 路径 需要加入到PKG_CONFIG_PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/zzj/install/lib/x86_64-linux-gnu/pkgconfig

(
Dependency "libdrm" not found
)
sudo apt install libdrm-dev

(
Problem encountered: WEBP image loading requires libwebp which was not found. Or, you can use '-Dimage-webp=false'.
)
sudo apt install libwebp-dev

(
C shared or static library 'pam' not found
)
sudo apt install libpam-dev

(
Dependency "libseat" not found
)
sudo apt install libseat-dev

(
ERROR: Could not generate cargs for libseat:
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libsystemd', required by 'libseat', not found
)
sudo apt install libsystemd-dev

(
Problem encountered: color-lcms plugin requires lcms2 which was not found. Or, you can use '-Dcolor-management-lcms=false'
)
sudo apt install liblcms2-dev

(
Problem encountered: drm-backend with GL renderer requires gbm which was not found. Or, you can use '-Drenderer-gl=false'.
)
sudo apt-get install  libgbm-dev

(
Problem encountered: VA-API recorder requires libva >= 0.34.0 which was not found. Or, you can use '-Dbackend-drm-screencast-vaapi=false'.
)
sudo apt-get install libva-dev

(
Problem encountered: RDP-backend requires freerdp >= 2.3.0 which was not found. Or, you can use '-Dbackend-rdp=false'.
)
sudo apt install freerdp2-dev

(
Problem encountered: VNC backend requires neatvnc which was not found. Or, you can use '-Dbackend-vnc=false'.
)
sudo apt search neatvnc
sudo apt install libneatvnc-dev

(
Dependency neatvnc found: NO found 0.4.0 but need: '>= 0.5.0' ; matched: '< 0.6.0'
weston 最新版本需要 neatvnc >= 0.5.0
本人Ubuntu版本是22.04 neatvnc 版本为  0.4.0
更新22.10 source.list 安装完 libneatvnc-dev 再切回 22.04
)
sudo apt install libneatvnc-dev=0.5.1+dfsg-2

(
Problem encountered: x11-backend requires x11-xcb which was not found.
)
sudo apt search libx11-xcb-dev

(
Problem encountered: xwayland requires xcb-composite which was not found
)
sudo apt install libxcb-composite0-dev

(
Problem encountered: Remoting plugin requires gstreamer-1.0 which was not found
)
sudo apt install libgstreamer1.0-dev

(
Remoting plugin requires gstreamer-allocators-1.0 which was not found
)
sudo apt install libgstreamer-plugins-base1.0-dev

(
Pipewire plugin requires libpipewire which was not found
)
sudo apt install libpipewire-0.3-dev

meson build/ --prefix=$WLD
(
Message: Documentation will not be built. Use -Ddoc to build it.
Build targets in project: 200
NOTICE: Future-deprecated features used:
 * 0.56.0: {'Dependency.get_pkgconfig_variable'}

  weston 11.0.90
  User defined options
  prefix: /home/zzj/install
  Found ninja-1.10.1 at /usr/bin/ninja
)

ninja -C build/ install
(
Installing /home/zzj/works/weston/build/man/weston-drm.7 to /home/zzj/install/share/man/man7
Installing /home/zzj/works/weston/build/man/weston-rdp.7 to /home/zzj/install/share/man/man7
Installing /home/zzj/works/weston/build/man/weston-vnc.7 to /home/zzj/install/share/man/man7
Installing /home/zzj/works/weston/pam/weston-remote-access to /home/zzj/install/etc/pam.d
)

(
weston: error while loading shared libraries: libweston-12.so.0: cannot open shared object file: No such file or directory
)
//此环境变量放到配置文件里,可在tty3直接运行,启动weston
export LD_LIBRARY_PATH=/home/zzj/install/lib/x86_64-linux-gnu

weston
=======================weston====================================

plasma下

tty3下

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/175869.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

高级Spring之BeanFactory的实现

Spring 的发展历史较为悠久&#xff0c;因此很多资料还在讲解它较旧的实现&#xff0c;这里出于怀旧的原因&#xff0c;把它们都列出来&#xff0c;供大家参考 DefaultListableBeanFactory&#xff0c;是 BeanFactory 最重要的实现&#xff0c;像控制反转和依赖注入功能&#x…

十六进制转八进制+超大数据处理(蓝桥杯基础练习C/C++)

目录 1 题目要求 2 代码 2.1 以十进制为媒介&#xff08;不可行&#xff09; 2.2 以二进制为媒介 3 可能会遇到的难点 4 结论 5 延伸 5.1 超大数据阶乘 5.2 超大数据加法 5.3 以十进制为媒介的进制转换 1 题目要求 2 代码 2.1 以十进制为媒介&#xf…

【LeetCode】一文吃透回溯算法(附例题)

回溯 DFS 算法深入浅出&#xff0c;一文吃透&#xff01; 原文同步在&#xff1a;https://github.com/EricPengShuai/Interview/blob/main/algorithm/回溯算法.md 回溯算法 主要参考的是 liweiwei 的总结 0. 概念 回溯法 采用试错的思想&#xff0c;它尝试分步的去解决一个问题…

MATLAB | 如何使用MATLAB绘制韦恩图的高阶版本:upset图

韦恩图随着阶数升高会越来越复杂&#xff0c;当阶数达到7或者以上时几乎没办法绘制&#xff1a; 但是使用upset图却可以比较轻易的绘制&#xff1a; 两种类型图的对应关系&#xff1a; 这期便教大家如何绘制这样的upset图&#xff1a; 教程部分 0 数据准备 数据需要的是0,1矩…

SQL注入现象

package com.bjpowernode.jdbc;import java.sql.*; import java.util.HashMap; import java.util.Map; import java.util.ResourceBundle; import java.util.Scanner; /*** 如果输入的用户名和密码是下面这样的&#xff0c;就会发生非注册人员登录的情况&#xff0c;叫做SQL注入…

【Java|golang】2287. 重排字符形成目标字符串

给你两个下标从 0 开始的字符串 s 和 target 。你可以从 s 取出一些字符并将其重排&#xff0c;得到若干新的字符串。 从 s 中取出字符并重新排列&#xff0c;返回可以形成 target 的 最大 副本数。 示例 1&#xff1a; 输入&#xff1a;s “ilovecodingonleetcode”, targ…

go tool pprof与trace的简单使用

pprof pprof是Google的程序采样分析工具&#xff0c;其使用分为&#xff0c;采样和分析。Go 语言内置了pprof。 Go 语言库中有两种方式使用pprof&#xff0c;一种是通过net/http/pprof库&#xff0c;另一种是通过runtime/pprof库。 net/http/pprof的简单使用 引入 _ "n…

【计算机网络】HTTP/HTTPS

HTTP网络协议 虽然我们说, 应用层协议是我们程序猿自己定的. 但实际上, 已经有大佬们定义了一些现成的, 又非常好用的应用层协议, 供我们直接参考使用. HTTP(超文本传输协议)就是其中之一 理解网络协议 协议是一种 “约定”. socket api的接口, 在读写数据时, 都是按 “字符…

零基础学MySQL(三)-- 对表中数据的增删改【新年快乐】

目录✨一、INSERT 语句&#xff08;添加表中数据&#xff09;1.基本语法2.应用案例3.使用细节&#x1f386;二、UPDATE 语句&#xff08;修改表中数据&#xff09;1.基本语法2.应用案例3.使用细节&#x1f387;三、DELETE 语句&#xff08;删除表中数据&#xff09;1.基本语法2…

【手写 Vue2.x 源码】第三十七篇 - 组件部分 - 组件的合并

一&#xff0c;前言 上篇&#xff0c;介绍了 Vue.extend 实现&#xff0c;主要涉及以下几个点&#xff1a; Vue.extend 简介&#xff1b;Vue.extend 实现&#xff0c;包括&#xff1a;组件初始化&#xff1b;子类继承父类&#xff1b;修复 constructor 指向问题&#xff1b; …

基于ssm jsp在线教育系统源码

演示视频&#xff1a; 基于ssm jsp在线教育系统源码范围 系统主要目标设计 随着互联网发展&#xff0c;在线教学成为一种支持知识共享&#xff0c;无距离知识交流的一种方式&#xff0c;我们的系统主要完成在线视频观看&#xff0c;在线教学&#xff0c;在线知识交流&#xff0…

虚幻引擎中CityEngine导入资产的自动化替换

在这篇博文中&#xff0c;我们将学习将 ArcGIS CityEngine Datasmith 场景导入虚幻引擎后替换资产的流程。 替换工作流由虚幻引擎的数据资产&#xff08;可以认为是简单的表格数据&#xff09;控制。 一旦设置正确&#xff0c;这些数据资产就可以在项目之间共享。 推荐&#x…

This old-style function definition is not preceded by a prototype

文章目录Introwarning 及解决 截屏知其然&#xff0c;却不知其所以然Intro 在 Xcode 14 中随意写了几个C命令行程序&#xff0c;编译运行OK。 但是有以下两种报错&#xff1a; This old-style function definition is not preceded by a prototype This function declaration…

联诚发携手电影《流浪地球2》,让电影特效和场景全面升级!

一万五千年前&#xff0c;一根愈合的人类股骨&#xff0c;标志着人类文明的诞生&#xff1b;一万五千年后&#xff0c;当太阳系将不复存在&#xff0c;人类的团结与勇气将延续文明的火种&#xff01;新年第一部精彩绝伦的国产科幻大片&#xff0c;大家期待已久的《流浪地球2》终…

动态规划的优化

动态规划的优化 一、空间优化 说明 动态规划空间优化为滚动数组优化&#xff0c;即对于一个多维数组&#xff0c;转移时均是由上一阶段转移来的&#xff0c;则可以将这一维省略&#xff0c;以降低空间复杂度&#xff0c;但要注意转移时的顺序&#xff1b; 例题 0 - 1 背包…

基础算法--背包问题(01背包问题、完全背包问题、多重背包问题、分组背包问题)

文章目录前言01背包问题完全背包问题多重背包问题分组背包问题前言 背包问题&#xff1a;给我们 i 件物品&#xff0c;每件物品都有体积 vi 和权重 wi &#xff0c;给我们限制条件&#xff0c;让我们选择在背包的容量内&#xff0c;物品达到权重最大 01背包问题 01背包问题描…

KK集团再冲刺港交所上市:期内被罚款30万元,曾存在“二清”问题

时隔一年&#xff0c;KK集团再次在港交所递交上市申请。2023年1月20日&#xff0c;KK集团&#xff08;KK Group Company Holdings Limited&#xff09;向港交所提交上市申请。据贝多财经了解&#xff0c;KK集团曾于2021年11月4日在港交所递表&#xff0c;后已“失效”。 相较于…

LeetCode_单周赛_329

2544. 交替数字和 代码1 转成字符串&#xff0c;逐个判断 class Solution {public int alternateDigitSum(int n) {char[] s ("" n).toCharArray();int t 1;int ans 0;for (int i 0; i < s.length; i) {ans (s[i] - 0) * t;t -t;}return ans;} }代码2 一…

国内做SaaS软件的知名企业有哪些?

SaaS厂商还挺多挺杂的。具体要列举的话&#xff0c;还是按照分类来吧。 通用业务和垂直行业的SaaS 对使用方来说&#xff0c;一般分为业务通用型和垂直行业型。 通用型是可以服务所有企业的&#xff0c;比如CRM&#xff08;客户管理软件&#xff09;、HR软件、协同办公软件&a…

linux系统中利用QT实现语音识别项目的操作方法

大家好&#xff0c;今天主要和大家分享一下&#xff0c;如何使用linux系统上的语音识别项目的操作方法与实现。 目录 第一&#xff1a;语音识别基本简介 第二&#xff1a;语音识别产品申请账号 第三&#xff1a;具体代码实现 第一&#xff1a;语音识别基本简介 AI音箱对传统…