Dear reader,

When using CMAKE to generate a VS 2008 solution, the PdfEncrypt compilation 
fails complaining about not finding the include file “openssl/md5.h”.
After investigation I found out that CMakeLists.txt is lacking the include 
directory for openssl. Could this be fixed please ?

I adjusted CMakeLists.txt as follows and after that compilation succeeds:

... snip ...
ENDIF(WANT_BOOST)

INCLUDE_DIRECTORIES(
    ${PoDoFo_BINARY_DIR}
    ${PoDoFo_SOURCE_DIR}
    ${PoDoFo_SOURCE_DIR}/src
    ${FREETYPE_INCLUDE_DIR}
    ${ZLIB_INCLUDE_DIR}
-----------------------BEGIN PATCH, ADD OPENSSL INCLUDE DIRECTORY 
--------------------------------------
    ${LIBCRYPTO_INCLUDE_DIR}
-----------------------END PATCH --------------------------------------
    ${EXTRA_INCLUDES}
     )
LINK_DIRECTORIES(
    ${PoDoFo_BINARY_DIR}/src/
    )

#
# The PoDoFo library needs to be linked to these libraries,
# as do any apps or libraries linking to PoDoFo. PODOFO_LIB
# will include these and the correct podofo target, so clients
# should specify only PODOFO_LIB .
#
... snip ...


Kind regards,
Mirco Babin (The Netherlands)
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to