Building Wayland on Ubuntu

Simos Xenitellis simos.lists at googlemail.com
Mon Oct 15 11:55:05 PDT 2012


On Mon, Oct 15, 2012 at 5:47 PM, Eunchul Kim <chulspro at gmail.com> wrote:
> Thank's Rob and Simos.
> My gcc version is very old as you know.
> so, I updated gcc version from 4.6 to 4.7 using this web site
> - http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/
>
> and I success building Wayland. I can start my contribution.
> (I got some minor error at execution of weston compositor in my another PC
> but I can fix it. If i can't fix this problem. I will send my error case.)
>
> Thank's
>
> I sumerized my building scenario for another people.
>
> Install Ubuntu 12.04
>
> sudo apt-get install autoconf libtool libffi-dev libexpat1-dev
> libpthread-stubs0-dev
> libpciaccess-dev bison xutils-dev libx11-dev x11proto-gl-dev
> x11proto-dri2-dev libxext-dev
> libxdamage-dev libxfixes-dev libx11-xcb-dev libxcb-glx0-dev
> libxcb-dri2-0-dev libudev-dev
> libxcb-xfixes0-dev llvm g++ flex libpng12-dev libxcursor-dev
> libmtdev-dev libjpeg-dev libpam0g-dev
> libglu1-mesa-dev
>
> gcc upgrade from 4.6 to 4.7
> sudo add-apt-repository ppa:ubuntu-toolchain-r/test
> sudo apt-get update
> sudo apt-get install gcc-4.7 g++-4.7
> sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave
> /usr/bin/g++ g++ /usr/bin/g++-4.6
> sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave
> /usr/bin/g++ g++ /usr/bin/g++-4.7
> sudo update-alternatives --config gcc
> select : 4.7
> sudo update-alternatives --config gcc
> check : g++ --version
>
> and refer building.html
>
> Thank's all.
>

Thanks for supplying the instructions.
I did my own compilation on Ubuntu 12.10 (currently in Beta2, to be
released in two days) and I used the command to get the Wayland
dependencies:

sudo apt-get install build-essential libtool makedepend xutils-dev
bison flex x11-dev libx11-dev glproto-dev libglproto-dev
x11proto-gl-dev x11proto-dri2-dev libxext-dev libxdamage-dev
libxdamage-dev libxfixes-dev libx11-xcb-dev libxcb-glx0-dev
libxcb-dri2-0-dev libudev-dev libxcb-xfixes0-dev llvm-dev

I might have missed some packages because I already installed other
dev packages to compile other stuff.
I added my instructions at https://wiki.ubuntu.com/Wayland at the
section named "How do I build Wayland manually on Ubuntu?"
If someone goes through the process again on a freshly installed
Ubuntu, it would be good to provide a full list of dev packages that
are required.

Simos


More information about the wayland-devel mailing list