6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Wayland/Weston on Ubuntu14.04 を動かす

Last updated at Posted at 2016-02-10

初めに

wayland を気軽に動かしてみたかったので、ubuntu 上で動かしてみた。のメモ。

環境

Ubuntu 14.04

環境構築

https://wayland.freedesktop.org/ubuntu12.04.html
の中をコピって適当なファイル名で shell 化( build.sh 等)。
shell 実行。数十分待つ。

$ ./build.sh

apt-get で weston をインストール&実行。

$ sudo apt-get install weston
$ weston

Screenshotfrom2016-02-10180717.png

上記 Weston Compositor ウインドウが表示される。

サンプルアプリ

https://hdante.wordpress.com/2014/07/08/the-hello-wayland-tutorial/
このサンプルソースを借用。

https://github.com/hdante/hello_wayland
git clone か zip ダウンロードか、適当にローカルへ。

$ cd hello_wayland-master
$ make
$ ./hello_wayland

Screenshotfrom2016-02-10180848.png

サンプルアプリの絵が表示される。

その他メモ

もしかしたら、 https://wayland.freedesktop.org/ubuntu12.04.html
の作業一式不要かも。
結果作成される weston.ini だけあればよかったかもしれない。

逆に、単に https://wayland.freedesktop.org/ubuntu12.04.html
のコマンドを打たずに、

$ sudo apt-get install weston
$ weston

するだけでは weston compositor は起動してくれない。
sudo apt-get install weston では weston.ini は作られない。

作られる weston.ini はこちら。

$ cat ~/.config/weston.ini
[core]
# modules=desktop-shell.so,xwayland.so

[shell]
background-image=/usr/share/backgrounds/gnome/Aqua.jpg
background-color=0xff002244
panel-color=0x90ff0000
locking=true
animation=zoom
# binding-modifier=ctrl
# num-workspaces=6

# lockscreen-icon=/usr/share/icons/gnome/256x256/actions/lock.png
# lockscreen=/usr/share/backgrounds/gnome/Garden.jpg
# homescreen=/usr/share/backgrounds/gnome/Blinds.jpg
# animation=fade

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/gnome-terminal

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/utilities-terminal.png
path=/usr/bin/weston-terminal

[launcher]
icon=/usr/share/icons/hicolor/24x24/apps/google-chrome.png
path=/usr/bin/google-chrome

[launcher]
icon=/usr/share/icons/gnome/24x24/apps/arts.png
path=./clients/flower

[screensaver]
# Uncomment path to disable screensaver
path=/usr/libexec/weston-screensaver
duration=600

[input-method]
path=/usr/libexec/weston-keyboard

# [output]
# name=LVDS1
# mode=1680x1050
# transform=90

# [output]
# name=VGA1
# modeline=173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
# transform=flipped

# [output]
# name=X1
# mode=1024x768
# transform=flipped-270

感想

Weston Compositor の左上に chrome アイコンがあるので
クリックして実行してみたが、ホストの ubuntu 側で起動した。
これは chrome は wayland で作られていないためでしょうか。
なぜ chrome をサンプルにしてアイコン載せたんでしょう。。

その他参考

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?