centos7上编译纯 wayland 和weston

没错 去掉 xorg 编译 wayland

最小化 安装 centos7

相关 工具

yum install autoconf  automake make gcc gcc-c++  libtool bison  flex wget  bzip2 pkgconfig

添加环境变量

export WLD=/home/

expexport LD_LIBRARY_PATH=$WLD/lib

export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/

export PATH=$WLD/bin:$PATH

export ACLOCAL_PATH=$WLD/share/aclocal

export ACLOCAL="aclocal -I $ACLOCAL_PATH"

mkdir -p $ACLOCAL_PATH

wanyland 相关依赖

yum install  libffi-devel.x86_64 expat-devel.x86_64

没有用git下载源码,以下用的tar包

wayland

./configure  --prefix=$WLD  --disable-documentation

make

make check

make install

libevdev

./configure --prefix=$WLD --disable-static --disable-documentation

make

make install

mtdev

./configure --prefix=$WLD --disable-static

make

make install

libinput  相关依赖

yum install   systemd-devel.x86_64

./configure  --prefix=$WLD  --without-libunwind --disable-static

make

make install

libdrm

sed -e "/pthread-stubs/d" -i configure.ac

autoreconf -fiv

./configure --prefix=/$WLD   --disable-intel --disable-radeon  --disable-amdgpu  --disable-vmwgfx

make

make install

mesa

./autogen.sh --prefix=$WLD --enable-gles2  --disable-gallium-egl \

--with-egl-platforms=wayland,drm  --enable-gbm   --disable-dri3   \

--with-gallium-drivers="nouveau" --with-dri-drivers="nouveau" \

--disable-xvmc      --disable-xa    --disable-glx

make

make install

yum install  wqy-microhei-fonts.noarch wqy-zenhei-fonts.noarch   zlib-devel.x86_64

libpng

./configure --prefix=$WLD  --disable-static

make

make install

harfbuzz

yum install      glib2-devel.x86_64

./configure  --prefix=$WLD

make

make install

FreeType

./configure --prefix=$WLD  --disable-static

make

make install

fontconfig

./configure --prefix=$WLD  --disable-docs

make

make install

cairo

yum install   libpng-devel.x86_64  pixman-devel.x86_64

./autogen.sh --prefix=$WLD   --enable-gl=no --enable-xlib=no  --enable-glx=no  \

--enable-glesv2  --enable-ft=yes  --enable-fc=yes --enable-test-surfaces=no  \

--disable-static    --disable-some-floating-point

make

make install

weston

yum install   libxkbcommon-devel.x86_64  libjpeg-turbo-devel.x86_64 pam-devel.x86_64

./configure  --prefix=$WLD   --enable-wayland-compositor  --enable-drm-compositor   \

--disable-xwayland-test   --disable-x11-compositor --disable-xwayland  --enable-fbdev-compositor

make

make check

sudo make install

mkdir -p ~/.config

cp weston.ini ~/.config

echo $XDG_RUNTIME_DIR

sudo groupadd weston-launch

sudo usermod -a -G weston-launch $USER

sudo chown root $WLD/bin/weston-launch

sudo chmod +s $WLD/bin/weston-launch

时间: 2024-08-22 16:05:11

centos7上编译纯 wayland 和weston的相关文章

CentOS7上编译多版本PHP并同时运行及systemd设置

CentOS7最大改变是systemd代替过去的systemV服务,于是配置服务的方式改变了,用systemctl替代过去的service, chkconfig等命令. 网站搬迁服务器,全新服务器当然用新系统,于是安装上CentOS7. PHP5.4编译参数: ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --with-layout=GNU --prefix=/usr/local --exec

centos7上编译安装php7,以php-fpm方式连接apache

