pdf2htmlEX
pdf2htmlEX copied to clipboard
how to building and run it on ubuntu16
I have the same problem.
poppler-0.71.0
root@ruvds-kh3sg:~# fontforge --version
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Based on sources from 10:10 UTC 12-Nov-2018-ML-D.
Based on source from git with hash: 9e9278c66ecc47290accb4e9e4aff82e8578ce1e
fontforge 10:10 UTC 12-Nov-2018
libfontforge 20181112
I get an error when compiling
root@ruvds-kh3sg:~/pdf2htmlEX# cmake .
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'poppler>=0.25.0'
-- Found poppler, version 0.71.0
-- Checking for module 'cairo>=1.10.0'
-- Found cairo, version 1.17.1
Trying to locate cairo-svg...
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.1")
-- Checking for module 'libfontforge>=2.0.0'
-- Found libfontforge, version 2.0.20170731
-- Performing Test CXX0X_SUPPORT
-- Performing Test CXX0X_SUPPORT - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pdf2htmlEX
root@ruvds-kh3sg:~/pdf2htmlEX# make
Scanning dependencies of target pdf2htmlEX
[ 2%] Building CXX object CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o
In file included from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:39:0:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:51:6: error: ‘GBool’ has not been declared
GBool substitute,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:52:6: error: ‘GBool’ has not been declared
GBool printing);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:55:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool matches(Ref &other, GBool printing);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:60:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool isSubstitute() { return substitute; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:68:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool substitute;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:69:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool printing;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:76:82: error: ‘GBool’ has not been declared
static CairoFreeTypeFont *create(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:81:42: error: ‘GBool’ has not been declared
int *codeToGID, Guint codeToGIDLen, GBool substitute);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:90:5: error: ‘GBool’ has not been declared
GBool printing, XRef *xref);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:93:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool matches(Ref &other, GBool printing);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:99:4: error: ‘GBool’ has not been declared
GBool printing, XRef *xref);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:118:53: error: ‘GBool’ has not been declared
CairoFont *getFont(GfxFont *gfxFont, PDFDoc *doc, GBool printing, XRef *xref);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:123:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool useCIDs;
^~~~~
FcBool
In file included from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:40:0:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:98:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool upsideDown() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:101:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useDrawChar() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:106:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useTilingPatternFill() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:112:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useShadedFills(int type) { return type <= 7; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:118:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useFillColorStop() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:122:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool interpretType3Chars() { return gFalse; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:162:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str,
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:167:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:168:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool axialShadedSupportExtend(GfxState *state, GfxAxialShading *shading);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:169:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool radialShadedFill(GfxState *state, GfxRadialShading *shading, double sMin, double sMax);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:170:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool radialShadedSupportExtend(GfxState *state, GfxRadialShading *shading);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:172:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool gouraudTriangleShadedFill(GfxState *state, GfxGouraudTriangleShading *shading);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:173:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool patchMeshShadedFill(GfxState *state, GfxPatchMeshShading *shading);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:190:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool beginType3Char(GfxState *state, double x, double y,
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:199:32: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:199:46: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:200:9: error: ‘GBool’ has not been declared
GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:203:29: error: ‘GBool’ has not been declared
int width, int height, GBool invert,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:204:6: error: ‘GBool’ has not been declared
GBool inlineImg, double *baseMatrix);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:207:33: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:207:47: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:208:10: error: ‘GBool’ has not been declared
GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:210:31: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:210:45: error: ‘GBool’ has not been declared
int width, int height, GBool invert, GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:211:8: error: ‘GBool’ has not been declared
GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:215:5: error: ‘GBool’ has not been declared
GBool interpolate, int *maskColors, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:215:41: error: ‘GBool’ has not been declared
GBool interpolate, int *maskColors, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:219:8: error: ‘GBool’ has not been declared
GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:223:8: error: ‘GBool’ has not been declared
GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:228:11: error: ‘GBool’ has not been declared
GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:231:11: error: ‘GBool’ has not been declared
GBool maskInvert, GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:231:29: error: ‘GBool’ has not been declared
GBool maskInvert, GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:236:39: error: ‘GBool’ has not been declared
GBool /*isolated*/, GBool /*knockout*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:236:59: error: ‘GBool’ has not been declared
GBool /*isolated*/, GBool /*knockout*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:237:39: error: ‘GBool’ has not been declared
GBool /*forSoftMask*/);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:241:69: error: ‘GBool’ has not been declared
virtual void setSoftMask(GfxState * /*state*/, double * /*bbox*/, GBool /*alpha*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:255:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool isReverseVideo() { return gFalse; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:21: error: ‘GBool’ has not been declared
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:261:23: error: ‘GBool’ has not been declared
void setInType3Char(GBool inType3Char) { this->inType3Char = inType3Char; }
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:263:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool hasType3GlyphBBox () { return t3_glyph_has_bbox; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:273:10: error: ‘GBool’ has not been declared
GBool interpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:274:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool getStreamData (Stream *str, char **buffer, int *length);
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:285:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool stroke_adjust;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:286:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool adjusted_stroke_width;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:287:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool align_stroke_coords;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:306:10: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
static GBool ft_lib_initialized;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:309:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool fontEngine_owner;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:313:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool needFontUpdate; // set when the font needs to be updated
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:314:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool printing;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:315:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool use_show_text_glyphs;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:325:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool inUncoloredPattern; // inside a uncolored pattern (PaintType = 2)
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:326:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool inType3Char; // inside a Type 3 CharProc
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:328:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool t3_glyph_has_bbox;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:331:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool prescaleImages;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:344:5: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool knockout;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h: In member function ‘void CairoOutputDev::setPrinting(int)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:45: error: ‘class CairoOutputDev’ has no member named ‘printing’; did you mean ‘setPrinting’?
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~~~~
setPrinting
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:66: error: ‘needFontUpdate’ was not declared in this scope
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:66: note: suggested alternative: ‘needNonText’
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~~~~~~~~~~
needNonText
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:83: error: ‘gTrue’ was not declared in this scope
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:259:83: note: suggested alternative: ‘gfree’
void setPrinting (GBool printing) { this->printing = printing; needFontUpdate = gTrue; }
^~~~~
gfree
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h: In member function ‘void CairoOutputDev::setInType3Char(int)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:261:50: error: ‘class CairoOutputDev’ has no member named ‘inType3Char’; did you mean ‘endType3Char’?
void setInType3Char(GBool inType3Char) { this->inType3Char = inType3Char; }
^~~~~~~~~~~
endType3Char
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:376:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool upsideDown() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:379:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useDrawChar() { return gFalse; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:384:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useTilingPatternFill() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:390:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useShadedFills(int type) { return type <= 7; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:396:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool useFillColorStop() { return gFalse; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:400:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool interpretType3Chars() { return gFalse; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:403:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool needNonText() { return gTrue; }
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:434:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str,
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:439:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool axialShadedFill(GfxState *state,
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:442:11: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
virtual GBool radialShadedFill(GfxState *state,
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:452:32: error: ‘GBool’ has not been declared
int width, int height, GBool invert,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:453:9: error: ‘GBool’ has not been declared
GBool interpolate, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:453:28: error: ‘GBool’ has not been declared
GBool interpolate, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:456:5: error: ‘GBool’ has not been declared
GBool interpolate, int *maskColors, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:456:41: error: ‘GBool’ has not been declared
GBool interpolate, int *maskColors, GBool inlineImg);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:460:8: error: ‘GBool’ has not been declared
GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:464:8: error: ‘GBool’ has not been declared
GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:468:11: error: ‘GBool’ has not been declared
GBool interpolate,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:471:11: error: ‘GBool’ has not been declared
GBool maskInvert, GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:471:29: error: ‘GBool’ has not been declared
GBool maskInvert, GBool maskInterpolate);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:473:64: error: ‘GBool’ has not been declared
int width, int height, GBool invert,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:474:41: error: ‘GBool’ has not been declared
GBool inlineImg, double *baseMatrix);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:481:11: error: ‘GBool’ has not been declared
GBool /*isolated*/, GBool /*knockout*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:481:31: error: ‘GBool’ has not been declared
GBool /*isolated*/, GBool /*knockout*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:482:11: error: ‘GBool’ has not been declared
GBool /*forSoftMask*/) {}
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:485:69: error: ‘GBool’ has not been declared
virtual void setSoftMask(GfxState * /*state*/, double * /*bbox*/, GBool /*alpha*/,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:491:30: error: ‘GBool’ has not been declared
void setImageDrawDecideCbk(GBool (*cbk)(int img_id, void *data),
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:505:10: error: expected identifier before ‘*’ token
GBool (*imgDrawCbk)(int img_id, void *data);
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:505:45: error: ISO C++ forbids declaration of ‘GBool’ with no type [-fpermissive]
GBool (*imgDrawCbk)(int img_id, void *data);
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:505:45: error: ‘GBool’ declared as function returning a function
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h: In member function ‘void CairoImageOutputDev::setImageDrawDecideCbk(int (*)(int, void*), void*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:492:23: error: ‘imgDrawCbk’ was not declared in this scope
void *data) { imgDrawCbk = cbk; imgDrawCbkData = data; }
^~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:492:23: note: suggested alternative: ‘imgDrawCbkData’
void *data) { imgDrawCbk = cbk; imgDrawCbkData = data; }
^~~~~~~~~~
imgDrawCbkData
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:80:8: error: ‘GBool’ has not been declared
GBool substitute,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:81:8: error: ‘GBool’ has not been declared
GBool printing) : ref(ref),
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In constructor ‘CairoFont::CairoFont(Ref, cairo_font_face_t*, int*, Guint, int, int)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:85:12: error: class ‘CairoFont’ does not have any field named ‘substitute’
substitute(substitute),
^~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:86:12: error: class ‘CairoFont’ does not have any field named ‘printing’
printing(printing) { }
^~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:93:1: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In member function ‘double CairoFont::getSubstitutionCorrection(GfxFont*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:125:7: error: ‘isSubstitute’ was not declared in this scope
if (isSubstitute() && !gfxFont->isCIDFont()) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:125:7: note: suggested alternative: ‘FcConfigSubstitute’
if (isSubstitute() && !gfxFont->isCIDFont()) {
^~~~~~~~~~~~
FcConfigSubstitute
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:127:56: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
if ((name = ((Gfx8BitFont *)gfxFont)->getCharName(code)) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:175:8: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
static GBool
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:382:10: error: ‘GBool’ has not been declared
GBool substitute) : CairoFont(ref,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In constructor ‘CairoFreeTypeFont::CairoFreeTypeFont(Ref, cairo_font_face_t*, int*, Guint, int)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:387:12: error: ‘gTrue’ was not declared in this scope
gTrue) { }
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:387:12: note: suggested alternative: ‘gfree’
gTrue) { }
^~~~~
gfree
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:392:27: error: ‘GBool’ has not been declared
FT_Library lib, GBool useCIDs) {
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In static member function ‘static CairoFreeTypeFont* CairoFreeTypeFont::create(GfxFont*, XRef*, FT_Library, int)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:419:3: error: ‘GBool’ was not declared in this scope
GBool substitute = gFalse;
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:419:3: note: suggested alternative: ‘FcBool’
GBool substitute = gFalse;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:442:5: error: ‘substitute’ was not declared in this scope
substitute = gTrue;
^~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:442:5: note: suggested alternative: ‘setstate’
substitute = gTrue;
^~~~~~~~~~
setstate
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:442:18: error: ‘gTrue’ was not declared in this scope
substitute = gTrue;
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:442:18: note: suggested alternative: ‘gfree’
substitute = gTrue;
^~~~~
gfree
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:446:37: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
fileNameC = fileName->getCString();
~~~~~~~~~~~~~~~~~~~~^~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: error: ‘_ft_new_face_uncached’ was not declared in this scope
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:453:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: note: suggested alternative: ‘_ft_done_face_uncached’
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:453:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: error: ‘_ft_new_face_uncached’ was not declared in this scope
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:509:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: note: suggested alternative: ‘_ft_done_face_uncached’
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:509:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: error: ‘_ft_new_face_uncached’ was not declared in this scope
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:534:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:375:22: note: suggested alternative: ‘_ft_done_face_uncached’
#define _ft_new_face _ft_new_face_uncached
^
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:534:11: note: in expansion of macro ‘_ft_new_face’
if (! _ft_new_face (lib, fileNameC, font_data, font_data_len, &face, &font_face)) {
^~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:552:10: error: ‘substitute’ was not declared in this scope
substitute);
^~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:552:10: note: suggested alternative: ‘setstate’
substitute);
^~~~~~~~~~
setstate
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:571:3: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool printing;
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In function ‘cairo_status_t _init_type3_glyph(cairo_scaled_font_t*, cairo_t*, cairo_font_extents_t*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:597:26: error: invalid conversion from ‘const double*’ to ‘double*’ [-fpermissive]
mat = font->getFontBBox();
~~~~~~~~~~~~~~~~~^~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In function ‘cairo_status_t _render_type3_glyph(cairo_scaled_font_t*, long unsigned int, cairo_t*, cairo_text_extents_t*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:638:28: error: invalid conversion from ‘const double*’ to ‘double*’ [-fpermissive]
mat = font->getFontMatrix();
~~~~~~~~~~~~~~~~~~~^~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:649:35: error: invalid new-expression of abstract class type ‘CairoOutputDev’
output_dev = new CairoOutputDev();
^
In file included from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:40:0:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:85:7: note: because the following virtual functions are pure within ‘CairoOutputDev’:
class CairoOutputDev: public OutputDev {
^~~~~~~~~~~~~~
In file included from /root/pdf2htmlEX/3rdparty/poppler/git/CairoOutputDev.h:39:0,
from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:40:
/usr/local/include/poppler/OutputDev.h:90:16: note: virtual bool OutputDev::upsideDown()
virtual bool upsideDown() = 0;
^~~~~~~~~~
/usr/local/include/poppler/OutputDev.h:93:16: note: virtual bool OutputDev::useDrawChar()
virtual bool useDrawChar() = 0;
^~~~~~~~~~~
/usr/local/include/poppler/OutputDev.h:113:16: note: virtual bool OutputDev::interpretType3Chars()
virtual bool interpretType3Chars() = 0;
^~~~~~~~~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:651:33: error: ‘type3_font_info_t {aka struct _type3_font_info}’ has no member named ‘printing’
output_dev->setPrinting(info->printing);
^~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:653:26: error: invalid conversion from ‘const double*’ to ‘double*’ [-fpermissive]
mat = font->getFontBBox();
~~~~~~~~~~~~~~~~~^~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:661:30: error: ‘gTrue’ was not declared in this scope
output_dev->setInType3Char(gTrue);
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:661:30: note: suggested alternative: ‘gfree’
output_dev->setInType3Char(gTrue);
^~~~~
gfree
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:662:50: error: no matching function for call to ‘Dict::getVal(long unsigned int&, Object*)’
gfx->display(charProcs->getVal(glyph, &charProc));
^
In file included from /usr/local/include/poppler/Object.h:349:0,
from /usr/local/include/poppler/GfxFont.h:38,
from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:40,
from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:39:
/usr/local/include/poppler/Dict.h:84:10: note: candidate: Object Dict::getVal(int) const
Object getVal(int i) const { return entries[i].second.fetch(xref); }
^~~~~~
/usr/local/include/poppler/Dict.h:84:10: note: candidate expects 1 argument, 2 provided
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:668:19: error: ‘class CairoOutputDev’ has no member named ‘hasType3GlyphBBox’; did you mean ‘getType3GlyphBBox’?
if (output_dev->hasType3GlyphBBox()) {
^~~~~~~~~~~~~~~~~
getType3GlyphBBox
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:681:17: error: ‘void Object::free()’ is private within this context
charProc.free();
^
In file included from /usr/local/include/poppler/GfxFont.h:38:0,
from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.h:40,
from /root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:39:
/usr/local/include/poppler/Object.h:307:8: note: declared private here
void free();
^~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:689:12: error: ‘GBool’ has not been declared
GBool printing, XRef *xref) {
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In static member function ‘static CairoType3Font* CairoType3Font::create(GfxFont*, PDFDoc*, CairoFontEngine*, int, XRef*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:711:9: error: ‘type3_font_info_t {aka struct _type3_font_info}’ has no member named ‘printing’
info->printing = printing;
^~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:738:11: error: ‘GBool’ has not been declared
GBool printing, XRef *xref) : CairoFont(ref,
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In constructor ‘CairoType3Font::CairoType3Font(Ref, PDFDoc*, cairo_font_face_t*, int*, Guint, int, XRef*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:742:11: error: ‘gFalse’ was not declared in this scope
gFalse,
^~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:742:11: note: suggested alternative: ‘FcFalse’
gFalse,
^~~~~~
FcFalse
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:748:1: error: ‘GBool’ does not name a type; did you mean ‘FcBool’?
GBool
^~~~~
FcBool
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In constructor ‘CairoFontEngine::CairoFontEngine(FT_Library)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:769:3: error: ‘useCIDs’ was not declared in this scope
useCIDs = major > 2 ||
^~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:795:57: error: ‘GBool’ has not been declared
CairoFontEngine::getFont(GfxFont *gfxFont, PDFDoc *doc, GBool printing, XRef *xref) {
^~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: In member function ‘CairoFont* CairoFontEngine::getFont(GfxFont*, PDFDoc*, int, XRef*)’:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:806:23: error: ‘class CairoFont’ has no member named ‘matches’
if (font && font->matches(ref, printing)) {
^~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:819:59: error: ‘useCIDs’ was not declared in this scope
font = CairoFreeTypeFont::create (gfxFont, xref, lib, useCIDs);
^~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc: At global scope:
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:169:1: warning: ‘void _ft_done_face_uncached(void*)’ defined but not used [-Wunused-function]
_ft_done_face_uncached (void *closure)
^~~~~~~~~~~~~~~~~~~~~~
/root/pdf2htmlEX/3rdparty/poppler/git/CairoFontEngine.cc:166:30: warning: ‘_ft_cairo_key’ defined but not used [-Wunused-variable]
static cairo_user_data_key_t _ft_cairo_key;
^~~~~~~~~~~~~
CMakeFiles/pdf2htmlEX.dir/build.make:62: recipe for target 'CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o' failed
make[2]: *** [CMakeFiles/pdf2htmlEX.dir/3rdparty/poppler/git/CairoFontEngine.cc.o] Error 1
CMakeFiles/Makefile2:360: recipe for target 'CMakeFiles/pdf2htmlEX.dir/all' failed
make[1]: *** [CMakeFiles/pdf2htmlEX.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
pdf2htmlEX is no longer under active development for years. Compile old version of dependence libraries, reference: https://github.com/coolwanglu/pdf2htmlEX/wiki/Building