flaxpdf
flaxpdf copied to clipboard
Build Fails, Poppler 24.01.0-1 Arch
Just wanted to pop in and express interest in this project. Does anyone know of an alternative multi-threaded pdf viewer?
Followed the build commands listed in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=flaxpdf-git
$ git clone https://github.com/clbr/flaxpdf
$ cd flaxpdf
$ ./autogen.sh
$ CC=gcc CXX=g++ ./configure --prefix=/usr
$ make
Resulting in make errors:
Making all in po
make[1]: Entering directory '/home/user/Applications/flaxpdf/po'
test ! -f ./flaxpdf.pot || \
test -z "" || make
touch stamp-po
make[1]: Leaving directory '/home/user/Applications/flaxpdf/po'
Making all in src
make[1]: Entering directory '/home/user/Applications/flaxpdf/src'
make all-am
make[2]: Entering directory '/home/user/Applications/flaxpdf/src'
g++ -DHAVE_CONFIG_H -I. -DDATADIR=\"/usr/share/flaxpdf\" -DLOCALEDIR=\"/usr/share/locale\" -g -O2 -fopenmp -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/fltk/src=/usr/src/debug/fltk -flto=auto -ffat-lto-objects -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -isystem /usr/include/poppler -Wall -Wextra -ffunction-sections -fdata-sections -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from /usr/include/X11/Xlib.h:44,
from main.h:26,
from main.cpp:17:
/usr/include/poppler/XRef.h:104:5: error: expected identifier before numeric constant
104 | None, /* No compression */
| ^~~~
/usr/include/poppler/XRef.h:104:5: error: expected ‘}’ before numeric constant
In file included from /usr/include/poppler/PDFDoc.h:60,
from main.h:41:
/usr/include/poppler/XRef.h:103:1: note: to match this ‘{’
103 | {
| ^
/usr/include/poppler/XRef.h:104:5: error: expected unqualified-id before numeric constant
104 | None, /* No compression */
| ^~~~
/usr/include/poppler/XRef.h:106:1: error: expected declaration before ‘}’ token
106 | };
| ^
/usr/include/poppler/XRef.h:224:128: error: expected unqualified-id before numeric constant
224 | Ref addStreamObject(Dict *dict, char *buffer, const Goffset bufferSize, StreamCompression compression = StreamCompression::None);
| ^~~~
/usr/include/poppler/XRef.h:225:131: error: expected unqualified-id before numeric constant
225 | Ref addStreamObject(Dict *dict, uint8_t *buffer, const Goffset bufferSize, StreamCompression compression = StreamCompression::None);
| ^~~~
make[2]: *** [Makefile:437: main.o] Error 1
make[2]: Leaving directory '/home/user/Applications/flaxpdf/src'
make[1]: *** [Makefile:324: all] Error 2
make[1]: Leaving directory '/home/user/Applications/flaxpdf/src'
make: *** [Makefile:445: all-recursive] Error 1