Giter VIP home page Giter VIP logo

Comments (4)

blackandwhitebg avatar blackandwhitebg commented on May 20, 2024

I made some progress,

I found that if I use a prebuilt OpenSSL library from a different place, and not from "podofo-deps",
using parameter -DOPENSSL_ROOT_DIR=C:\OpenSSL-Win64 works.

So basically the bug is that the OpenSSL part from podofo-deps is incomplete

from podofo.

ceztko avatar ceztko commented on May 20, 2024

Please note the disclaimer.

These dependencies are supplied only for development purposes and come with no warranty. They are not frequently updated, may contain security flaws and be unsafe to use.

The openssl builds there are fine but the libs/includes directory layout may be incompatible with your attempt to hint the cmake find module for OpenSSL. I will better specify that the deps there are supposed to be used with the playground only. I will also improve the build/quickstart guide to encourage using package managers, such as vcpkg and Conan.

from podofo.

blackandwhitebg avatar blackandwhitebg commented on May 20, 2024

Ok, this is the workaround I found:
Copy the 4 lib files from
\podofo-deps-master\3rdparty\openssl\lib\Win64
to
\podofo-deps-master\3rdparty\openssl\lib\

And you are OK to use -DOPENSSL_ROOT_DIR=C:\PoDoFo\podofo-deps-master\3rdparty\openssl

Additionally, I found that
-DFREETYPE_INCLUDE_DIRS=C:\PoDoFo\podofo-deps-master\3rdparty\freetype\include
is not creating a working VS solution, it has to be
-DFREETYPE_INCLUDE_DIRS=C:\PoDoFo\podofo-deps-master\3rdparty\freetype\include\freetype2

That way I was able to compile and run the HelloWorld example.

from podofo.

ceztko avatar ceztko commented on May 20, 2024

I updated the relevant Readme section read it carefully. I also update the disclaimer about podofo-deps in the playground. I am assuming you'll be able to continue on your own, especially in case of dependencies build from sources, for which I can't really provide support.

from podofo.

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.