build wayland cairo-util.o Error 1

Mandeep Singh Baines msb at chromium.org
Tue Nov 1 16:41:12 PDT 2011


李晓鹭 (linyuzong at 163.com) wrote:
> build wayland
> autoreconf: Entering directory `.'
> autoreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal -I /home/scott/wayland/share/aclocal --force
> 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: 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.
> 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
> configure.ac:10: installing `./missing'
> clients/Makefile.am: installing `./depcomp'
> 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... i686-pc-linux-gnu
> checking host system type... i686-pc-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) 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 for COMPOSITOR... yes
> checking for rsvg-convert... no
> checking for XSERVER_LAUNCHER... yes
> checking for XCB... yes
> checking for xcb_poll_for_queued_event... no
> checking for X11_COMPOSITOR... yes
> checking for DRM_COMPOSITOR... yes
> checking for WAYLAND_COMPOSITOR... yes
> checking for SIMPLE_CLIENT... yes
> checking for CLIENT... yes
> checking for POPPLER... no
> checking for CAIRO_EGL... yes
> checking for jpeg_CreateDecompress in -ljpeg... yes
> checking for wayland-scanner... /home/scott/wayland/bin/wayland-scanner
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating compositor/Makefile
> config.status: creating clients/Makefile
> config.status: creating data/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> make  all-recursive
> make[1]: Entering directory `/home/scott/src/wayland/wayland-demos'
> Making all in compositor
> make[2]: Entering directory `/home/scott/src/wayland/wayland-demos/compositor'
>   GEN    screenshooter-server-protocol.h
>   GEN    screenshooter-protocol.c
>   GEN    meego-tablet-protocol.c
>   GEN    meego-tablet-server-protocol.h
>   GEN    xserver-protocol.c
>   GEN    xserver-server-protocol.h
>   GEN    desktop-shell-protocol.c
>   GEN    desktop-shell-server-protocol.h
> make  all-am
> make[3]: Entering directory `/home/scott/src/wayland/wayland-demos/compositor'
>   CC     desktop_shell_la-shell.lo
>   CC     desktop_shell_la-switcher.lo
>   CC     desktop_shell_la-desktop-shell-protocol.lo
>   CCLD   desktop-shell.la
>   CC     meego_tablet_shell_la-meego-tablet-shell.lo
>   CC     meego_tablet_shell_la-meego-tablet-protocol.lo
>   CCLD   meego-tablet-shell.la
>   CC     x11_backend_la-compositor-x11.lo
>   CCLD   x11-backend.la
>   CC     drm_backend_la-compositor-drm.lo
>   CC     drm_backend_la-tty.lo
>   CC     drm_backend_la-evdev.lo
>   CCLD   drm-backend.la
>   CC     wayland_backend_la-compositor-wayland.lo
>   CCLD   wayland-backend.la
>   CC     wayland_compositor-compositor.o
>   CC     wayland_compositor-image-loader.o
> image-loader.c: In function ‘read_func’:
> image-loader.c:75:11: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
>   CC     wayland_compositor-screenshooter.o
>   CC     wayland_compositor-screenshooter-protocol.o
>   CC     wayland_compositor-xserver-launcher.o
>   CC     wayland_compositor-xserver-protocol.o
>   CCLD   wayland-compositor
> make[3]: Leaving directory `/home/scott/src/wayland/wayland-demos/compositor'
> make[2]: Leaving directory `/home/scott/src/wayland/wayland-demos/compositor'
> Making all in clients
> make[2]: Entering directory `/home/scott/src/wayland/wayland-demos/clients'
>   GEN    screenshooter-client-protocol.h
>   GEN    screenshooter-protocol.c
>   GEN    desktop-shell-client-protocol.h
>   GEN    desktop-shell-protocol.c
> make  all-am
> make[3]: Entering directory `/home/scott/src/wayland/wayland-demos/clients'
>   CC     window.o
>   CC     cairo-util.o
> cairo-util.c: In function ‘load_jpeg’:
> cairo-util.c:313:26: error: ‘JCS_EXT_BGRX’ undeclared (first use in this function)

I was able to get around this by using libjpeg-turbo. This constant
may not exist in libjpeg.

> cairo-util.c:313:26: note: each undeclared identifier is reported only once for each function it appears in
> make[3]: *** [cairo-util.o] Error 1
> make[3]: Leaving directory `/home/scott/src/wayland/wayland-demos/clients'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/scott/src/wayland/wayland-demos/clients'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/scott/src/wayland/wayland-demos'
> make: *** [all] Error 2
> google  found   pastebin.com/dpwAJZM7  and
> unixforum.org/index.php?showtopic=129188
> thanks
>  
>  
> 
> 
> 
> 网易公开课推出哈佛最受欢迎《幸福》课程,帮您修满幸福学分!

> _______________________________________________
> 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