-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake build failing with "missing: OPENSSL_CRYPTO_LIBRARY" #57
Comments
I made some progress, I found that if I use a prebuilt OpenSSL library from a different place, and not from "podofo-deps", So basically the bug is that the OpenSSL part from podofo-deps is incomplete |
Please note the disclaimer.
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. |
Ok, this is the workaround I found: And you are OK to use Additionally, I found that That way I was able to compile and run the HelloWorld example. |
I updated the relevant Readme section read it carefully. I also update the disclaimer about |
On Windows (x64), I tried to build with OpenSSL 3.0.7 - it failed.
I also tried 1.1.1s (exactly the one from the podofo-deps repository)
Still getting the same error:
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
version "1.1.1s")
This is what I use for the CMake arguments:
-DOPENSSL_INCLUDE_DIR=C:\PoDoFo\podofo-deps-master\3rdparty\openssl\include
-DOPENSSL_CRYPTO_LIBRARY=C:\PoDoFo\podofo-deps-master\3rdparty\openssl\lib\Win64\crypto.lib
The text was updated successfully, but these errors were encountered: