[cairo] Cairo error: mandatory image surface backend feature could not be enabled

Andrea Canciani ranma42 at gmail.com
Sat Aug 21 08:34:54 PDT 2010


On Sat, Aug 21, 2010 at 5:19 PM, NICHOLAS KLINE <nkline at kent.edu> wrote:
> Hi,
>
> PROBLEM
> I have spent the last 10 hours trying to install Cairo on RedHat
> Enterprise Linux 5.5 x86_64 without success.
> Cairo returns this error during configuration: "configure: error:
> mandatory image surface backend feature could not be enabled"
> Please provide guidance on how to proceed from here.
>
>
> WORK DONE SO FAR
> Install dependencies first
>        these version were already installed:
>                libpng-devel 1.2.10
>                zlib-devel 1.2.3
>                libXrender-devel 0.9.1
>                fontconfig-devel 2.4.1
>
> FYI
>        qpixman 0.13.3 was already installed (sounds like a variation of
> pixman, I left it alone)
>        Cairo 1.2.4 was already installed (looks like a lot of other programs
> depend on it, I left it alone)
>
>
> Install pixman
>        cd /tmp
>        sudo tar -xzvf pixman-0.18.4.tar.gz
>        cd pixman-0.18.4
>        configure the package: sudo ./configure --exec-prefix=/usr/local/lib64
>        compile the package: sudo make
>        run verification tests: sudo make check (all 10 tests passed)
>        install the program: sudo make install
>                Results:
>                Making install in pixman
>                make[1]: Entering directory `/tmp/pixman-0.18.4/pixman'
>                make  install-am
>                make[2]: Entering directory `/tmp/pixman-0.18.4/pixman'
>                make[3]: Entering directory `/tmp/pixman-0.18.4/pixman'
>                test -z "/usr/local/lib64/lib" || /bin/mkdir -p "/usr/local/lib64/lib"
>                 /bin/sh ../libtool   --mode=install /usr/bin/install -c
> libpixman-1.la '/usr/local/lib64/lib'
>                libtool: install: /usr/bin/install -c .libs/libpixman-1.so.0.18.4
> /usr/local/lib64/lib/libpixman-1.so.0.18.4
>                libtool: install: (cd /usr/local/lib64/lib && { ln -s -f
> libpixman-1.so.0.18.4 libpixman-1.so.0 || { rm -f libpixman-1.so.0 &&
> ln -s libpixman-1.so.0.18.4 libpixman-1.so.0; }; })
>                libtool: install: (cd /usr/local/lib64/lib && { ln -s -f
> libpixman-1.so.0.18.4 libpixman-1.so || { rm -f libpixman-1.so && ln
> -s libpixman-1.so.0.18.4 libpixman-1.so; }; })
>                libtool: install: /usr/bin/install -c .libs/libpixman-1.lai
> /usr/local/lib64/lib/libpixman-1.la
>                libtool: install: /usr/bin/install -c .libs/libpixman-1.a
> /usr/local/lib64/lib/libpixman-1.a
>                libtool: install: chmod 644 /usr/local/lib64/lib/libpixman-1.a
>                libtool: install: ranlib /usr/local/lib64/lib/libpixman-1.a
>                libtool: finish: PATH="/usr/bin:/bin:/sbin" ldconfig -n /usr/local/lib64/lib
>                ----------------------------------------------------------------------
>                Libraries have been installed in:
>                   /usr/local/lib64/lib
>
>                                If you ever happen to want to link against installed libraries
>                                in a given directory, LIBDIR, you must either use libtool, and
>                                specify the full pathname of the library, or use the `-LLIBDIR'
>                                flag during linking and do at least one of the following:
>                                   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>                                     during execution
>                                   - add LIBDIR to the `LD_RUN_PATH' environment variable
>                                     during linking
>                                   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
>                                   - have your system administrator add LIBDIR to `/etc/ld.so.conf'
>
>                                See any operating system documentation about shared libraries for
>                                more information, such as the ld(1) and ld.so(8) manual pages.
>                                ----------------------------------------------------------------------
>                                test -z "/usr/local/include/pixman-1/" || /bin/mkdir -p
> "/usr/local/include/pixman-1/"
>                                 /usr/bin/install -c -m 644 pixman.h pixman-version.h
> '/usr/local/include/pixman-1/'
>                                make[3]: Leaving directory `/tmp/pixman-0.18.4/pixman'
>                                make[2]: Leaving directory `/tmp/pixman-0.18.4/pixman'
>                                make[1]: Leaving directory `/tmp/pixman-0.18.4/pixman'
>                                Making install in test
>                                make[1]: Entering directory `/tmp/pixman-0.18.4/test'
>                                make[2]: Entering directory `/tmp/pixman-0.18.4/test'
>                                make[2]: Nothing to be done for `install-exec-am'.
>                                make[2]: Nothing to be done for `install-data-am'.
>                                make[2]: Leaving directory `/tmp/pixman-0.18.4/test'
>                                make[1]: Leaving directory `/tmp/pixman-0.18.4/test'
>                                make[1]: Entering directory `/tmp/pixman-0.18.4'
>                                make[2]: Entering directory `/tmp/pixman-0.18.4'
>                                make[2]: Nothing to be done for `install-exec-am'.
>                                test -z "/usr/local/lib64/lib/pkgconfig" || /bin/mkdir -p
> "/usr/local/lib64/lib/pkgconfig"
>                                 /usr/bin/install -c -m 644 pixman-1.pc '/usr/local/lib64/lib/pkgconfig'
>                                make[2]: Leaving directory `/tmp/pixman-0.18.4'
>                                make[1]: Leaving directory `/tmp/pixman-0.18.4'
>                        Remove the program binaries and object files from the source code
> directory: sudo make clean
>                        Remove the files that `configure' created: sudo make distclean
>
>
> /usr/local/lib64/lib
> total 5420
> drwxr-xr-x 3 root root    4096 Aug 20 18:00 .
> drwxr-xr-x 3 root root    4096 Aug 20 18:00 ..
> -rw-r--r-- 1 root root 3381126 Aug 20 18:00 libpixman-1.a
> -rwxr-xr-x 1 root root     961 Aug 20 18:00 libpixman-1.la
> lrwxrwxrwx 1 root root      21 Aug 20 18:00 libpixman-1.so ->
> libpixman-1.so.0.18.4
> lrwxrwxrwx 1 root root      21 Aug 20 18:00 libpixman-1.so.0 ->
> libpixman-1.so.0.18.4
> -rwxr-xr-x 1 root root 2136324 Aug 20 18:00 libpixman-1.so.0.18.4
> drwxr-xr-x 2 root root    4096 Aug 20 18:00 pkgconfig
>
> /usr/local/lib64/lib/pkgconfig
> total 12
> drwxr-xr-x 2 root root 4096 Aug 20 18:00 .
> drwxr-xr-x 3 root root 4096 Aug 20 18:00 ..
> -rw-r--r-- 1 root root  241 Aug 20 18:00 pixman-1.pc
>
>
> Install Cairo
>        cd /tmp
>        sudo tar -xzvf cairo-1.8.10.tar.gz
>        cd cairo-1.8.10
>        export PKG_CONFIG_PATH=/usr/local/lib64/lib/pkgconfig

Please check that if you run:
   pkg-config --modversion pixman-1
you get a valid output (i.e., in your case)
   0.18.4

>        Configure the package: sudo ./configure --exec-prefix=/usr/local/lib64
>                Results:
>                -bash-3.2$ sudo ./configure --exec-prefix=/usr/local/lib64
>                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... gawk
>                checking whether make sets $(MAKE)... yes
>                checking build system type... x86_64-unknown-linux-gnu
>                checking host system type... x86_64-unknown-linux-gnu
>                checking for style of include used by make... GNU
>                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 dependency style of gcc... gcc3
>                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... 98304
>                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 bash... /bin/bash
>                checking if dolt supports this host... yes, replacing libtool
>                checking for pkg-config... /usr/bin/pkg-config
>                checking pkg-config is at least version 0.9.0... yes
>                checking whether to build gtk-doc documentation... no
>                checking for gtkdoc-check... no
>                checking for find... /usr/bin/find
>                checking for xargs... /usr/bin/xargs
>                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 dependency style of gcc... (cached) gcc3
>                checking how to run the C preprocessor... gcc -E
>                checking for g++... g++
>                checking whether we are using the GNU C++ compiler... yes
>                checking whether g++ accepts -g... yes
>                checking dependency style of g++... gcc3
>                checking whether we are using the GNU C++ compiler... (cached) yes
>                checking whether g++ accepts -g... (cached) yes
>                checking dependency style of g++... (cached) gcc3
>                checking how to run the C++ preprocessor... g++ -E
>                checking for ld used by g++... /usr/bin/ld -m elf_x86_64
>                checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
>                checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
> shared libraries... yes
>                checking for g++ option to produce PIC... -fPIC -DPIC
>                checking if g++ PIC flag -fPIC -DPIC works... yes
>                checking if g++ static flag -static works... yes
>                checking if g++ supports -c -o file.o... yes
>                checking if g++ supports -c -o file.o... (cached) yes
>                checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
> shared libraries... yes
>                checking dynamic linker characteristics... GNU/Linux ld.so
>                checking how to hardcode library paths into programs... immediate
>                checking whether gcc and cc understand -c and -o together... yes
>                checking for inline... inline
>                checking for pkg-config... (cached) /usr/bin/pkg-config
>                checking pkg-config is at least version 0.9.0... yes
>                checking whether byte ordering is bigendian... no
>                checking whether float word ordering is bigendian... no
>                checking for native atomic primitives... Intel
>                checking whether atomic ops require a memory barrier... no
>                checking for native Win32... no
>                checking for Sun Solaris (non-POSIX ctime_r)... no
>                checking for cos in -lm... yes
>                checking for sched_yield in -lrt... yes
>                checking for stdint.h... (cached) yes
>                checking for inttypes.h... (cached) yes
>                checking sys/int_types.h usability... no
>                checking sys/int_types.h presence... no
>                checking for sys/int_types.h... no
>                checking for uint64_t... yes
>                checking for uint128_t... no
>                checking fcntl.h usability... yes
>                checking fcntl.h presence... yes
>                checking for fcntl.h... yes
>                checking for unistd.h... (cached) yes
>                checking signal.h usability... yes
>                checking signal.h presence... yes
>                checking for signal.h... yes
>                checking for sys/stat.h... (cached) yes
>                checking sys/socket.h usability... yes
>                checking sys/socket.h presence... yes
>                checking for sys/socket.h... yes
>                checking sys/poll.h usability... yes
>                checking sys/poll.h presence... yes
>                checking for sys/poll.h... yes
>                checking sys/un.h usability... yes
>                checking sys/un.h presence... yes
>                checking for sys/un.h... yes
>                checking sched.h usability... yes
>                checking sched.h presence... yes
>                checking for sched.h... yes
>                checking for sched_getaffinity... yes
>                checking fenv.h usability... yes
>                checking fenv.h presence... yes
>                checking for fenv.h... yes
>                checking for feenableexcept... yes
>                checking for fedisableexcept... yes
>                checking libgen.h usability... yes
>                checking libgen.h presence... yes
>                checking for libgen.h... yes
>                checking byteswap.h usability... yes
>                checking byteswap.h presence... yes
>                checking for byteswap.h... yes
>                checking for signal.h... (cached) yes
>                checking setjmp.h usability... yes
>                checking setjmp.h presence... yes
>                checking for setjmp.h... yes
>                checking for vasnprintf... no
>                checking for link... yes
>                checking for ctime_r... yes
>                checking for drand48... yes
>                checking for flockfile... yes
>                checking windows.h usability... no
>                checking windows.h presence... no
>                checking for windows.h... no
>                checking for supported warning flags...
>                checking whether gcc supports -Wall... no
>                checking whether gcc supports -Wextra... no
>                checking whether gcc supports -Wsign-compare... no
>                checking whether gcc supports -Werror-implicit-function-declaration... no
>                checking whether gcc supports -Wpointer-arith... no
>                checking whether gcc supports -Wwrite-strings... no
>                checking whether gcc supports -Wstrict-prototypes... no
>                checking whether gcc supports -Wmissing-prototypes... no
>                checking whether gcc supports -Wmissing-declarations... no
>                checking whether gcc supports -Wnested-externs... no
>                checking whether gcc supports -Wpacked... no
>                checking whether gcc supports -Wswitch-enum... no
>                checking whether gcc supports -Wmissing-format-attribute... no
>                checking whether gcc supports -Wstrict-aliasing=2... no
>                checking whether gcc supports -Winit-self... no
>                checking whether gcc supports -Wunsafe-loop-optimizations... no
>                checking whether gcc supports -Wdeclaration-after-statement... no
>                checking whether gcc supports -Wold-style-definition... no
>                checking whether gcc supports -Wno-missing-field-initializers... no
>                checking whether gcc supports -Wno-unused-parameter... no
>                checking whether gcc supports -Wno-attributes... no
>                checking whether gcc supports -Wno-long-long... no
>                checking whether gcc supports -Winline... no
>                checking whether gcc supports -fno-strict-aliasing... no
>                checking whether gcc supports -fno-common... no
>                checking whether gcc supports -Wp,-D_FORTIFY_SOURCE=2... no
>                checking which warning flags were supported...
>                checking how to enable unused result warnings...
>                checking how to allow undefined symbols in shared libraries used by
> test suite... checking whether gcc supports
> -Wl,--allow-shlib-undefined... no
>
>                checking for VALGRIND... no
>                no
>                checking for compress in -lz... yes
>                checking zlib.h usability... yes
>                checking zlib.h presence... yes
>                checking for zlib.h... yes
>                checking for X... libraries , headers
>                checking for cairo's Xlib surface backend feature...
>                checking for xlib... yes
>                checking whether cairo's Xlib surface backend feature could be enabled... yes
>                checking for cairo's Xlib Xrender surface backend feature...
>                checking for xlib_xrender... yes
>                checking whether cairo's Xlib Xrender surface backend feature could
> be enabled... yes
>                checking for cairo's Quartz surface backend feature...
>                checking ApplicationServices/ApplicationServices.h usability... no
>                checking ApplicationServices/ApplicationServices.h presence... no
>                checking for ApplicationServices/ApplicationServices.h... no
>                checking CoreGraphics/CoreGraphics.h usability... no
>                checking CoreGraphics/CoreGraphics.h presence... no
>                checking for CoreGraphics/CoreGraphics.h... no
>                checking whether cairo's Quartz surface backend feature could be
> enabled... no (requires CoreGraphics framework)
>                checking for cairo's Quartz font backend feature...
>                checking whether cairo's Quartz font backend feature could be
> enabled... no (requires CoreGraphics framework)
>                checking for cairo's Microsoft Windows surface backend feature...
>                checking whether cairo's Microsoft Windows surface backend feature
> could be enabled... no (requires a Win32 platform)
>                checking for cairo's Microsoft Windows font backend feature...
>                checking whether cairo's Microsoft Windows font backend feature
> could be enabled... no (requires a Win32 platform)
>                checking for cairo's PNG functions feature...
>                checking for png... yes
>                checking whether cairo's PNG functions feature could be enabled... yes
>                checking for cairo's FreeType font backend feature...
>                checking for FONTCONFIG... yes
>                checking for FcFini... yes
>                checking for FREETYPE... yes
>                checking whether cairo's FreeType font backend feature could be enabled... yes
>                checking for FT_Bitmap_Size.y_ppem... yes
>                checking for FT_GlyphSlot_Embolden... yes
>                checking for FT_Load_Sfnt_Table... yes
>                checking for FT_Library_SetLcdFilter... no
>                checking pthread.h usability... yes
>                checking pthread.h presence... yes
>                checking for pthread.h... yes
>                checking for cairo's PostScript surface backend feature...
>                checking whether cairo's PostScript surface backend feature could be
> enabled... yes
>                checking for gs... gs
>                checking for LIBSPECTRE... no
>                no
>                checking for cairo's PDF surface backend feature...
>                checking whether cairo's PDF surface backend feature could be enabled... yes
>                checking for POPPLER... no
>                no
>                configure: WARNING: PDF backend will not be tested since poppler >=
> 0.9.2 is not available
>                checking for cairo's SVG surface backend feature...
>                checking whether cairo's SVG surface backend feature could be enabled... yes
>                checking for LIBRSVG... yes
>                checking for rsvg_pixbuf_from_file... yes
>                checking for cairo's image surface backend feature...
>                checking for pixman... no
>                no
>                checking whether cairo's image surface backend feature could be
> enabled... no (requires pixman-1 >= 0.12.0
> http://cairographics.org/releases/)
>                configure: error: mandatory image surface backend feature could not be enabled
> --- end ---
>
> Thank you,
>
> Nick
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list