好几个月之间其实已经配置过LAMP LNMP等等一些配置,以前配置都是按照晚上抄的,基本都能配置出来,现重头学想自己配置下,但是发现好多配置都忘了 ,中间踩了几个坑,记录下,也更彻底的学习下..... ./configure --prefix=/usr/local/php7 --enable-fpm 以fpm模式安装,这个还可以改成 --with-apxs2=PATH模式,两者只能取其一--enable-so --with-config-file-path=/etc 只能配置文件位置--with

在centOS7.2上编译gcc4.4.7

1.前置 首先,可以参考我的上篇文章,在centOS7.2上编译gcc4.1.2,过程基本一致,这里只对可能遇到的错误情况进行说明. 2.安装texinfo4.8 我的centos7.2版本,自带的是gcc4.8,texinfo 5.1,在编译gcc的过程中主要遇到的是texinfo 5.1版本过高,导致无法处理gcc中的文档,在搜索各种方法无果后,我决定把texinfo降级到4.8(主要是我找到的是4.8,gcc4.4.7中的语法支持的是4.6以上,但是不支持5.x,虽然很奇怪在编译4.1.2

最小化安装的centos7.5上编译安装git2.19

VMware Workstation已经采用最小化安装CentOS7,显示版本为CentOS7.5,准备采用yum安装git. 采用yum list git发现可安装的GIT软件包版本1.8.3.1,新的版本已经是2.19了,因此,我决定编译安装git2.19. 由于采用最小化安装系统,编译时出现一些问题,这里对处理过程作一下备忘: 1.首先在git官网上下载最新的版本,下载地址:https://mirrors.edge.kernel.org/pub/software/scm/git/git-2

Linux入门之CentOS7内核编译三部曲(1)

Linux入门之CentOS7内核编译三部曲(1) 我们知道,一个Linux系统的主要组成是由liunx内核核心和一些支持模块组合而成的.但是在某些场合中,需要某项功能,而当前内核的核心或者模块不支持此功能,那么就需要对内核进行一个升级或者重新编译内核添加相应的功能,以此提供了对此功能的支持. 编译前的准备 认识kernel 所为kernel,就是一种操作系统的核心,当然也是一个文件,而这种核心提供了对一些硬件的支持,一般来说其中包含了一些对常见硬件核心驱动的核心代码.启动系统时会通过加载MBR

Linux入门之CentOS7内核编译三部曲(2)

Linux入门之CentOS7内核编译三部曲(2) 在linux系统中,编译完了内核,得到了所需的功能,并不能表示就已经能完美完成我们的所需.因为内核只是做一个核心的硬件及核心代码的支持,而注意的模块支持任然是对应版本的内核模块文件.这些文件决定着平时能否使用哪些功能.这次不会介绍如果添加给上次编译的新内核模块功能,主要介绍模块的功能和作用以及其加载和卸载. 查看当前系统以及加载的内核模块命令:lsmod  modinfo lsmod 命令 lsmod - program to show the

CentOS6.6上编译安装httpd2.4

简介  现在apache软件基金会正在维护的httpd项目有三个版本,分别为Version 2.4,Version 2.2与Version 2.0.  三个版本的区别暂不一一介绍,有兴趣的可以去httpd.apache.org了解,下面着重介绍httpd 2.4版本.新特性  现在在CentOS7上默认支持的httpd版本已经为2.4,但是CentOS6上默认的为2.2版本  httpd 2.4新特性:    1) 支持httpd运行时装在MPM    2) 正式支持event mpm    3

centOS7上部署安装coreseek及遇到的问题处理

# uname -r 3.10.0-229.4.2.el7.x86_64 安装步骤如下: 1 依赖包的安装 yum install gcc gcc-c++ libtool mysql-devel libxml2-devel expat-devel 2.下载软件包 wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz wget http://www.coreseek.cn/uploads/csft/4.0/cores

CentOS7上安装POCO

POCO是什么? 看官网说明: Modern, powerful open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server, mobile and embedded systems. 下载地址 强烈建议,唯一下载地址就是官方网站,不要图省事在某些国内站点下载.地址是:(很可惜,这个残疾的网站上发博客