Giter VIP home page Giter VIP logo

Comments (4)

stephengaito avatar stephengaito commented on June 19, 2024 1

@langsz

I have just updated the pdf2htmlEX build instructions with a complete set of build scripts.

Unless you have specific reasons not to use my build scripts, I would strongly urge you to try running ./buildScript/buildInstallLocallyApt in a new clear clone of the pdf2htmlEX/pdf2htmlEX repository.

If this still has problems let me know.

If these scripts are insufficient for your needs, then you should find the sufficient build detailed instructions in these scripts and/or simply modify my scripts.

Regards,
Stephen Gaito

from pdf2htmlex.

ViliusSutkus89 avatar ViliusSutkus89 commented on June 19, 2024

Pass ENABLE_UNSTABLE_API_ABI_HEADERS=ON config option to poppler when you run it's CMake.

from pdf2htmlex.

langsz avatar langsz commented on June 19, 2024

Pass ENABLE_UNSTABLE_API_ABI_HEADERS=ON config option to poppler when you run it's CMake.

Thanks @ViliusSutkus89 .
But I got other errors after I reinstall poppler, see as blow:

...
/usr/local/include/fontforge/ttfinstrs.h:33:38: error: redeclaration of enumerat                                                                                                                                                             or ‘ttf_deltap3’
  ttf_deltap1=0x5d, ttf_deltap2=0x71, ttf_deltap3=0x72, ttf_depth=0x24,
                                      ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:6:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
/usr/local/include/fontforge/ttfinstrs.h:33:38: note: previous definition of ‘tt                                                                                                                                                             f_deltap3’ was here
  ttf_deltap1=0x5d, ttf_deltap2=0x71, ttf_deltap3=0x72, ttf_depth=0x24,
                                      ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/views.h:32:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:7,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
/usr/local/include/fontforge/ttfinstrs.h:33:56: error: redeclaration of enumerat                                                                                                                                                             or ‘ttf_depth’
  ttf_deltap1=0x5d, ttf_deltap2=0x71, ttf_deltap3=0x72, ttf_depth=0x24,
                                                        ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:6:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
/usr/local/include/fontforge/ttfinstrs.h:33:56: note: previous definition of ‘tt                                                                                                                                                             f_depth’ was here
  ttf_deltap1=0x5d, ttf_deltap2=0x71, ttf_deltap3=0x72, ttf_depth=0x24,
                                                        ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/views.h:32:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:7,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
/usr/local/include/fontforge/ttfinstrs.h:34:2: error: redeclaration of enumerato                                                                                                                                                             r ‘ttf_div’
  ttf_div=0x62, ttf_dup=0x20, ttf_eif=0x59, ttf_else=0x1b, ttf_endf=0x2d,
  ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:6:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
/usr/local/include/fontforge/ttfinstrs.h:34:2: note: previous definition of ‘ttf                                                                                                                                                             _div’ was here
  ttf_div=0x62, ttf_dup=0x20, ttf_eif=0x59, ttf_else=0x1b, ttf_endf=0x2d,
  ^
In file included from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/views.h:32:0,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /fontforge-2.0.20170731/splineutil.h:7,
                 from /home/pdf2htmlEX/pdf2htmlEX-0.18.7-poppler-0.81.0/src/util                                                                                                                                                             /ffw.c:28:
....

So, I need to remove the fontforge ?

from pdf2htmlex.

ViliusSutkus89 avatar ViliusSutkus89 commented on June 19, 2024

Which fontforge version do you have?
pdf2htmlEX-0.18.7 needs fontforge-20170731

from pdf2htmlex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.