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 をソースからビルドするにはどうすればよいでしょうか?