You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-26Lines changed: 30 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,15 +27,15 @@ or Windows machine were not tested, so we don't know if it works or not.
27
27
28
28
## Prerequisite
29
29
### For Mac users
30
-
- If you want to use these scripts, you should install Git 1.8+, CMake 2.8+and M4 1.4+.
30
+
- If you want to use these scripts, you should install Git 1.8+, CMake 2.8+, autoconf and libtool.
31
31
If you are a Homebrew user, you could simply run the following commands to install these tools:
32
32
33
33
```
34
34
brew update
35
35
brew install git
36
36
brew install cmake
37
-
brew install m4
38
37
brew install autoconf
38
+
brew install libtool
39
39
```
40
40
41
41
- If you want to build static libraries for iOS and Mac, you should install the latest version of XCode. You should also install the `Command Line Tools` bundled with XCode.
@@ -45,22 +45,24 @@ brew install autoconf
45
45
46
46
- If you want to build static libraries for Tizen, you should download and install [Tizen SDK](https://developer.tizen.org/downloads/tizen-sdk). And you should also add a environment variable named `TIZEN_SDK` in your shell.
47
47
48
-
### For Linux users
49
-
xxx need to improve the document here later.
48
+
### For Linux(Ubuntu) users
49
+
- If you want to use these scripts, you should instll *autoconf*:
50
+
51
+
```
52
+
sudo apt-get install autoconf
53
+
sudo apt-get install cmake
54
+
sudo apt-get install libtool
55
+
sudo apt-get install git
56
+
```
50
57
51
58
### For Windows users
52
59
In order to run these scripts, you should install [msys2](http://msys2.github.io/) and update the system packages.
53
60
54
61
After that, you should also install the following dependencies:
55
62
56
63
```
57
-
pacman -S gcc
58
-
pacman -S make
59
-
pacman -S autoconf
60
-
pacman -S automake
61
-
pacman -S git
62
-
pacman -S cmake
63
-
pacman -S libtool
64
+
pacman -S mingw-w64-i686-toolchain
65
+
64
66
```
65
67
66
68
## How to use
@@ -69,9 +71,11 @@ We have one build script for each platform, they are under `build/platform{ios/m
1. Download Android NDK r10c and set the ANDROID_NDK to point to the Android ndk r10c path. Don't forget to `source ~/.bash_profile`.
124
+
125
+
2. Modify the android.ini config file. Change `cfg_default_build_api=21` and `cfg_default_gcc_version=4.9`.
126
+
127
+
3. Pass `--arch=64` to build the libraries with arm64 support.
119
128
120
-
### For Mac
121
-
xxx document will be update later.
122
129
123
-
### For Tizen
124
-
xxx document will be update later.
130
+
For other platforms and other libraries, it is more or less the same way except for some minor changes in `--arch` parameter and `-p` parameter.
125
131
126
-
### For Linux
127
-
xxx After testing these scripts on Linux, document will be update.
128
132
129
133
## How to build a DEBUG and RELEASE version
130
-
xxx we need to improve the script to add debug and release options.
134
+
You can add flag "--mode=[debug | release]" for building DEBUG and RELEASE version.
131
135
132
136
## How to do build clean?
133
137
If you use `./build.sh` to build static libraries, there is no need to do clean. After generating the static library, script will delete the intermediate files.
0 commit comments