Skip to content

Commit f3522a4

Browse files
committed
show message about ia32-libs on Linux 64-bit
1 parent 85582d0 commit f3522a4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/processing/mode/android/SysImageDownloader.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ public class SysImageDownloader extends JDialog implements PropertyChangeListene
8585
"Follow <a href=\"" + KVM_LINUX_GUIDE_URL + "\">these instructions</a> " +
8686
"to configure KVM. Good luck!";
8787

88+
private static final String IA32LIBS_TITLE = "Additional setup may be required...";
89+
private static final String IA32LIBS_MESSAGE =
90+
"Looks like you are running a 64-bit version of Linux. In order<br>" +
91+
"to create the SD card in the emulator, Processing needs the<br>" +
92+
"ia32-libs compatibility package. On Ubuntu Linux, you can<br>" +
93+
"install it by runing the following command: <br><br>" +
94+
"sudo apt-get install lib32stdc++6";
95+
8896
private static final String SYS_IMAGES_ARM_URL = "https://dl.google.com/android/repository/sys-img/android/";
8997

9098
private static final String SYS_IMAGES_PHONE_URL = "https://dl.google.com/android/repository/sys-img/google_apis/";
@@ -191,6 +199,10 @@ protected Object doInBackground() throws Exception {
191199

192200
for (File f: tempFolder.listFiles()) f.delete();
193201
tempFolder.delete();
202+
203+
if (Platform.isLinux() && Platform.getVariant().equals("64")) {
204+
AndroidUtil.showMessage(IA32LIBS_TITLE, IA32LIBS_MESSAGE);
205+
}
194206

195207
result = true;
196208
} catch (ParserConfigurationException e) {

0 commit comments

Comments
 (0)