在Ubuntu 14.04上工作,我正在尝试编译:
https://code.google.com/p/terminal-ide/(通过https://github.com/math4youbyusgroupillinois/terminal-ide)
因为它的rsync
在Android 5+中失败,并出现"错误:只支持位置独立的可执行文件(PIE)。"
这不是一个渐变项目,所以我猜它使用了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呢?
XDA上有人静态地重新编译了终端IDE中的二进制文件,并对其进行了重新打包。这在技术上不能回答您的问题,但它仍然可以解决您的问题。你可以在这里找到它。