Bug report

Bryce Harrington bryce at canonical.com
Tue Nov 23 09:55:56 PST 2010


You need to build and install cairo from git as well, with GL enabled.
I don't see in your logs whether you did that or not, but it's not
finding the cairo.h header.

You probably should use Darxus' build script, which takes care of all
the dependencies and so on, without disrupting your system installation.

On Tue, Nov 23, 2010 at 01:17:38PM +0100, Wolf Stephan Kappesser wrote:
> Hello,
> 
> while building wayland on Ubuntu 10.10 x64 (under OSX 10.6 with VirtualBox) with all needed libs I get the attached compiling error.
> 
> Complete log of the build using is appended:
> ./autogen.sh --prefix=$HOME/install --sysconfdir=/etc POPPLER_LIBS=-L/home/wolf/install/lib POPPLER_CFLAGS=-I/home/wolf/install/include CLIENT_LIBS=-L/home/wolf/install/lib CLIENT_CFLAGS=-I/home/wolf/install/include CAIRO_GL_LIBS=-L/home/wolf/install/lib/cairo CAIRO_GL_CFLAGS=-I/home/wolf/install/include/cairo &>> wayland_build.log
> 
> ./configure --prefix=$HOME/install --sysconfdir=/etc POPPLER_LIBS=-L/home/wolf/install/lib POPPLER_CFLAGS=-I/home/wolf/install/include CLIENT_LIBS=-L/home/wolf/install/lib CLIENT_CFLAGS=-I/home/wolf/install/include CAIRO_GL_LIBS=-L/home/wolf/install/lib/cairo CAIRO_GL_CFLAGS=-I/home/wolf/install/include/cairo &>> wayland_build.log
> 
> make &>> wayland_build.log
> 

> autoreconf: Entering directory `.'
> autoreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: configure.ac: tracing
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: running: libtoolize --install --copy --force
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./config.guess'
> libtoolize: copying file `./config.sub'
> libtoolize: copying file `./install-sh'
> libtoolize: copying file `./ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: running: /usr/bin/autoconf --force
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: running: /usr/bin/autoheader --force
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: running: automake --add-missing --copy --force-missing
> configure.ac:2: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=wayland
> autoreconf: Leaving directory `.'
> 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 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 for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> 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 for /usr/bin/ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking how to run the C preprocessor... gcc -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 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 -m elf_x86_64) 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... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for FFI... yes
> checking for COMPOSITOR... yes
> checking for CLIENT... yes
> checking for POPPLER... yes
> checking for CAIRO_GL... yes
> checking expat.h usability... yes
> checking expat.h presence... yes
> checking for expat.h... yes
> checking for XML_ParserCreate in -lexpat... yes
> checking for xcb_dri2_connect_alignment_pad in -lxcb-dri2... no
> configure: creating ./config.status
> config.status: creating wayland/wayland-server.pc
> config.status: creating wayland/wayland-client.pc
> config.status: creating Makefile
> config.status: creating wayland/Makefile
> config.status: creating compositor/Makefile
> config.status: creating clients/Makefile
> config.status: creating data/Makefile
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> config.status: executing libtool commands
> 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 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 for style of include used by make... GNU
> checking dependency style of gcc... gcc3
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> 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 for /usr/bin/ld option to reload object files... -r
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for ar... ar
> checking for strip... strip
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking how to run the C preprocessor... gcc -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 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 -m elf_x86_64) 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... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for FFI... yes
> checking for COMPOSITOR... yes
> checking for CLIENT... yes
> checking for POPPLER... yes
> checking for CAIRO_GL... yes
> checking expat.h usability... yes
> checking expat.h presence... yes
> checking for expat.h... yes
> checking for XML_ParserCreate in -lexpat... yes
> checking for xcb_dri2_connect_alignment_pad in -lxcb-dri2... no
> configure: creating ./config.status
> config.status: creating wayland/wayland-server.pc
> config.status: creating wayland/wayland-client.pc
> config.status: creating Makefile
> config.status: creating wayland/Makefile
> config.status: creating compositor/Makefile
> config.status: creating clients/Makefile
> config.status: creating data/Makefile
> config.status: creating config.h
> config.status: config.h is unchanged
> config.status: executing depfiles commands
> config.status: executing libtool commands
> make  all-recursive
> make[1]: Betrete Verzeichnis '/home/wolf/wayland'
> Making all in wayland
> make[2]: Betrete Verzeichnis '/home/wolf/wayland/wayland'
> make  all-am
> make[3]: Betrete Verzeichnis '/home/wolf/wayland/wayland'
> make[3]: F??r das Ziel ??all-am?? ist nichts zu tun.
> make[3]: Verlasse Verzeichnis '/home/wolf/wayland/wayland'
> make[2]: Verlasse Verzeichnis '/home/wolf/wayland/wayland'
> Making all in compositor
> make[2]: Betrete Verzeichnis '/home/wolf/wayland/compositor'
> make  all-am
> make[3]: Betrete Verzeichnis '/home/wolf/wayland/compositor'
> make[3]: F??r das Ziel ??all-am?? ist nichts zu tun.
> make[3]: Verlasse Verzeichnis '/home/wolf/wayland/compositor'
> make[2]: Verlasse Verzeichnis '/home/wolf/wayland/compositor'
> Making all in clients
> make[2]: Betrete Verzeichnis '/home/wolf/wayland/clients'
> make  all-am
> make[3]: Betrete Verzeichnis '/home/wolf/wayland/clients'
>   CC     window.lo
> window.c:33: fatal error: cairo.h: No such file or directory
> compilation terminated.
> make[3]: *** [window.lo] Fehler 1
> make[3]: Verlasse Verzeichnis '/home/wolf/wayland/clients'
> make[2]: *** [all] Fehler 2
> make[2]: Verlasse Verzeichnis '/home/wolf/wayland/clients'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Verlasse Verzeichnis '/home/wolf/wayland'
> make: *** [all] Fehler 2

> 
> 
> 
> Best regards
> WSK

> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel



More information about the wayland-devel mailing list