Code: Select all
--enable-opengl-shaders
It is not the default currently, but perhaps it should be for Android.
Moderator: ScummVM Team
Code: Select all
--enable-opengl-shaders
Code: Select all
/temp/residual_svn/build_android/android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld.exe: BFD (GNU Binutils) 2.21 assertion fail /usr/local/google/home/andrewhsieh/ndk-andrewhsieh/src/build/../binutils/binutils-2.21/bfd/elf32-arm.c:10180
Code: Select all
make.exe[1]: Entering directory `/tmp/residual_svn/build_android/build.tmp'
make.exe[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make
rule.
Prebuilt : libresidualvm.so <= jni/../
Install : libresidualvm.so => libs/armeabi/libresidualvm.so
make.exe[1]: Leaving directory `/tmp/residual_svn/build_android/build.tmp'
/Android/AndroidSDK/tools/android update project -p ./build.tmp -t android-15 -n
ResidualVM
make: /Android/AndroidSDK/tools/android: Command not found
make: *** [residualvm.apk] Error 127
Code: Select all
@@ -42,8 +42,8 @@
AAPT = $(ANDROID_SDK)/platform-tools/aapt
ADB = $(ANDROID_SDK)/platform-tools/adb
-DX = $(ANDROID_SDK)/platform-tools/dx
-APKBUILDER = $(ANDROID_SDK)/tools/apkbuilder
+DX = java -Xmx1024M -Xss1m -Djava.ext.dirs=$(ANDROID_SDK)/platform-tools/lib/ -jar $(ANDROID_SDK)/platform-tools/lib/dx.jar
+APKBUILDER = java -classpath $(ANDROID_SDK)/tools/lib/sdklib.jar com.android.sdklib.build.ApkBuilderMain
JAVAC ?= javac
JAVACFLAGS = -source 1.5 -target 1.5
@@ -98,15 +98,15 @@
$(PATH_CLASSES_MAIN)/%.class: $(PATH_GEN)/%.java $(SRC_GEN)
@$(MKDIR) -p $(@D)
- $(JAVAC) $(JAVACFLAGS) -cp $(PATH_SRC_TOP) -d $(PATH_BUILD_CLASSES_MAIN_TOP) -bootclasspath $(ANDROID_JAR) $<
+ $(JAVAC) $(JAVACFLAGS) -cp "$(PATH_SRC_TOP);$(PATH_BUILD_CLASSES_MAIN_TOP)" -d $(PATH_BUILD_CLASSES_MAIN_TOP) -bootclasspath $(ANDROID_JAR) -sourcepath "$(PATH_SRC_TOP);$(PATH_GEN_TOP)" $<
$(PATH_CLASSES_MAIN)/%.class: $(PATH_SRC)/%.java $(SRC_GEN)
@$(MKDIR) -p $(@D)
- $(JAVAC) $(JAVACFLAGS) -cp $(PATH_SRC_TOP):$(PATH_GEN_TOP) -d $(PATH_BUILD_CLASSES_MAIN_TOP) -bootclasspath $(ANDROID_JAR) $<
+ $(JAVAC) $(JAVACFLAGS) -cp "$(PATH_SRC_TOP);$(PATH_GEN_TOP);$(PATH_BUILD_CLASSES_MAIN_TOP)" -d $(PATH_BUILD_CLASSES_MAIN_TOP) -bootclasspath $(ANDROID_JAR) -sourcepath "$(PATH_SRC_TOP);$(PATH_GEN_TOP)" $<
$(PATH_CLASSES_PLUGIN)/%.class: $(PATH_SRC)/%.java
@$(MKDIR) -p $(@D)
- $(JAVAC) $(JAVACFLAGS) -cp $(PATH_SRC_TOP) -d $(PATH_BUILD_CLASSES_PLUGIN_TOP) -bootclasspath $(ANDROID_JAR) $<
+ $(JAVAC) $(JAVACFLAGS) -cp "$(PATH_SRC_TOP);$(PATH_BUILD_CLASSES_MAIN_TOP)" -d $(PATH_BUILD_CLASSES_PLUGIN_TOP) -bootclasspath $(ANDROID_JAR) -sourcepath "$(PATH_SRC_TOP);$(PATH_GEN_TOP)" $<
$(FILE_DEX): $(CLASSES_MAIN) $(CLASSES_GEN)
$(DX) --dex --output=$@ $(PATH_BUILD_CLASSES_MAIN_TOP)
@@ -136,7 +136,7 @@
cd $$work_dir; \
$(RM) -rf $(PATH_BUILD_ASSETS)/tmp; \
$(MKDIR) $(PATH_BUILD_ASSETS)/tmp; \
- unzip -q $$i -d $(PATH_BUILD_ASSETS)/tmp; \
+ unzip -o -q $$i -d $(PATH_BUILD_ASSETS)/tmp; \
cd $(PATH_BUILD_ASSETS)/tmp; \
zip -r ../`basename $$i` *; \
done
Hi,pokito wrote:mac_es > If you are really struggling with MSYS, why don't you try it in linux ?
I personnally use a Debian VM (with virtualbox) and it took me 2h to make my first android compilation (I had to download the android SDK and NDK, that's what took a long time).
Code: Select all
Index: dists/android/custom_rules.xml
===================================================================
--- dists/android/custom_rules.xml
+++ dists/android/custom_rules.xml
@@ -24,7 +24,7 @@
ignoreAssets="${aapt.ignore.assets}">
<res path="${out.res.absolute.dir}" />
<res path="${resource.absolute.dir}" />
- <nocompress /> <!-- forces no compression on any files in assets or res/raw -->
+ <nocompress extension='""'/> <!-- forces no compression on any files in assets or res/raw -->
</aapt>
</do-only-if-not-library>
</target>