(05-15-2016 08:19 PM)[Unknown] Wrote: I'm still waiting for someone to report back on the code changes I suggested:
Possibly none will make any difference, or will just make it behave differently, but information on that would really help move this forward. It probably looks harder / more time consuming than it is from the length of the post.
From my perspective, this looks like a hardware / OS bug. Without someone testing to figure out what triggers the bug in the device, it's very hard to come up with an effective workaround. We've already tried guessing and it didn't fix it.
-[Unknown]
I'm on this right now. Currently installing everything.
EDIT: I'm getting an "'ant' is not recognized as an internal or external command, operable program or batch file.
I've installed everything, set up android studio with the standard settings, used git to get ppsspp. I'm currently stuck at "ant debug" with this error.
EDIT2: MAnaged to get ant running. Now getting this:
Code:
C:\Users\----\ppsspp\android>ant debug
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_91\lib\tools.jar
Buildfile: C:\Users\----\ppsspp\android\build.xml
BUILD FAILED
C:\Users\----\ppsspp\android\build.xml:61: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.
Total time: 0 seconds
EDIT3: Set Java to look in the right place, now getting this:
Code:
C:\Users\----\ppsspp\android>ant debug
Buildfile: C:\Users\----\ppsspp\android\build.xml
BUILD FAILED
C:\Users\----\ppsspp\android\build.xml:61: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.
Total time: 0 seconds
EDIT4: Right.. past that, now getting this:
Code:
C:\Users\----\ppsspp\android>ant debug
Buildfile: C:\Users\----\ppsspp\android\build.xml
Duplicated project name in import. Project PPSSPP defined first in C:\Users\----\ppsspp\android\build.xml and again in C:\Users\----\ppsspp\android\custom_rules.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.1.6
[checkenv] Installed at C:\Users\----\AppData\Local\Android\Sdk
-setup:
[echo] Project Name: PPSSPP
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
BUILD FAILED
C:\Users\----\ppsspp\android\custom_rules.xml:8: Execute failed: java.io.IOException: Cannot run program "${ndk.dir}\ndk-build.cmd" (in directory "C:\Users\----\ppsspp\android"): CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.IOException: CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 23 more
Total time: 0 seconds
Forgot the set the NDK, lol. It's compiling yay!
EDIT5: BUILD FAILED
C:\Users\----\ppsspp\android\custom_rules.xml:8: exec returned: 2
XML file says:
Code:
<?xml version="1.0" encoding="UTF-8"?>
-<project default="help" name="PPSSPP">
-<condition else="ndk-build" value="ndk-build.cmd" property="ndkbuild_exe">
<os family="windows"/>
</condition>
<property name="ndkbuildopt" value=""/>
-<target name="-pre-build">
-<exec failonerror="true" executable="${ndk.dir}/${ndkbuild_exe}">
<arg line="-j4 ${ndkbuildopt}"/>
<env path="../ext:../ext/native/ext" key="NDK_MODULE_PATH"/>
</exec>
</target>
-<target name="clean" depends="android_rules.clean">
-<exec failonerror="true" executable="${ndk.dir}/${ndkbuild_exe}">
<arg value="clean"/>
<env path="../ext:../ext/native/ext" key="NDK_MODULE_PATH"/>
</exec>
</target>
</project>