Package Details: photoprint 0.4.2rc2-8

Git Clone URL: https://aur.archlinux.org/photoprint.git (read-only)
Package Base: photoprint
Description: A gtk-utility designed to assist printing of digital photographs with PDF-preview, adjustable page size, multiple images per page and optional border styles.
Upstream URL: http://www.blackfiveimaging.co.uk/index.php?article=02Software%2F01PhotoPrint
Keywords: cups gtk gutenprint image photo print
Licenses: GPL
Submitter: kaptoxic
Maintainer: Ji_M
Last Packager: Ji_M
Votes: 3
Popularity: 0.000097
First Submitted: 2016-08-30 23:14
Last Updated: 2017-04-23 22:40

Latest Comments

dreieck commented on 2019-04-06 13:34

Fails to build for me, too.

The error message of g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -O3 -g0 -march=native -ftree-vectorize -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -fPIC -pie -fPIE -fstack-protector -fpermissive -MT printoutputselector.lo -MD -MP -MF .deps/printoutputselector.Tpo -c printoutputselector.cpp -fPIC -DPIC -o .libs/printoutputselector.o:

gprinter.cpp: In member function ‘virtual void GPrinter::GetImageableArea()’:
gprinter.cpp:430:32: error: ‘stp_get_papersize_by_name’ was not declared in this scope
   const stp_papersize_t *paper=stp_get_papersize_by_name(papersize);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
gprinter.cpp:430:32: note: suggested alternative: ‘stp_list_get_item_by_name’
   const stp_papersize_t *paper=stp_get_papersize_by_name(papersize);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
                                stp_list_get_item_by_name
gprinter.cpp:444:32: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
     stp_get_size_limit(stpvars,&mw,&mh,&nw,&nh);
                                ^~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1487:23: note:   initializing argument 2 of ‘void stp_get_size_limit(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*)’
      stp_dimension_t *max_width, stp_dimension_t *max_height,
      ~~~~~~~~~~~~~~~~~^~~~~~~~~
gprinter.cpp:459:32: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
     stp_get_size_limit(stpvars,&mw,&mh,&nw,&nh);
                                ^~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1487:23: note:   initializing argument 2 of ‘void stp_get_size_limit(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*)’
      stp_dimension_t *max_width, stp_dimension_t *max_height,
      ~~~~~~~~~~~~~~~~~^~~~~~~~~
gprinter.cpp:469:31: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
   stp_get_media_size(stpvars, &pagewidth, &pageheight);
                               ^~~~~~~~~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1416:28: note:   initializing argument 2 of ‘void stp_get_media_size(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*)’
           stp_dimension_t *width, stp_dimension_t *height);
           ~~~~~~~~~~~~~~~~~^~~~~
gprinter.cpp:473:34: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
  stp_get_imageable_area(stpvars, &l, &r, &b, &t);
                                  ^~

And here, for completeness, the complete terminal output of the build()-process from invocation of the failing g++-command up to the end:

[...]
 g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -O3 -g0 -march=native -ftree-vectorize -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -fPIC -pie -fPIE -fstack-protector -fpermissive -MT printoutputselector.lo -MD -MP -MF .deps/printoutputselector.Tpo -c printoutputselector.cpp  -fPIC -DPIC -o .libs/printoutputselector.o
gprinter.cpp: In member function ‘virtual void GPrinter::GetImageableArea()’:
gprinter.cpp:430:32: error: ‘stp_get_papersize_by_name’ was not declared in this scope
   const stp_papersize_t *paper=stp_get_papersize_by_name(papersize);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
gprinter.cpp:430:32: note: suggested alternative: ‘stp_list_get_item_by_name’
   const stp_papersize_t *paper=stp_get_papersize_by_name(papersize);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~
                                stp_list_get_item_by_name
gprinter.cpp:444:32: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
     stp_get_size_limit(stpvars,&mw,&mh,&nw,&nh);
                                ^~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1487:23: note:   initializing argument 2 of ‘void stp_get_size_limit(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*)’
      stp_dimension_t *max_width, stp_dimension_t *max_height,
      ~~~~~~~~~~~~~~~~~^~~~~~~~~
