marinehero / OzClientiOS

Build Of OzClient and Curl For iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This document describe the proccess of building OzClient lib for all android platforms. OzClient is the library that provides the interface for communication of client-cloud and client-agent.. In addition it provides P2P capabilities (open tunnel, destroy tunnel etc.)

OzClient depend on libcurl which depends on libssl and libcrypto, So the order this need to be built is:

  1. libssl + libcrypto

  2. libcurl

  3. libOzClient

  4. SSL: extract openssl-1.0.1g_oz.tar.gz cd openssl in setenv-android-mod.sh: set _ANDROID_NDK_ROOT to your root [optional] set _ANDROID_API (you can leave it on 21)

  • run build-all-arch.sh script. this will build libssl.so and libcrypto.so for all platforms (under prebuilt)

install desired architecure libraries: cd openssl-1.0.1g cp ../prebuilt//* . (where ARCH can be arm64-v8a, armeabi and so on..) sudo -E make install_sw CC=$ANDROID_TOOLCHAIN/<SE_TOOLCHAIN>-gcc RANLIB=$ANDROID_TOOLCHAIN/<SE_TOOLCHAIN>-ranlib (SE_TOOLCHAIN can be arm-linux-androideabi-4.9 or aarch64-linux-android-4.9 for example)

now ssl libs are intalled under /usr/local/ssl/android-21/lib/

  1. CURL: extract curl-7.64.0_oz.tar.gz cd curl-7.64.0/cross-compile run appropriate script.

make make install (sudo)

find libcurl in /usr/local/lib/libcurl.so

  1. build OzClient: cp to OzClient/lib/ libssl.so and libcrypto.so from /usr/local/ssl/android-21/lib/ cp to OzClient/lib/ libcurl.so from /usr/local/lib/ cd OzClient/CloudCom/build/ ./make_oz_android.sh (enable build of right platform)

For questions and comments please contact Erez Fishhimer via email: erez.fishhimer@ozvision.com fishkerez@gmail.com

About

Build Of OzClient and Curl For iOS


Languages

Language:C 69.0%Language:Perl 12.1%Language:Roff 4.0%Language:Python 3.1%Language:C++ 2.7%Language:CMake 2.1%Language:M4 1.9%Language:DIGITAL Command Language 1.7%Language:Makefile 1.1%Language:Shell 0.9%Language:Batchfile 0.3%Language:Assembly 0.3%Language:Objective-C 0.3%Language:D 0.3%Language:Prolog 0.1%Language:Visual Basic 0.1%Language:Perl 6 0.0%Language:Emacs Lisp 0.0%Language:eC 0.0%Language:HTML 0.0%Language:XS 0.0%Language:Awk 0.0%Language:Scheme 0.0%Language:Java 0.0%Language:DTrace 0.0%