2017-07-03 120 views
1

我知道您无法在AMD上的Windows上运行x86映像。我正在尝试查看是否可以在Linux上运行它们,但正如文档所暗示的那样。我安装了Ubuntu 1704.我安装了最新的Android Studio 2.3.3。我在x86上为API 25创建了一个默认AVD。在x86上执行x86 Android AVD在Linux上的工作?

我也安装了以下软件包:

cpu-checker 
lib32ncurses5 
lib32z1 
gcc-multilib 
nvidia-current 

我有一个AMD的Phenom II 1045T:

vendor_id : AuthenticAMD 
cpu family : 16 
model  : 10 
model name : AMD Phenom(tm) II X6 1045T Processor 
stepping : 0 
microcode : 0x10000bf 
cpu MHz  : 2000.000 
cache size : 512 KB 
physical id : 0 
siblings : 6 
core id  : 5 
cpu cores : 6 
apicid  : 5 
initial apicid : 5 
fpu  : yes 
fpu_exception : yes 
cpuid level : 6 
wp  : yes 
flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter 

我SVM在我的BIOS开启过。

我核实,KVM准备:

my-linux:~$ emulator -accel-check 
accel: 
0 
KVM (version 12) is installed and usable. 
accel 

如果我尝试运行它,我看到以下内容:

my-linux:~$ emulator -avd Nexus_5X_API_25 
[140469584095040]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib 
Could not launch '../emulator/qemu/linux-x86_64/qemu-system-i386': No such file or directory 
my-linux:~$ which emulator 
/home/me/Android/Sdk/tools/emulator 

如果我不是尝试其他模拟器二进制:

my-linux:~$ /home/me/Android/Sdk/emulator/emulator -avd Nexus_5X_API_25 
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3 
Hardware-accelerated emulation may not work properly! 
emulator: ERROR: GPU emulation is disabled. 
Only screen size of 800 X 1280 or smaller is supported when GPU emulation is disabled. 
emulator: ERROR: GPU emulation is disabled: software gpu and screen too large 
warning: host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9] 
warning: host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9] 
warning: host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9] 

黑屏模拟器出现,似乎永远不会真正开始。

对于任何人,在Ubuntu 17.04下,x86或x86-64映像在AMD上以加速模式运行吗?您是否需要执行任何附加步骤或安装任何其他软件?

哦,这里是我的ENV设置:

export ANDROID_HOME=/home/me/Android/Sdk 
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools 

我身边一吨一派这个最帖子我能找到对付试图运行在Windows平台的AMD,其不支持x86模拟器而不是我想要做的。

+0

你在执行仿真赢得成功?我有一台Phenom II X3 720,我尝试使用API​​ lv 22 x86,x86_64图像和API lv 21 x86_64图像进行模拟,但没有成功。第一次失败是由于缺少SSSE3,另一次是因为缺少SSSE3,SSE4.1和SSE4.2。不幸的是我的CPU似乎只有SSE,SSE2和SSE4a。 – tomalf2

回答

相关问题