Note that there are some explanatory texts on larger screens.

plurals
  1. POcompiling android SDL from libsdl.org ant install fails with BUILD FAILED
    primarykey
    data
    text
    <p>Help! I've been trying to compile &amp; test the recent SDL (1.3) port from libsdl.org</p> <p>(found here: <a href="http://www.libsdl.org/tmp/android-project.zip" rel="nofollow">http://www.libsdl.org/tmp/android-project.zip</a>)</p> <h2>steps</h2> <p>cd android-project ndk-build ant install sh data.sh</p> <p>It wouldn't compiled using NDK-r5b, kept complaining that "SDL.h" not found ... even though the paths, etc seemed to be setup properly.</p> <p>So I installed r4b and then cd into the (fresh) android-project directory and ran ndk-build ... with no errors. (also checked to be sure it was using r4b using "which ndk-build" first)</p> <p>IT BUILDS OK ... but the "ant install" step fails.</p> <blockquote> <p>sgtwhy@sgtwhy-PC /cygdrive/t/Android/android-project $ adb devices List of devices attached emulator-5554 device</p> <p>sgtwhy@sgtwhy-PC /cygdrive/t/Android/android-project $ ant install Buildfile: T:\Android\android-project\build.xml</p> <p>BUILD FAILED T:\Android\android-project\build.xml:49: taskdef class com.android.ant.SetupTask cannot be found using the classloader AntClassLoader[]</p> <p>Total time: 0 seconds</p> </blockquote> <p>I'm using the "stock" build.xml file and verified the *.properties files appear to have correct paths as well. </p> <p>Any ideas how to get this working ? Now that its compiled - need to push it to the phone somehow.</p> <p>[EDIT / UPDATE ]</p> <p>This helped! <a href="http://arithmetic-game.googlecode.com/hg/Arithgame-android/readme.txt?r=d05a65aa7d91e482398298b8bc8871ad917c9ad1" rel="nofollow">http://arithmetic-game.googlecode.com/hg/Arithgame-android/readme.txt?r=d05a65aa7d91e482398298b8bc8871ad917c9ad1</a></p> <p>I went into the project and ran android.bat to update the properties files.</p> <p>$ cd android-project $ android.bat update project -t 3 --path .</p> <p>and then ran "ant install" - with success!</p> <blockquote> <p>sgtwhy@sgtwhy-PC /cygdrive/t/Android/android-project $ ant install Buildfile: T:\Android\android-project\build.xml [setup] Android SDK Tools Revision 10 [setup] Project Target: Android 1.6 [setup] API level: 4 [setup] [setup] ------------------ [setup] Resolving library dependencies: [setup] No library dependencies. [setup] [setup] ------------------ [setup] [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions. [setup] [setup] Importing rules file: tools\ant\main_rules.xml</p> <p>-debug-obfuscation-check:</p> <p>-set-debug-mode:</p> <p>-compile-tested-if-test:</p> <p>-pre-build:</p> <p>-dirs: [echo] Creating output directories if needed... [mkdir] Created dir: T:\Android\android-project\bin [mkdir] Created dir: T:\Android\android-project\gen [mkdir] Created dir: T:\Android\android-project\bin\classes</p> <p>-aidl: [echo] Compiling aidl files into Java classes...</p> <p>-renderscript: [echo] Compiling RenderScript files into Java classes and RenderScript byte code...</p> <p>-resource-src: [echo] Generating R.java / Manifest.java from the resources...</p> <p>-pre-compile:</p> <p>compile: [javac] T:\Android\android-sdk\tools\ant\main_rules.xml:384: warning: 'inclu deantruntime' was not set, defaulting to build.sysclasspath=last; set to false f or repeatable builds [javac] Compiling 2 source files to T:\Android\android-project\bin\classes</p> <p>-post-compile:</p> <p>-obfuscate:</p> <p>-dex: [echo] Converting compiled files and external libraries into T:\Android\and roid-project\bin\classes.dex...</p> <p>-package-resources: [echo] Packaging resources [aapt] Creating full resource package...</p> <p>-package-debug-sign: [apkbuilder] Creating SDLApp-debug-unaligned.apk and signing it with a debug key ...</p> <p>debug: [echo] Running zip align on final apk... [echo] Debug Package: T:\Android\android-project\bin\SDLApp-debug.apk</p> <p>install: [echo] Installing T:\Android\android-project\bin\SDLApp-debug.apk onto defa ult emulator or device... [exec] pkg: /data/local/tmp/SDLApp-debug.apk [exec] Success [exec] 267 KB/s (946557 bytes in 3.455s)</p> <p>BUILD SUCCESSFUL Total time: 19 seconds</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload