GithubHelp home page GithubHelp logo

png.h file not found about pdftojson HOT 5 OPEN

harry1080 avatar harry1080 commented on August 20, 2024
png.h file not found

from pdftojson.

Comments (5)

harry1080 avatar harry1080 commented on August 20, 2024 1

./configure --with-libpng-library=/usr/local/Cellar/libpng/1.6.16/lib/ --with-libpng-includes=/usr/local/Cellar/libpng/1.6.16/include/ --with-freetype2-library=/usr/local/lib/ --with-freetype2-includes=/usr/local/include/freetype2/

I am using ubuntu. The specific model is as follows:

Linux 5.15.0-97-generic #107~20.04.1-Ubuntu SMP Fri Feb 9 14:20:11 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Based on your answer, I guessed that I was missing libpng, so I followed apt install libpng-dev

image

it succeeded. Thank you for your reply. I wish you a happy day.You can close this question.

from pdftojson.

ldenoue avatar ldenoue commented on August 20, 2024

I think you get this file when you ./configure make.

from pdftojson.

harry1080 avatar harry1080 commented on August 20, 2024

I think you get this file when you ./configure make.

I directly git clone from github to the local area, and then run ./configure, and the following error message appears, and then I cannot make.

image

And I didn’t see the file png.h in this warehouse. I saw many places referencing this header file, but I couldn’t find this file.

image

from pdftojson.

ldenoue avatar ldenoue commented on August 20, 2024

Are you on a Mac by chance?
You need to install libpng separately and configure with extra parameters, as specified in the README.
./configure --with-libpng-library=/usr/local/Cellar/libpng/1.6.16/lib/ --with-libpng-includes=/usr/local/Cellar/libpng/1.6.16/include/ --with-freetype2-library=/usr/local/lib/ --with-freetype2-includes=/usr/local/include/freetype2/

from pdftojson.

ldenoue avatar ldenoue commented on August 20, 2024

@harry1080 it would be useful for other if you could share your .configure parameters after you installed libpng.
I would update the README.md file.

from pdftojson.

Related Issues (8)

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.