Strange build error when building an sdl program for android using libSDL

43 views
Skip to first unread message

Srinivas Kaza

unread,
Jan 23, 2011, 10:36:59 AM1/23/11
to android-ndk
I got my hands on the port of SDL (https://github.com/pelya/
commandergenius) to Android not long ago. So, I tried to compile the
demo using the tips in the readme. I updated the project, deleted the
src directory, and made the symbolic link successfully. Then I tried
to compile it with the build script. It looks like it compiled the
native code, but when it tried to combine it with the java code:

BUILD FAILED

/home/srinivas/Downloads/pelya-commandergenius-9de018c/project/
build.xml:65: org.xml.sax.SAXParseException; Premature end of
file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
at
com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
471)
at
com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
518)
at com.android.ant.SetupTask.checkManifest(SetupTask.java:284)
at com.android.ant.SetupTask.execute(SetupTask.java:180)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:390)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
179)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
80)
at org.apache.tools.ant.Main.runBuild(Main.java:786)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

--------------- linked to ------------------

javax.xml.xpath.XPathExpressionException
at
com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
476)
at
com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
518)
at com.android.ant.SetupTask.checkManifest(SetupTask.java:284)
at com.android.ant.SetupTask.execute(SetupTask.java:180)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:390)
at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
179)
at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
80)
at org.apache.tools.ant.Main.runBuild(Main.java:786)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: org.xml.sax.SAXParseException; Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
at
com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
471)
... 17 more

Note that I'm using NDK r4b, because of the bug in r5. Is it because
of that?

Any help would be appreciated.

David Turner

unread,
Jan 26, 2011, 7:17:39 AM1/26/11
to andro...@googlegroups.com
build.xml:65: org.xml.sax.SAXParseException; Premature end of
file.

Means that your build.xml is incomplete or has been truncated. How did you generate this file exactly?


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Srinivas Kaza

unread,
Jan 30, 2011, 9:53:34 AM1/30/11
to android-ndk
It is identical to the usual build.xml files. Except for 3 lines. I
think I should just look for a more stable revision instead. Ndk r4b
is the one he's using.
Reply all
Reply to author
Forward
0 new messages