How to create a PoDoFo library for iOS

This may be a copy of this question. How can I use the PoDoFo library to annotate PDF files in iOS? not answered yet. I know how to use / create static libraries in xcode projects for iOS. I was looking for a free PDF library that supports editing PDF documents in memory, and I found out that PoDoFo did it very well, I tried to create this library for xcode, but I really don't know how to play with CMake. can any body tell me how I can use this library in my iOS application.

thank

+3
source share
2 answers

Podofo 'Read me'

CMake Mac OS X

Mac OS X PoDoFo CMake UNIX Makefile ( "CMake- Unix Makefile" ), XCode ( "Xcode" ). .

freetype fontconfig. libjpeg (. , ), libjpeg. (, fink DarwinPorts), CMAKE_INCLUDE_PATH CMAKE_LIBRARY_PATH.

, podofo $HOME/libs. , .

- MacPorts libjpeg, fontconfig freetype. , MacPorts, :

 /opt/local/bin/port install fontconfig freetype jpeg tiff lua

MacPorts , /opt/local.

, , , install_name_tool, - , .

PoDoFo

podofo Mac OS X, :

    cmake -G "Unix Makefiles" \
        -DWANT_FONTCONFIG:BOOL=TRUE \
        -DCMAKE_INSTALL_PREFIX=/opt/podofo \
        -DCMAKE_INCLUDE_PATH=/opt/local/include \
        -DCMAKE_LIBRARY_PATH=/opt/local/lib \
        ../podofo
    make
    sudo mkdir /opt/podofo
    sudo chown $USER /opt/podofo
    make install

"Unix Makefiles" "Xcode" , XCode, , make' and make install ",

"XCode" "Xcode" , (c ), .

+4

All Articles