3
Actually , I got Dalvik working on my elementary OS installation.
实际上,我让Dalvik在我的基本操作系统安装上工作。
First download the Android AOSP source tree using https://source.android.com/source/downloading.html. Wait for it to download (2 hours for me cloning only the current commits and Marshmallow branch)
首先使用https://source.android.com/source/downloading.html下载Android AOSP源代码树。等待它下载(2小时我只克隆当前提交和Marshmallow分支)
After running build/envsetup.sh
while in the source tree run lunch full_x86-eng
. Then type make -jN
(replace N with number of cores).
在源代码树中运行build / envsetup.sh之后运行午餐full_x86-eng。然后键入make -jN(用核心数替换N)。
WAIT. This took me about 1 hour on an AMD-4500M laptop. Newer ccomputers may be as low as half and hour and older ones might take half a day.
等待。在AMD-4500M笔记本电脑上花了我大约1个小时。较新的计算机可能只有一半,小时和较旧的计算机可能需要半天。
Change directory to !!AOSP-PATH!!/out/host/linux-x86/bin/
and run export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:!!AOSP-PATH!!/out/host/linux-x86/obj/lib/
or
将目录更改为!! AOSP-PATH !! / out / host / linux-x86 / bin /并运行export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:!! AOSP-PATH !! / out / host / linux-x86 / obj / lib /或
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:!!AOSP-PATH!!/out/host/linux-x86/lib
or export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:!!AOSP-PATH!!/out/host/linux-x86/lib64
或导出LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:!! AOSP-PATH !! / out / host / linux-x86 / lib64
TRY ALL OF THESE
尝试所有这些
and then ./dalvikvm --32
. If you try to run without the --32
option it will crash (don't know why)
然后./dalvikvm --32。如果你尝试在没有--32选项的情况下运行它会崩溃(不知道为什么)
Working Marshmallow Dalvik. To get the GUI apps working you will need to do some more porting and coding which is another project which I am working on.
工作棉花糖Dalvik。为了使GUI应用程序正常工作,您需要进行更多的移植和编码,这是我正在开发的另一个项目。
Took me half a day to figure this out.
花了半天时间来弄明白这一点。
References
http://milk.com/kodebase/dalvik-docs-mirror/docs/hello-world.html