vain / pdfPres

[Discontinued] Dual head PDF presenter: Current slide with context + current slide in fullscreen (Linux, BSD).
http://www.uninformativ.de/projects/_discontinued/pdfpres/
17 stars 10 forks source link

Doesn't build against poppler-0.18.4 #32

Closed moschlar closed 12 years ago

moschlar commented 12 years ago

On Gentoo, poppler got recently updated to 0.18.4 and building pdfpres fails against it.

Build log:

 * Package:    x11-misc/pdfpres-0.2.1
 * Repository: betagarden
 * Maintainer: sping@gentoo.org
 * USE:        elibc_glibc kernel_linux userland_GNU x86
 * FEATURES:   ccache sandbox
>>> Unpacking source...
>>> Unpacking 0.2.1.tar.gz to /var/tmp/portage/x11-misc/pdfpres-0.2.1/work
>>> Source unpacked in /var/tmp/portage/x11-misc/pdfpres-0.2.1/work
>>> Preparing source in /var/tmp/portage/x11-misc/pdfpres-0.2.1/work/vain-pdfPres-de14334 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-misc/pdfpres-0.2.1/work/vain-pdfPres-de14334 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-misc/pdfpres-0.2.1/work/vain-pdfPres-de14334 ...
scons -j3
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o notes.o -c -march=prescott -O2 -pipe -Wall -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/libxml2 notes.c
gcc -o pdfPres.o -c -march=prescott -O2 -pipe -Wall -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/libxml2 pdfPres.c
gcc -o prefs.o -c -march=prescott -O2 -pipe -Wall -Wextra -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/libxml2 prefs.c
pdfPres.c: In function 'getRenderedPixbuf':
pdfPres.c:219:3: warning: implicit declaration of function 'poppler_page_render_to_pixbuf' [-Wimplicit-function-declaration]
pdfPres.c: In function 'idleFillCaches':
pdfPres.c:380:41: warning: unused parameter 'dummy' [-Wunused-parameter]
pdfPres.c: In function 'onQuit':
pdfPres.c:706:35: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:706:53: warning: unused parameter 'ev' [-Wunused-parameter]
pdfPres.c:706:66: warning: unused parameter 'dummy' [-Wunused-parameter]
pdfPres.c: In function 'onOpenClicked':
pdfPres.c:719:38: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:719:55: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onSaveAsClicked':
pdfPres.c:759:40: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:759:57: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onSaveClicked':
pdfPres.c:800:38: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:800:55: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onFontSelectClick':
pdfPres.c:819:42: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:819:59: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onTimerFontSelectClick':
pdfPres.c:843:47: warning: unused parameter 'widget' [-Wunused-parameter]
pdfPres.c:843:64: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onEditToggled':
pdfPres.c:881:55: warning: unused parameter 'data' [-Wunused-parameter]
pdfPres.c: In function 'onBeginUserAction':
pdfPres.c:900:46: warning: unused parameter 'buf' [-Wunused-parameter]
pdfPres.c:900:60: warning: unused parameter 'dummy' [-Wunused-parameter]
pdfPres.c: In function 'onEndUserAction':
pdfPres.c:905:44: warning: unused parameter 'buf' [-Wunused-parameter]
pdfPres.c:905:58: warning: unused parameter 'dummy' [-Wunused-parameter]
pdfPres.c: In function 'onEditing':
pdfPres.c:910:38: warning: unused parameter 'buf' [-Wunused-parameter]
pdfPres.c:910:52: warning: unused parameter 'dummy' [-Wunused-parameter]
pdfPres.c: In function 'onPadKeyPressed':
pdfPres.c:921:44: warning: unused parameter 'widg' [-Wunused-parameter]
pdfPres.c:922:12: warning: unused parameter 'user_data' [-Wunused-parameter]
pdfPres.c: In function 'onKeyPressed':
pdfPres.c:970:12: warning: unused parameter 'user_data' [-Wunused-parameter]
pdfPres.c: In function 'onMouseReleased':
pdfPres.c:1109:44: warning: unused parameter 'widg' [-Wunused-parameter]
pdfPres.c:1110:12: warning: unused parameter 'user_data' [-Wunused-parameter]
pdfPres.c: In function 'onResize':
pdfPres.c:1131:33: warning: unused parameter 'widg' [-Wunused-parameter]
gcc -o pdfPres -Wl,-O1 -Wl,--as-needed -pthread notes.o pdfPres.o prefs.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lpoppler-glib -lgobject-2.0 -lcairo -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm
pdfPres.o: In function `getRenderedPixbuf.isra.4':
pdfPres.c:(.text+0x72e): undefined reference to `poppler_page_render_to_pixbuf'
collect2: ld returned 1 exit status
scons: *** [pdfPres] Error 1
scons: building terminated because of errors.
 * ERROR: x11-misc/pdfpres-0.2.1 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3346:  Called die
 * The specific snippet of code:
 *       escons || die
vain commented 12 years ago

Hi,

this is because you're compiling an old version of pdfpres. That problem has been "fixed" (worked around) in d4b4ca7.

I'll send an email to the gentoo maintainer of pdfpres and ask him if he can use a newer version of pdfpres.

Cheers!

moschlar commented 12 years ago

Hi vain,

I've tested it and it compiles now! I also hacked a new ebuild, I'll mail it to Sebastian, maybe he'll just take it.

Thanks for your quick reply!

vain commented 12 years ago

Hi,

Sebastian just told me that pdfpres is at 0.2.3 now:

http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=4f58b878f89782ded9774887361f3bcb7f145176

Cheers!