checking pkg-config is at least version 0.9.0... yes
checking for WAYLAND_SCANNER... no
configure: error: Package requirements (wayland-scanner) were not met:
No package ‘wayland-scanner‘ 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 WAYLAND_SCANNER_CFLAGS
and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决:
$ git clone git://anongit.freedesktop.org/wayland/wayland
$ cd wayland
$ ./autogen.sh --prefix=$WLD
$ make && make install
$ cd ..
(3)./autogen.sh出错,解决方法:
apt-get install autoconf
(4)继续安装wayland:
root@ubuntu:/mnt/shared/wayland# ./autogen.sh
autoreconf: Entering directory `.‘
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:23: installing ‘./install-sh‘
configure.ac:23: installing ‘./missing‘
Makefile.am:140: error: Libtool library used but ‘LIBTOOL‘ is undefined
Makefile.am:140: The usual way to define ‘LIBTOOL‘ is to add ‘LT_INIT‘
Makefile.am:140: to ‘configure.ac‘ and run ‘aclocal‘ and ‘autoconf‘ again.
Makefile.am:140: If ‘LT_INIT‘ is in ‘configure.ac‘, make sure
Makefile.am:140: its definition is in aclocal‘s search path.
Makefile.am: installing ‘./depcomp‘
parallel-tests: installing ‘./test-driver‘
autoreconf: automake failed with exit status: 1
root@ubuntu:/mnt/shared/wayland#
(5) error: Libtool library used but ‘LIBTOOL‘ is undefined
解决方法: apt-get install libtool试下
(6)继续编译wayland
configure: error: Package requirements (libffi) were not met:
No package ‘libffi‘ 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 FFI_CFLAGS
and FFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
root@ubuntu:/mnt/shared/wayland#
解决方法:下载安装libffi库:
wget ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz
./configure
make
make install
(8)继续编译wayland:
./autogen.sh
出现如下问题:
checking for doxygen... no
configure: error: Documentation build requested but doxygen not found. Install doxygen or disable the documentation using --disable-documentation
root@ubuntu:/mnt/shared/wayland#
解决方法:
./configure --disable-documentation
(9)配置wayland成功,编译安装:
make
make install