Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you build PoDoFo on Windows with libcrypto support?
    primarykey
    data
    text
    <p>I have a project which uses PoDoFo for PDF support and I am trying to update it to use the HEAD version from the SVN tree.</p> <p>The big change from the last version I used is the addition on libcrypto from OpenSSL, which seems to be required. I downloaded and built OpenSSL and set up the appropriate options (or so I had hoped) so that cmake could find libcrypto.</p> <p>cmake seems to find it ok, but when I try to build from the resulting makefile, I get the error:</p> <pre> Encrypt.cpp(50) : fatal error C1083: Cannot open include file: 'openssl/md5.h': No such file or directory </pre> <p>I whittled down my build script so that I could focus on this problem:</p> <pre> setlocal set ROOT=%CD% pushd podofo set CMAKE_PARAMS=-Wno-dev -C ..\BuildSetup.cmake . -DCMAKE_INSTALL_PREFIX:PATH=%1 set CMAKE_PARAMS_RELEASE=-DCMAKE_BUILD_TYPE=Release %CMAKE_PARAMS% call "%VS100COMNTOOLS%..\..\vc\vcvarsall.bat" x86 del CMakeCache.txt >nul rd /s /q CMakeFiles >nul set CMAKE_PREFIX_PATH=%ROOT%\install\zlib\x86 set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%ROOT%\install\freetype\x86 set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%ROOT%\install\libjpeg\x86 set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%ROOT%\install\libpng\x86 set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;%ROOT%\install\openssl\x86 set CRYPTO=-DLIBCRYPTO_INCLUDE_DIR=%ROOT%\install\openssl\x86\include set CRYPTO=%CRYPTO% -DLIBCRYPTO_LIBRARY_NAMES=libeay32 cmake %CRYPTO% %CMAKE_PARAMS_RELEASE%\x86 -G "NMake Makefiles" cmake --build . --target install --clean-first popd endlocal </pre> <p>My <code>BuildSetup.cmake</code> file:</p> <pre> set (CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "config types" FORCE) set (CMAKE_INSTALL_PREFIX "../install" CACHE PATH "install path" FORCE) set (CMAKE_C_FLAGS_RELEASE "/MT /O1 /Ob2 /D NDEBUG" CACHE STRING "C release flags" FORCE) set (CMAKE_CXX_FLAGS_RELEASE "/MT /O1 /Ob2 /D NDEBUG" CACHE STRING "C++ release flags" FORCE) set (CMAKE_C_FLAGS_DEBUG "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1" CACHE STRING "C debug flags" FORCE) set (CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1" CACHE STRING "C++ debug flags" FORCE) set (BUILD_SHARED_LIBS OFF CACHE STRING "") </pre> <p>I tried explicitly adding the path of <code>openssl/md5.h</code> to the <code>INCLUDE</code> environment variable with no effect.</p> <p>I also tried using the "Visual Studio 10" generator. Same problem.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload