Hi Reynaldo.

Podofo uses CMake to generate build files for different platforms. It means
that you'll need a minimum 2.6 version installed. I don't use a MacPorts
package manager on macOS, but Homebrew (https://brew.sh), so that's why I
cannot give you exact commands to install dependencies. However, these steps
should generally be enough to compile a basic version of Podofo:

        $ tar xvf ./podofo-0.9.6.tar.gz
        $ cd podofo-0.9.6
        $ mkdir build-release
        $ cd build-release/
        $ cmake ..
        $ make

I'm using FreeBSD 11.2, but output of the "cmake .." command should generally
be the same. You'll see something like this:


-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
WANT_LIB64 unset; assuming normal library directory names
Will install libraries to /usr/local/lib
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for winsock2.h
-- Looking for winsock2.h - not found
-- Looking for mem.h
-- Looking for mem.h - not found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for BaseTsd.h
-- Looking for BaseTsd.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long int
-- Check size of long int - done
-- Check size of int64_t
-- Check size of int64_t - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/libz.so
Found zlib headers in /usr/include, library at /usr/lib/libz.so
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "1.4.2")
-- Checking for module 'libcrypto'
--   Package 'libcrypto', required by 'virtual:world', not found
-- Found LIBCRYPTO: /usr/lib/libcrypto.so
-- Performing Test PODOFO_HAVE_OPENSSL_1_1
-- Performing Test PODOFO_HAVE_OPENSSL_1_1 - Failed
-- Performing Test PODOFO_HAVE_OPENSSL_NO_RC4
-- Performing Test PODOFO_HAVE_OPENSSL_NO_RC4 - Failed
Found OpenSSL's libCrypto headers in /usr/include, library at
        /usr/lib/libcrypto.so
-- Found LIBIDN: /usr/local/lib/libidn.so
Found libidn headers in /usr/local/include, library at /usr/local/lib/libidn.so
Libidn found. AES-256 Encryption support will be enabled
-- Found LIBJPEG: /usr/local/lib/libjpeg.so
Found libjpeg headers in /usr/local/include, library at
        /usr/local/lib/libjpeg.so
-- Found TIFF: /usr/local/lib/libtiff.so
Found libtiff headers in /usr/local/include, library at
        /usr/local/lib/libtiff.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
-- Found PNG: /usr/local/lib/libpng.so (found version "1.6.35+apng")
Found LibPng headers in /usr/local/include;/usr/include, library at
        /usr/local/lib/libpng.so;/usr/lib/libz.so
-- Found UNISTRING: /usr/local/include
Found LibUnistring headers in /usr/local/include, library at
        /usr/local/lib/libunistring.so
-- Found cppunit: -L/usr/local/lib -lcppunit
Found cppunit. Unit tests will be built.
-- Found OpenSSL: /usr/lib/libssl.so
Found freetype library at /usr/local/lib/libfreetype.so, headers
        /usr/local/include/freetype2
-- Checking for module 'fontconfig'
--   Found fontconfig, version 2.12.6
-- Found Fontconfig: fontconfig;freetype
Found fontconfig headers in /usr/local/include, library at fontconfig;freetype
-- Could NOT find Lua50 (missing: LUA_LIBRARIES)
-- Could NOT find Lua (missing: LUA_LIBRARIES)
Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua support
Building multithreaded version of PoDoFo.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
Building static PoDoFo library
-- Configuring done
-- Generating done
-- Build files have been written to:
        /home/dsl/Downloads/podofo-0.9.6/build-release


Personally, I'd recommend installing libjpeg, libtiff and libpng libraries to
let Podofo decode as much image data formats as possible. You'll receive a
statically-linked library compiled by default. There is an option to compile
it as a shared library "-DPODOFO_BUILD_SHARED=True" which can be used as
"cmake -DPODOFO_BUILD_SHARED=True .." during configuration step.

Regards,
Dmitry



_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to