-
Notifications
You must be signed in to change notification settings - Fork 3
Building instructions
Ariel Malka edited this page Jun 25, 2015
·
21 revisions
Prerequisites (alternative versions may work)
- Development environment:
- OSX 10.10.3
- OSX and iOS platforms:
- XCode 6.3.1 (clang 3.6)
- Command-line tools
- Android platform:
- NDK r10e (GCC 4.9)
- SDK Tools r24.2.0, with SDK Platform 16
- Emscripten platform:
- Windows/MXE platform:
- MXE (tested with 5080308e17)
- Wine 1.6.2
Starting point
- Android: define the
NDK_PATHvariable, e.g.
export NDK_PATH=~/DEV/android-ndk - Emscripten: define the
EMSCRIPTEN_PATHvariable, e.g.
export EMSCRIPTEN_PATH=~/DEV/emscripten - Windows/MXE: define the
MXE_PATHvariable, e.g.
export MXE_PATH=~/DEV/mxe
- Download and unpack Boost 1.58:
cd chronotext-boost
source setup.sh
- Build for the relevant platforms:
./build-osx.sh
./build-ios.sh
./build-android.sh
./build-emscripten.sh
./build-mxe.sh
Notes:
- The following static libs are built by default (packaged by platform, in the
distfolder):systemfilesystemiostreams
- Edit any of the
build-*.shfiles in order to add/remove libs. - Windows/MXE:
- Make MXE with a
settings.mksuch as:
MXE_TARGETS := i686-w64-mingw32.static LOCAL_PKG_LIST := gcc zlib .DEFAULT local-pkg-list: local-pkg-list: $(LOCAL_PKG_LIST)- It is also possible to use this docker container via boot2docker 1.7.0 with a volume mounted under
/root, e.g.
run --rm -it -v ~/DEV:/root/DEV:rw thewtex/cross-compiler-windows-x86
- Make MXE with a