Skip to content

Building Libraries for OF

ofTheo edited this page Apr 18, 2012 · 22 revisions

POCO

OS X: ( the following builds 32bit static poco for OS X, without mysql as that is GPL and not a default library )

export ARCHFLAGS="-arch i386"
export POCO_TARGET_OSARCH="i386"
./configure --no-tests --no-samples --static --omit=Data/MySQL
make

iPhone:

  • Edit the file in build/config/iPhone

    • Uncomment out IPHONE_SDK_VERSION and set it equal to your SDK
    • Note: if you want to build for armv7 do: Set POCO_TARGET_OSARCH to be armv7
    • Close and Save the file.
  • Edit the file in build/config/iPhoneSimulator

    • Change POCO_TARGET_OSARCH to i386
    • Close and Save the file.

Then run

./configure --no-tests --no-samples --static --omit=Data/MySQL --omit=Data/SQLite --omit=Data/ODBC --omit=NetSSL_OpenSSL --omit=Crypto --config=iPhone
make

and

./configure --no-tests --no-samples --static --omit=Data/MySQL --omit=Data/SQLite --omit=Data/ODBC --omit=NetSSL_OpenSSL --omit=Crypto --config=iPhoneSimulator
make