Skip to content

Commit 9ea975f

Browse files
committed
Load armv6hf library by default on ARM
1 parent 8ce00d5 commit 9ea975f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/gab/opencv/OpenCV.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ private void initNative(){
412412
if (PApplet.platform == PConstants.LINUX) { //platform Linux
413413
// attempt to detect arm architecture - is it fair to assume linux for ARM devices?
414414
isArm = osArch.contains("arm");
415-
path = isArm ? nativeLibPath + "arm7" : nativeLibPath + "linux" + bitsJVM;
415+
// armv6hf as found on the Raspberry Pi is the lowest architecture supported by Processing
416+
// in the future we'll have runtime-detection of armv7 systems, and use the optimized library on those
417+
path = isArm ? nativeLibPath + "linux-armv6hf" : nativeLibPath + "linux" + bitsJVM;
416418
}
417419

418420
// ensure the determined path exists

0 commit comments

Comments
 (0)