码迷,mamicode.com
首页 > 其他好文 > 详细

centos7上编译纯 wayland 和weston

时间:2015-12-21 17:54:30      阅读:844      评论:0      收藏:0      [点我收藏+]

标签:

没错 去掉 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

centos7上编译纯 wayland 和weston

标签:

原文地址:http://www.cnblogs.com/ratfree/p/5063821.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!