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

Commit 44a5801

Browse files
committed
Info about building app without android studio;
1 parent aeac14b commit 44a5801

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

building.txt

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
needed: python, android studio + ndk
1+
needed: python, ndk, android studio (actually, android studio might be optional)
22

33
* also needed: java 8 jdk (implied by android build)
44
* 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
1414
* 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
1515
* try to enter bash and check if "make" and "yasm" work (install them if not (sudo apt-get install or something like that))
1616
* 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
1818
* if it eventually finishes without errors, there should be libs in ./ext-output/(ARCH)
1919
* ffmpeg is built in all possible configurations; if you don't like that, you can comment the lines in ./ext/ff/all.sh
2020
* all other libs (iconv, SDL+addons, boost, minizip, fuzzylite) are built only in configurations declared in vcmiconf.in
@@ -25,9 +25,16 @@ else
2525
* ("build-cmake" will execute gradle-configured-cmake build for boost libs and "external" vcmi libs of fuzzylite and minizip)
2626
}
2727

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+
}
3138

3239
* 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
3340
(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)

project/vcmi-app/src/main/java/eu/vcmi/vcmi/util/GeneratedVersion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66
public class GeneratedVersion
77
{
8-
public static final String VCMI_VERSION = "0.99.0 (48702a26a474ea25798f5a99289895540861e152)";
8+
public static final String VCMI_VERSION = "0.99.0 (b7a19fdefe562a94238c3033104c4c82f81d429a)";
99
}

0 commit comments

Comments
 (0)