在Ubuntu 14.04上工作,我正在尝试编译:
https://code.google.com/p/terminal-ide/(通过https://github.com/math4youbyusgroupillinois/terminal-ide)
...因为其rsync
在Android 5+中失败并且出现" 错误:仅支持位置无关的可执行文件(PIE)。"
这不是一个gradle项目,所以我猜测它使用ant
;所以我这样做:
$ JAVA_HOME=/path/to/android/jdk1.6.0_45 ant debug
Buildfile: /path/to/src/terminal-ide-git/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at /path/to/android/adt-bundle-linux-x86-20140321/sdk
-setup:
[echo] Project Name: TermIDE
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for TermIDE...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /path/to/src/terminal-ide-git/bin/rsObj
[mkdir] Created dir: /path/to/src/terminal-ide-git/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for TermIDE...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] No changed resources. R.java and Manifest.java untouched.
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 1509 source files to /path/to/src/terminal-ide-git/bin/classes
[javac] /path/to/src/terminal-ide-git/src/com/spartacusrex/spartacuside/external/apkbuilder.java:9: package com.android.sdklib.build does not exist
[javac] import com.android.sdklib.build.ApkBuilderMain;
[javac] ^
[javac] /path/to/src/terminal-ide-git/src/com/spartacusrex/spartacuside/external/apkbuilder.java:15: cannot find symbol
[javac] symbol: class ApkBuilderMain
[javac] public class apkbuilder extends ApkBuilderMain{}
[javac] ^
...但我得到package com.android.sdklib.build does not exist
。
那么我该怎么做才能从源代码构建终端IDE?