Page 1 of 1

Installing Wayland error

Posted: Sat Nov 16, 2013 4:24 pm
by siuchocho
Hello All,

I am new to this Forum and nice to meet you all!
Recently, I have read some stuff about Wayland on Pi and have interest to try.
So I just start to follow the guideline here: http://wayland.freedesktop.org/raspberrypi.html
Everything goes fine until here: Weston and demo applications part

I followed its command but it ended with error:
$ ./autogen.sh --prefix=$WLD --disable-setuid-install \
--disable-x11-compositor --disable-drm-compositor \
--disable-fbdev-compositor --disable-wayland-compositor \
--disable-weston-launch --disable-simple-egl-clients --disable-egl \
--disable-libunwind --disable-colord --disable-resize-optimization \
--disable-xwayland-test \
WESTON_NATIVE_BACKEND="rpi-backend.so"

The Error message is as below:

Code: Select all

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I /home/pi/wayland/share/aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make supports nested variables... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a sed that does not truncate output... /bin/sed
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv6l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether SFD_CLOEXEC is declared... yes
checking whether TFD_CLOEXEC is declared... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for mkostemp... yes
checking for strchrnul... yes
checking for initgroups... yes
checking for XWAYLAND... no
configure: error: Package requirements (xcb xcb-xfixes xcb-composite xcursor cairo-xcb) were not met:

No package 'xcb-composite' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XWAYLAND_CFLAGS
and XWAYLAND_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Can any experts give me advise about how to fix this?

Thank you very much!
JC

Re: Installing Wayland error

Posted: Sat Nov 16, 2013 11:35 pm
by hunternet93
These kinds of errors indicate you're missing software libraries needed to compile Wayland, you can fix it by installed the package mentioned, in this case "xcb-composite".

Code: Select all

$ apt-cache search xcb-composite
libxcb-composite0 - X C Binding, composite extension
libxcb-composite0-dbg - X C Binding, composite extension, debugging symbols
libxcb-composite0-dev - X C Binding, composite extension, development files
The package you want ends with "-dev", which means it contains the header files needed when compiling. Apt will automatically install any other needed pacakges, just run:

Code: Select all

sudo apt-get install libxcb-composite0-dev
Do the same for any other similar errors you may get. Most pieces of software include a list of packages needed to compile it, usually in the "INSTALL" or "README" files, which you can open with Nano or Leafpad.

Re: Installing Wayland error

Posted: Sun Nov 17, 2013 4:36 pm
by siuchocho
Thank you hunternet93, your command solved my question!
I am resuming the other steps.
Thanks again.

Re: Installing Wayland error

Posted: Tue Nov 19, 2013 7:34 am
by ric96
hey, i too am working on installing way land and i am getting th following error pl. help!!

Code: Select all

pi@raspberrypi ~/wayland/libxkbcommon/weston $ make
make  all-recursive
make[1]: Entering directory `/home/pi/wayland/libxkbcommon/weston'
Making all in shared
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/shared'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/shared'
Making all in src
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/src'
  GEN    git-version.h
make  all-recursive
make[3]: Entering directory `/home/pi/wayland/libxkbcommon/weston/src'
Making all in xwayland
make[4]: Entering directory `/home/pi/wayland/libxkbcommon/weston/src/xwayland'
make  all-am
make[5]: Entering directory `/home/pi/wayland/libxkbcommon/weston/src/xwayland'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/src/xwayland'
make[4]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/src/xwayland'
make[4]: Entering directory `/home/pi/wayland/libxkbcommon/weston/src'
  GEN    git-version.h
make[4]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/src'
make[3]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/src'
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/src'
Making all in clients
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/clients'
make  all-am
make[3]: Entering directory `/home/pi/wayland/libxkbcommon/weston/clients'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/clients'
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/clients'
Making all in data
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/data'
Making all in protocol
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/protocol'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/protocol'
Making all in tests
make[2]: Entering directory `/home/pi/wayland/libxkbcommon/weston/tests'
make  all-am
make[3]: Entering directory `/home/pi/wayland/libxkbcommon/weston/tests'
  CC     vertex-clip-test.o
In file included from vertex-clip-test.c:30:0:
../src/vertex-clipping.h:25:23: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
make[3]: *** [vertex-clip-test.o] Error 1
make[3]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/tests'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pi/wayland/libxkbcommon/weston/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pi/wayland/libxkbcommon/weston'
make: *** [all] Error 2

Re: Installing Wayland error

Posted: Tue Nov 19, 2013 6:00 pm
by siuchocho
Hi Ric96,

You can try to
cp -r /opt/vc/include/GLES2/ $WLD/weston/src/.

Hope this can help.

Re: Installing Wayland error

Posted: Tue Nov 19, 2013 8:50 pm
by pwinwood
When I get round to it I have a patch to fix this problem to send to the wayland group. Comment out the test file that fails to compile.

Re: Installing Wayland error

Posted: Wed Nov 20, 2013 12:45 pm
by Mogwai
Hey Ric96,
prepending your configure line with CFLAGS="-I/opt/vc/include" should fix your problem.

Some more info that might help here:
http://www.intestinate.com/pilfs/beyond.html#wayland

Re: Installing Wayland error

Posted: Thu Nov 21, 2013 5:53 am
by ric96
Still some issues although it compiled well

every time i start i have to add

Code: Select all

export XDG_RUNTIME_DIR="/run/shm/wayland"
mkdir -p "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
even then i cannot run x applications like scratch , midori , libreoffice
all with the same error

Code: Select all

cannot open display
pl. help