gprinter.cpp:459:32: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
     stp_get_size_limit(stpvars,&mw,&mh,&nw,&nh);
                                ^~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1487:23: note:   initializing argument 2 of ‘void stp_get_size_limit(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*)’
      stp_dimension_t *max_width, stp_dimension_t *max_height,
      ~~~~~~~~~~~~~~~~~^~~~~~~~~
gprinter.cpp:469:31: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
   stp_get_media_size(stpvars, &pagewidth, &pageheight);
                               ^~~~~~~~~~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1416:28: note:   initializing argument 2 of ‘void stp_get_media_size(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*)’
           stp_dimension_t *width, stp_dimension_t *height);
           ~~~~~~~~~~~~~~~~~^~~~~
gprinter.cpp:473:34: error: cannot convert ‘int*’ to ‘stp_dimension_t*’ {aka ‘double*’}
  stp_get_imageable_area(stpvars, &l, &r, &b, &t);
                                  ^~
In file included from /usr/include/gutenprint/paper.h:30,
                 from /usr/include/gutenprint/gutenprint.h:51,
                 from gprinter.cpp:22:
/usr/include/gutenprint/vars.h:1442:25: note:   initializing argument 2 of ‘void stp_get_imageable_area(const stp_vars_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*, stp_dimension_t*)’
        stp_dimension_t *left, stp_dimension_t *right,
        ~~~~~~~~~~~~~~~~~^~~~
make[2]: *** [Makefile:313: gprinter.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/gtk-2.0/gtk/gtk.h:89,
                 from /usr/include/gtk-2.0/gtk/gtkcombo.h:32,
                 from ../stpui_widgets/stpui_printerselector.h:7,
                 from printoutputselector.cpp:15:
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Wparentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:60:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Wparentheses]
   void (*__gtk_reserved2);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:61:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved3’ [-Wparentheses]
   void (*__gtk_reserved3);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:62:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved4’ [-Wparentheses]
   void (*__gtk_reserved4);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:63:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved5’ [-Wparentheses]
   void (*__gtk_reserved5);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:64:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved6’ [-Wparentheses]
   void (*__gtk_reserved6);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved7’ [-Wparentheses]
   void (*__gtk_reserved7);
        ^
