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
{{ message }}
This repository was archived by the owner on Mar 5, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: building.txt
+12-5
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
needed: python, android studio + ndk
1
+
needed: python, ndk, android studio (actually, android studio might be optional)
2
2
3
3
* also needed: java 8 jdk (implied by android build)
4
4
* git update submodules (vcmi definitely needed, ffmpeg/x264/iconv only if you want to build them)
@@ -14,7 +14,7 @@ if you want to build SDL, ffmpeg and iconv manually
14
14
* file ./ext/SDL2/SDL2-mixer/build.mk has hardcoded path to "smpeg2-2.0.0", so if there's some newer version, you might need to change it
15
15
* try to enter bash and check if "make" and "yasm" work (install them if not (sudo apt-get install or something like that))
16
16
* make sure that bash scripts (eg. ./ext/ff/ffmpeg/configure and ./ext/ff/x264/configure) have unix newlines (lf) otherwise building ffmpeg fails with cryptic errors
17
-
* run in main folder: python build.py all
17
+
* run in main folder: python build.py fixpaths build-optional build-cmake
18
18
* if it eventually finishes without errors, there should be libs in ./ext-output/(ARCH)
19
19
* ffmpeg is built in all possible configurations; if you don't like that, you can comment the lines in ./ext/ff/all.sh
20
20
* all other libs (iconv, SDL+addons, boost, minizip, fuzzylite) are built only in configurations declared in vcmiconf.in
@@ -25,9 +25,16 @@ else
25
25
* ("build-cmake" will execute gradle-configured-cmake build for boost libs and "external" vcmi libs of fuzzylite and minizip)
26
26
}
27
27
28
-
* start android studio project (in ./project)
29
-
* make sure that current flavor (menu Build->Select build variant) is "vcmiOnlyDebug/Release" (it should be the default; other flavors can additionally build boost/fuzzylite/minizip but you already built them from the script)
30
-
* try to build/run the project
28
+
if using android studio
29
+
{
30
+
* start android studio project (in ./project)
31
+
* make sure that current flavor (menu Build->Select build variant) is "vcmiOnlyDebug/Release" (it should be the default; other flavors can additionally build boost/fuzzylite/minizip but you already built them from the script)
32
+
* try to build/run the project
33
+
}
34
+
else
35
+
{
36
+
* alternatively, instead of using android studio, you can try running in main folder (should work but not tested on clean build extensively): python build.py build-app
37
+
}
31
38
32
39
* if boost locale breaks on x64 abis (with iconv errors), you might need to remove/rename this ndk header file: ndk/sources/android/support/include/iconv.h
33
40
(looks like android built-in iconv is broken for x64, but still, this is a hack, so it may break some other things in ndk -- https://github.com/android-ndk/ndk/issues/236)
0 commit comments