Skip to content

Commit f098cd6

Browse files
committed
Check for linux-armv6hf library directories
Runtime only for now.
1 parent fab830c commit f098cd6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/processing/app/Library.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ private Library(File folder, String groupName) {
157157
nativeLibraryFolder = hostLibrary;
158158
}
159159
// System.out.println("3 native lib folder now " + nativeLibraryFolder);
160+
161+
if (hostPlatform.equals("linux") && System.getProperty("os.arch").equals("arm")) {
162+
hostLibrary = new File(libraryFolder, "linux-armv6hf");
163+
if (hostLibrary.exists()) {
164+
nativeLibraryFolder = hostLibrary;
165+
}
166+
}
167+
160168
// save that folder for later use
161169
nativeLibraryPath = nativeLibraryFolder.getAbsolutePath();
162170

0 commit comments

Comments
 (0)