In file included from /usr/include/gtk-2.0/gtk/gtk.h:173,
                 from /usr/include/gtk-2.0/gtk/gtkcombo.h:32,
                 from ../stpui_widgets/stpui_printerselector.h:7,
                 from printoutputselector.cpp:15:
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved1’ [-Wparentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:77:8: warning: unnecessary parentheses in declaration of ‘__gtk_reserved2’ [-Wparentheses]
   void (*__gtk_reserved2);
        ^
 g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -O3 -g0 -march=native -ftree-vectorize -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -fPIC -pie -fPIE -fstack-protector -fpermissive -MT printoutputselector.lo -MD -MP -MF .deps/printoutputselector.Tpo -c printoutputselector.cpp -o printoutputselector.o >/dev/null 2>&1
mv -f .deps/printoutputselector.Tpo .deps/printoutputselector.Plo
make[2]: Leaving directory '/tmp/yaourt-tmp-felics/aur-photoprint/src/photoprint-0.4.2-pre2/gp_cppsupport'
make[1]: *** [Makefile:664: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-felics/aur-photoprint/src/photoprint-0.4.2-pre2'
make: *** [Makefile:446: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build photoprint.

kzoli429 commented on 2018-11-10 15:02

make[2]: [Makefile:313: gprinter.lo] Error 1 make[2]: Leaving directory '/tmp/makepkg/photoprint/src/photoprint-0.4.2-pre2/gp_cppsupport' make[1]: [Makefile:664: all-recursive] Error 1 make[1]: Leaving directory '/tmp/makepkg/photoprint/src/photoprint-0.4.2-pre2' make: *** [Makefile:446: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

japama commented on 2018-01-25 17:14

I've the same problem as stueja. I've got a core dump with glibc 2.26-11 x86_64

            Stack trace of thread 25666:
            #0  0x00007fdbf7cf5e36 __GI___strlen_sse2 (libc.so.6)
            #1  0x0000557bc00c5030 n/a (photoprint)
            #2  0x0000557bc00ba40a n/a (photoprint)
            #3  0x0000557bc0072514 n/a (photoprint)
            #4  0x0000557bc0056c53 n/a (photoprint)
            #5  0x00007fdbf7c80f4a __libc_start_main (libc.so.6)
            #6  0x0000557bc00596aa n/a (photoprint)

gdb /usr/bin/photoprint It seems like a memory error on photoprint.cpp:140 & photoprint_state.cpp:132 & printoutput.cpp:48 & printerqueues_unix.c:361

0x00007ffff4d9ee36 in __strlen_sse2 () at /usr/lib/libc.so.6

1 0x00005555555de030 in getdriver (pq=<optimized out="">) at printerqueues_unix.c:361</optimized>
    cmd = 0x5555555ef828 "cat %s | grep -i 'StpDriverName' | awk '{print $2}' | sed 's/\"//g'"
    len = <optimized out>
    cmd2 = <optimized out>
    pfile = <optimized out>
    result = 0x0
    ppdname = 0x55a2805c <error: Cannot access memory at address 0x55a2805c>
2 0x00005555555d340a in PrintOutput::PrintOutput(ConfigFile, char const) (this=
0x7fffffffdd08, inif=0x7fffffffdc80, section=0x5555555e487d "[Output]") at printoutput.cpp:48
    driver = <optimized out>
    queue = 0x555555a20fb0 "Epson_Stylus_Photo_R2000"
    defaultqueue = <optimized out>
3 0x000055555558b514 in PhotoPrint_State::PhotoPrint_State(bool) (this=0x7fffffffdc80, batchmode=<optimized out="">) at photoprint_state.cpp:132</optimized>
4 0x000055555556fc53 in main(int, char**) (argc=<optimized out="">, argv=<optimized out="">) at photoprint.cpp:140</optimized></optimized>
    batchmode = false
    splash = 0x555555ab4c80
    state = warning: can't find linker symbol for virtual table for `SearchPathHandler' value

warning: found `std::ios_base::Init::Init()' instead

mandog commented on 2018-01-13 14:23

just installed works fine

stueja commented on 2017-10-21 19:33

This version core dumps on me:

Okt 21 21:32:52 archone systemd-coredump[32168]: Process 32166 (photoprint) of user 1000 dumped core.

Stack trace of thread 32166:
#0 0x00007f7ef64e72a7 __strlen_avx2 (libc.so.6)
#1 0x0000557970a58e76 n/a (photoprint)
#2 0x0000557970a4e3c3 n/a (photoprint)
#3 0x0000557970a076eb n/a (photoprint)
#4 0x00005579709ec471 n/a (photoprint)
#5 0x00007f7ef63b0f6a __libc_start_main (libc.so.6)
#6 0x00005579709ee91a n/a (photoprint)

Ji_M commented on 2017-04-23 23:37

Fixed mentioned issues with 0.4.2rc2-8

Ji_M commented on 2017-04-17 00:42

Made some minor changes to get it build.
* namespace conflict std::tuple ./. netpbm-typedef in imagesource/*
(commented "using namespace std" and added explicit "std::" where needed)
* assigning of 'false' to a pointer variable in effects/ppeffect.cpp:116
* moved "-lX11" from "make CFLAG=" to "./configure ... LIBS="

Compiles, links and runs on recently (as of date of post) updated
arch x86_64 w/ xfce4 and plasma groups installed, complains about
missing monitor calibration data, though

Ask for sed-lines for PKGBUILD::build() if any interest.
Ji_M

aer0s commented on 2017-02-08 16:08

Has anyone got this to build? I ran into the same issue Imat noted.

lmat commented on 2016-09-17 23:13

makepkg didn't work. It compiled for a long time, then failed with the following:

cd effects
make libppeffects.la
make[3]: Entering directory '/home/lawsa/builds/aur/photoprint/src/photoprint-0.4.2-pre2'
make[3]: *** No rule to make target 'libppeffects.la'. Stop.
make[3]: Leaving directory '/home/lawsa/builds/aur/photoprint/src/photoprint-0.4.2-pre2'
make[2]: *** [Makefile:1085: effects/libppeffects.la] Error 2
make[2]: Leaving directory '/home/lawsa/builds/aur/photoprint/src/photoprint-0.4.2-pre2'
make[1]: *** [Makefile:664: all-recursive] Error 1
make[1]: Leaving directory '/home/lawsa/builds/aur/photoprint/src/photoprint-0.4.2-pre2'
make: *** [Makefile:446: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...