Skip to content
This repository was archived by the owner on Oct 5, 2022. It is now read-only.

Building

Dominic Hamon edited this page Aug 13, 2013 · 2 revisions

Desktop

Release build:

$ cmake -D CMAKE_BUILD_TYPE=Release CMakeLists.txt && make

Debug build:

$ cmake -D CMAKE_BUILD_TYPE=Debug CMakeLists.txt && make

You should end up with libmlab.a under lib/ and mlab_test and mlab_c_test, executables, under bin/.

If you are running with Python 2.7, you will need to remove the CMakeCache.txt file and run the following cmake command instead:

$ cmake -D CMAKE_BUILD_TYPE=Release -D PYTHON_INCLUDE_PATH=/usr/include/python2.7 \
  -D PYTHON_LIBRARIES=/usr/lib/libpython2.7.so CMakeLists.txt

Android

In the root you will find an Android.mk that can be included as part of an Android NDK build. For instance, in your Android application source tree, you would have a jni folder containing an Android.mk:

LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/libraries/Android.mk`

Where the libraries folder could be a symlink to your checkout of these libraries. Once you run ndk-build, you should end up with a shared library named libmlab.so that you can include in your application.

Note: You may need to also have an Application.mk in your jni folder that contains:

APP_STL := gnustl_static

Clone this wiki locally