View previous topic :: View next topic |
Author |
Message |
Alejandro Nova n00b
Joined: 08 Sep 2004 Posts: 50
|
Posted: Wed May 10, 2006 3:39 am Post subject: Cairo 1.1.6. |
|
|
Greetings.
I'm trying to make this snapshot work in my Gentoo PC. I'm beginning with a modified cairo-1.0.4.ebuild, like this one.
Code: | # cairo-1.1.6.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit eutils
DESCRIPTION="A vector graphics library with cross-device output support"
HOMEPAGE="http://cairographics.org/"
SRC_URI="http://cairographics.org/snapshots/${P}.tar.gz"
LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc glitz png X svg"
RDEPEND="media-libs/fontconfig
>=media-libs/freetype-2.1
X? ( || ( ( x11-libs/libXrender
x11-libs/libX11 )
virtual/x11 )
virtual/xft )
glitz? ( >=media-libs/glitz-0.5.4* )
png? ( media-libs/libpng )
svg? (
dev-libs/libxml2
>=gnome-base/librsvg-2.0
>=x11-libs/gtk+-2.0 )
!<x11-libs/cairo-0.2"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.9
X? ( || ( x11-proto/renderproto virtual/x11 ) )
doc? ( >=dev-util/gtk-doc-1.3
~app-text/docbook-xml-dtd-4.2 )"
src_compile() {
econf $(use_enable X xlib) \
$(use_with X x) \
$(use_enable png) \
$(use_enable svg) \
$(use_enable doc gtk-doc) \
$(use_enable glitz) || die "./configure failed"
emake || die "Compilation failed"
}
src_install() {
make DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS ChangeLog NEWS README TODO
} |
However, it's failing on me with the following error.
Code: | (...)
creating png-flatten
/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O2 -pipe -fno-ident -fomit-frame-pointer -Wl,-O1 -o pdf2svg pdf2svg-pdf2svg.o libcairotest.la ../src/libcairo.la -lglitz-glx -lX11 -lGL -lpthread -lglitz -lm -lpthread -lpoppler-glib -lpoppler -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O2 -pipe -fno-ident -fomit-frame-pointer -Wl,-O1 -o .libs/pdf2png pdf2png-pdf2png.o ./.libs/libcairotest.a /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libstdc++.so -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib ../src/.libs/libcairo.so /usr/lib64/libglitz-glx.so /usr/lib64/libX11.so /usr/lib64/opengl/nvidia/lib/libGL.so /usr/lib64/libglitz.so -lpthread /usr/lib64/libpoppler-glib.so /usr/lib64/libpoppler.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so -lm -Wl,--rpath -Wl,/usr/lib64/opengl/nvidia/lib
pdf2png-pdf2png.o: In function `main':
pdf2png.c:(.text+0x11f): undefined reference to `poppler_page_render'
collect2: ld returned 1 exit status
make[2]: *** [pdf2png] Error 1
make[2]: *** Se espera a que terminen otras tareas....
x86_64-pc-linux-gnu-gcc -march=k8 -msse3 -O2 -pipe -fno-ident -fomit-frame-pointer -Wl,-O1 -o .libs/pdf2svg pdf2svg-pdf2svg.o ./.libs/libcairotest.a /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/libstdc++.so -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib ../src/.libs/libcairo.so /usr/lib64/libglitz-glx.so /usr/lib64/libX11.so /usr/lib64/opengl/nvidia/lib/libGL.so /usr/lib64/libglitz.so -lpthread /usr/lib64/libpoppler-glib.so /usr/lib64/libpoppler.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgmodule-2.0.so -ldl /usr/lib64/libglib-2.0.so -lm -Wl,--rpath -Wl,/usr/lib64/opengl/nvidia/lib
pdf2svg-pdf2svg.o: In function `main':
pdf2svg.c:(.text+0x115): undefined reference to `poppler_page_render'
collect2: ld returned 1 exit status
make[2]: *** [pdf2svg] Error 1
make[2]: se sale del directorio `/var/tmp/portage/cairo-1.1.6/work/cairo-1.1.6/test'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/var/tmp/portage/cairo-1.1.6/work/cairo-1.1.6'
make: *** [all] Error 2
!!! ERROR: x11-libs/cairo-1.1.6 failed.
Call stack:
ebuild.sh, line 1527: Called dyn_compile
ebuild.sh, line 930: Called src_compile
cairo-1.1.6.ebuild, line 47: Called die
!!! Compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
I have poppler-0.5.1-r1 installed (the version in portage), so, do I need CVS poppler? What can I do to make work here cairo 1.1.6? Is there any fix that can be done to the ebuild? Thanks in advance.
Code: | enchantrix cairo # emerge --info
Portage 2.1_pre10-r5 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r2, 2.6.16-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r6 x86_64 AMD Sempron(tm) Processor 2500+
Gentoo Base System version 1.12.0_pre19
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe -fno-ident -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe -fno-ident -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES"
LC_ALL="es_ES"
LDFLAGS="-Wl,-O1"
LINGUAS="es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 16bit 64bit 7zip S3TC X Xaw3d a52 aac acpi alsa amr asf audacious avi bash-completion berkdb bigger-fonts bitmap-fonts bittorrent bonobo bzip2 cairo caps cdinstall cdparanoia cdr cli corba crypt css cups dbus dga dio directfb dlloader dmi dpms dri dssi dts dvd dvdread eds effects emboss emul-linux-x86 encode evo evolution fam fat fbcon ffmpeg fftw firefox flac fmod foomaticdb fortran gcj gd gecko-sdk gif gimp glibc-omitfp glitz glut glx gnome gnome-print gnomecanvas gpm gsm gstreamer gstreamer010 gtalk gtk gtk2 hal idea imlib imlib2 inkjar isdnlog jack jack-tmpfs java javascript jikes jpeg jpeg2k kde kdeenablefinal kipi ladcca ladspa lcms libsamplerate libvisual linuxthreads-tls lm_sensors lzw lzw-tiff mad mikmod mime mmap modplug mono mozsvg mp3 mpeg mplayer msn musepack music musicbrainz ncurses nls no_wxgtk1 nptl nptlonly nsplugin ntfs nvidia ocaml offensive ogg oggvorbis opengl oss pam pam_console pango pcre pdf pdflib perl pic png ppds pppd python qt quicktime rar readline reflection reiserfs rhino rtc sblive scanner sdl session shared sharedmem shorten sms soundtouch sox spamassassin spell spl sse-filters ssl startup-notification stencil-buffer stlport svg svgz sysfs tcltk tcpd theora threads tiff tools transcode truetype-fonts type1 type1-fonts udev unicode usb userlocales vcd vcdimager vfat videos visualization vorbis wma wmf wv wxwindows x264 xcomposite xgetdefault xml2 xorg xpm xscreensaver xv xvid xvmc zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_es userland_GNU video_cards_nvidia video_cards_vesa"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
|
_________________ Becoming someone beautiful, through my music, my silent devotion...
Alejandro Nova™. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
PeterH n00b
Joined: 09 Nov 2005 Posts: 31
|
|
Back to top |
|
|
crazy-bee Apprentice
Joined: 03 Jan 2003 Posts: 170
|
Posted: Fri May 12, 2006 7:41 pm Post subject: |
|
|
ecatmur wrote: | You'll need a CVS or snapshot build of poppler AND poppler-bindings. There's a poppler-0.5.1.20060506 ebuild in bmg, and a poppler-bindings-0.5.1.20060506 ebuild in my tree at http://catmur.co.uk/svn/repos/gentoo/tree/app-text/poppler-bindings/ . Note that bmg and gnome-experimental have cairo 1.1.6; I've got it installed and it seems to work well. |
Thanks, that helped me, too! |
|
Back to top |
|
|
zietbukuel l33t
Joined: 30 Dec 2005 Posts: 607
|
Posted: Sat May 20, 2006 6:48 pm Post subject: |
|
|
I have this error when updating cairo:
Code: | >>> Emerging (1 of 17) x11-libs/cairo-1.1.6 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking cairo-1.1.6.tar.gz ;-)
>>> Unpacking source...
>>> Unpacking cairo-1.1.6.tar.gz to /var/tmp/portage/cairo-1.1.6/work
* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /usr/portage/x11-libs/cairo/files/cairo-1.1.6-poppler-revert.patch
* ( cairo-1.1.6-poppler-revert.patch )
!!! ERROR: x11-libs/cairo-1.1.6 failed.
Call stack:
ebuild.sh, line 1527: Called dyn_unpack
ebuild.sh, line 703: Called src_unpack
cairo-1.1.6.ebuild, line 44: Called epatch '/usr/portage/x11-libs/cairo/files/cairo-1.1.6-poppler-revert.patch'
eutils.eclass, line 196: Called die
!!! Cannot find $EPATCH_SOURCE!
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
The patch that is trying to find is not there... where can i find it? thanks. |
|
Back to top |
|
|
ecatmur Advocate
Joined: 20 Oct 2003 Posts: 3595 Location: Edinburgh
|
|
Back to top |
|
|
zietbukuel l33t
Joined: 30 Dec 2005 Posts: 607
|
Posted: Sat May 20, 2006 7:42 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
Maleita Apprentice
Joined: 16 Sep 2004 Posts: 246 Location: Brasil -> São Paulo->Campinas
|
Posted: Sat May 20, 2006 10:25 pm Post subject: i solved it!!!!!! |
|
|
Code: |
yanderu@yanderu ~ $ cat /usr/portage/x11-libs/cairo/cairo-1.1.6.ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.1.6.ebuild,v 1.1 2006/05/19 07:32:41 compnerd Exp $
inherit eutils autotools
DESCRIPTION="A vector graphics library with cross-device output support"
HOMEPAGE="http://cairographics.org/"
SRC_URI="http://cairographics.org/snapshots/${P}.tar.gz"
LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="doc glitz png X"
RDEPEND="media-libs/fontconfig
>=media-libs/freetype-2.1
X? (
|| (
(
x11-libs/libXrender
x11-libs/libX11
)
virtual/x11
)
virtual/xft
)
glitz? ( >=media-libs/glitz-0.5.1 )
png? ( media-libs/libpng )
!<x11-libs/cairo-0.2"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.9
X? ( || ( x11-proto/renderproto virtual/x11 ) )
doc? (
>=dev-util/gtk-doc-1.3
~app-text/docbook-xml-dtd-4.2
)"
src_unpack() {
unpack ${A}
cd "${S}"
# No non-cvs version of poppler has poppler_page_render
#epatch "${FILESDIR}"/${P}-poppler-revert.patch
eautoreconf
}
src_compile() {
econf $(use_enable X xlib) \
$(use_enable png) \
$(use_enable doc gtk-doc) \
$(use_enable glitz) \
--enable-freetype || die "./configure failed"
emake || die "Compilation failed"
}
src_install() {
make DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS ChangeLog NEWS README TODO
}
yanderu@yanderu ~ $
|
and make a digest of ebuild ,works!!!!!!! |
|
Back to top |
|
|
Maleita Apprentice
Joined: 16 Sep 2004 Posts: 246 Location: Brasil -> São Paulo->Campinas
|
Posted: Sat May 20, 2006 10:28 pm Post subject: |
|
|
Code: |
emerge -p cairo
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] x11-libs/cairo-1.1.6
|
|
|
Back to top |
|
|
zietbukuel l33t
Joined: 30 Dec 2005 Posts: 607
|
Posted: Sat May 20, 2006 11:04 pm Post subject: Re: i solved it!!!!!! |
|
|
Maleita wrote: | ...and make a digest of ebuild ,works!!!!!!! |
No. It doesn't work... then you have a compilation error... |
|
Back to top |
|
|
Maleita Apprentice
Joined: 16 Sep 2004 Posts: 246 Location: Brasil -> São Paulo->Campinas
|
Posted: Sat May 27, 2006 3:07 am Post subject: |
|
|
But now ,is really solved |
|
Back to top |
|
|
Q-collective Advocate
Joined: 22 Mar 2004 Posts: 2071
|
Posted: Sat May 27, 2006 4:31 am Post subject: |
|
|
How is it solved? |
|
Back to top |
|
|
|