Wayland (一) Building

https://wayland.freedesktop.org/building.html
https://wayland.freedesktop.org/ubuntu12.04.html

1. source wayland.conf

2. cd wayland
./autogen.sh --prefix=$WLD
[err] package requirement: libffi
[fix] 确保os中已经安装libffi-dev的前提下,把 /usr/lib/i386-linux-gnu/pkgconfig 加入到 PKG_CONFIG_PATH 中去;
3. git clone wayland-protocal
./configure --prefix=$WLD
make & make install
4. install Mesa
wayland use Mesa_EGL stack.
https://mesa.freedesktop.org/archive/

$ git clone git://anongit.freedesktop.org/mesa/mesa
$ cd mesa
$ ./autogen.sh --prefix=$WLD --enable-gles2 \
--with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi \
--with-gallium-drivers=r300,r600,swrast,nouveau
$ make && make install

[err] rendering requires libdrm >= 2.4.60
[fix] https://dri.freedesktop.org/libdrm/ install

[err] pciaccess >= 0.10
[fix] apt-get install libpciaccess-dev

[err] dri3proto >= 1.0
[fix] --disable-dri3

[err] no package libomxil-bellagio
[fix] apt-get install libomxil-bellagio-dev

[err] LLVM is required to build Gallium R300 on x86 and x86_64
[fix] apt-get install llvm-3.0-dev llvm-dev
[err] LLVM 3.3 or newer is required
[fix] http://llvm.org/releases/download.html#3.8.0
or set [--with-gallium-drivers=""] to ignore it. (not used yet)
[final] using: --with-gallium-drivers=""

$ 换用 mesa-10.2.0
./autogen.sh --prefix=$WLD
./configure --prefix=$WLD

[err] dri3proto >= 1.0
[fix] --disable-dri3

[err] llvm
[fix] ./configure --prefix=$WLD --disable-dri3 --with-llvm-prefix=/usr/lib/llvm-3.1/lib/

[err] need LLVM
[fix] ./configure --prefix=$WLD --disable-dri3 --with-llvm-prefix=/usr/lib/llvm-3.1/lib/ --with-gallium-drivers=""

$ make & sudo make install
done

4. install Weston
git clone git://anongit.freedesktop.org/wayland/weston

$cd weston
$./configure --prefix=$WLD --disable-setuid-install

4.1 libinput
[err] libinput >= 0.8.0
[fix] https://wayland.freedesktop.org/libinput/doc/0.9/
http://cgit.freedesktop.org/wayland/libinput
git://anongit.freedesktop.org/wayland/libinput
ssh://git.freedesktop.org/git/wayland/libinput
https://anongit.freedesktop.org/git/wayland/libinput.git

git clone https://anongit.freedesktop.org/git/wayland/libinput.git
git checkout 0.9.0 (tag)
[err] http request refused
[fix] git config --global http.sslVerify false

$./autogen.sh --prefix=$WLD --disable-libwacom

4.1.1 need libevdev >= 0.4
git clone git://anongit.freedesktop.org/libevdev
cd libevdev
./autogen.sh --prefix=$WLD

https://anongit.freedesktop.org/git/libevdev.git
git checkout libevdev-0.6

4.2 need [wayland-server >= 1.10.0 pixman-1 >= 0.25.2 xkbcommon >= 0.3.0]
4.2.1 wayland-server
重新下载weston.git & git checkout 1.6.0
$./autogen.sh --prefix=$WLD --disable-setuid-install

4.2.2 xkbcommon
git clone git://github.com/xkbcommon/libxkbcommon
cd libxkbcommon
./autogen.sh --prefix=$WLD --with-xkb-config-root=/usr/share/X11/xkb

$git clone https://github.com/xkbcommon/libxkbcommon
$git checkout xkbcommon-0.3.2

4.2.2.1 need xorg-macros 1.16
git clone git://anongit.freedesktop.org/xorg/util/macros
cd macros
./autogen.sh --prefix=$WLD

4.3 need pam
sudo apt-get install libpam0g-dev

4.4 src/libinput-device.c:137:2: error: too few arguments to function ‘libinput_event_pointer_get_axis_value’
原因: weston版本太低,与 libinput 不匹配 (或者libinput版本太高)
查看./configure, weston 1.6.0 匹配的libinput版本为 0.6.0
重新编译安装libinput 0.6.0

时间: 2024-11-09 09:23:12

Wayland (一) Building的相关文章

Building QT5 for IMX6(all)

address:https://community.freescale.com/docs/DOC-94066 Prerequisites:The build is verified on prebuilt rootfs(based on LTIB) which can be downloaded from freescale.com EGL uses framebuffer backendlibEGL.so -> libEGL-fb.solibGAL.so -> libGAL-fb.so QT

(转载)解决AndroidStudio导入项目在 Building gradle project info 一直卡住

源地址http://blog.csdn.net/yyh352091626/article/details/51490976 Android Studio导入项目的时候,一直卡在Building gradle project info这一步,主要原因还是因为被墙的结果.gradle官网虽然可以访问,但是速度连蜗牛都赶不上... 解决办法主要有两种,一是直接下载gradle离线包,二是修改项目的gradle-wrapper.properties里的gradle版本为自己电脑已有的版本. 离线包下载导

ZOJ 3820 Building Fire Stations

Building Fire Stations Time Limit: 5000ms Memory Limit: 131072KB This problem will be judged on ZJU. Original ID: 382064-bit integer IO format: %lld      Java class name: Main Special Judge Marjar University is a beautiful and peaceful place. There a

hdu 5033 Building(斜率优化)

Building Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1237    Accepted Submission(s): 350 Special Judge Problem Description Once upon a time Matt went to a small town. The town was so sma

ZOJ 1718 POJ 2031 Building a Space Station 修建空间站 最小生成树 Kruskal算法

题目链接:ZOJ 1718 POJ 2031 Building a Space Station 修建空间站 Building a Space Station Time Limit: 2 Seconds      Memory Limit: 65536 KB You are a member of the space station engineering team, and are assigned a task in the construction process of the statio

Building Block HDU - 2818 (并查集)

Building Block HDU - 2818 题意:搬砖...每一次可以把a所在的那一堆放到b所在的那一堆上面,问第x号砖下面有几块砖. 记录一下到根节点的距离(dw),以及根节点上方有几块砖(up). 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 const int maxn=30010; 5 int f[maxn],up[maxn],dw[maxn]; 6 7 int gf(int x){ 8 if(x==f[x]){ 9

JVM building

http://hg.openjdk.java.net/jdk7/jdk7/raw-file/tip/README-builds.html#ant http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html Building OpenJDK 9 on Ubuntu http://www.tuicool.com/articles/v2aaEv 图文解析在Linux下搭建Hotspot JVM源码调试环境 | How to

Building Maintainable Software-java篇之Keep Architecture Components Balanced

Building encapsulation boundaries is a crucial skill in software architecture. -George H. Fairbanks in Just Enough Architecture Guideline: ? Balance the number and relative size of top-level components in your code. ? Do this by organizing source cod

2015ACM/ICPC亚洲区长春站 L hdu 5538 House Building

House Building Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 145    Accepted Submission(s): 123 Problem Description Have you ever played the video game Minecraft? This game has been one of t