Re: wayland on LFS

Nathan Coulson <[email protected]>
Newsgroups gmane.linux.lfs.general
Message-ID <CAFvYhDA9CFasU0AOay146rpds0Zo8q8tbDS9qmgJqfwZLAy1aA@mail.gmail.com>
On Wed, Aug 31, 2011 at 10:40 PM, George <[email protected]> wrote:
> ----- Original message -----
>> On Wed, Aug 31, 2011 at 10:14 PM, George <[email protected]> wrote:
>> > ----- Original message -----
>> > > On Mon, Aug 29, 2011 at 11:39 AM, Nathan Coulson <[email protected]>
>> > > wrote:
>> > > > On Mon, Aug 29, 2011 at 9:42 AM, George <[email protected]>
>> > > > wrote:
>> > > > > Wayland is lighter replacement of X for all I know, that's why I
>> > > > > found it interesting and thought building it LFS would be nice,
>> > > > > so I think what you are trying to do is of interest to at least
>> > > > > one other person :). My only concern was that it was not very
>> > > > > stable and I was not sure what display manager to use etc..
>> > > >
>> > > > well, to make some random guesses,  I imagine it will be unstable &
>> > > > unusable.
>> > > >
>> > > > At best, I would run Xorg on top of wayland, and have the
>> > > > functionality I have now (or most of it)
>> > > >
>> > > > This is for science though :)  like the time I installed KDE 4 on
>> > > > my GMA x3000 board about 2-3 months after the worst state they
>> > > > were ever in.  [was unstable, and crashed within 5-10 minutes].
>> > > >  Not sure if the problem was KDE (not known for stability at that
>> > > > time 4.0 or 4.1, not sure which),  or the git versions of xorg
>> > > > server/mesa/kernel/some other packages.
>> > > >
>> > > > In the end, decided I liked fluxbox (and now openbox) better then
>> > > > KDE, but it was fun :)
>> > >
>> > > Well, I'm lost
>> > > wayland-compositor seems to start the graphics mode,  but I couldn't
>> > > figure out how to run things on top of wayland.
>> > >
>> > > well, so much for science.
>> > >
>> > > http://wayland.freedesktop.org/ has a Building wayland section, if
>> > > anyone wants to follow in my footprints  I added the
>> > > wayland-libraries, and libxkbcommon to the lib section in blfs
>> > > chapter 23, and for mesa I used --with-egl-platforms=x11,wayland,drm
>> > > --enable-gbm --enable-shared-glapi.
>> > >
>> > > although never figured out what --enable-gbm does...
>> > >
>> > > Oh, and I used cairo 1.10.4, although the directions suggested
>> > > 1.11.3.
>> > >
>> > > never gave the compositor a background image, so that's probablyi why
>> > > I saw a garbled background (mouse cursor seemed to work though), and
>> > > it seemed like I could set up more then one compositor.  It just
>> > > replaced the existing virtual terminal.
>> > >
>> > > Review: Looks promising & simple, but I have no clue what I am doing.
>> >
>> > Cool thanks for posting back with the results. Will have to have a
>> > look once I get around to it ....
>> >
>> > Cheers
>>
>> just a thought,    I strayed from their directions, and didn't figure
>> out why it did not work...  and now I have people following my
>> directions, hmm...
>>
>> well, I suppose I did point out half of my mistakes...
>
> Well it would be nice if post everything step by step so people can follow
> or say this is not right... :)

    $ git clone git://anongit.freedesktop.org/wayland/wayland
    $ cd wayland
    $ ./autogen.sh --prefix=/usr
    $ make
    $ make install

    $ git clone git://people.freedesktop.org/xorg/lib/libxkbcommon.git
    $ cd libxkbcommon/
    $ ./autogen.sh --prefix=/usr
    $ make && make install

oh, and I have the latest xorg packages, may differ slightly from BLFS.

Mesa 7.11 (adapted from wayland's build, may not entirely match what I
used, but probably close enough.)
    $ ./autogen.sh --prefix=/usr --enable-gles2  \
      --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi
    $ make && make install

cairo 0.10.3,
    $ ./autogen.sh --prefix=/usr --enable-gl --enable-xcb
    $ make && make install

Wayland Programs
    $ git clone git://anongit.freedesktop.org/wayland/wayland-demos
    $ cd wayland-demos
    $ ./autogen.sh --prefix=/usr
    $ make
    $ make install

wayland-compositor -b [path to background image] starts it up, no clue
how to run programs. The wayland programs are found in the
wayland-demos folder, I don't believe they are installed by default.

see http://wayland.freedesktop.org/building.html for more information.

-- 
Nathan Coulson (conathan)
------
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.