Skip to content

Commit

Permalink
Load armv6hf library by default on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
gohai committed Nov 8, 2015
1 parent 8ce00d5 commit 9ea975f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gab/opencv/OpenCV.java
Expand Up @@ -412,7 +412,9 @@ private void initNative(){
if (PApplet.platform == PConstants.LINUX) { //platform Linux
// attempt to detect arm architecture - is it fair to assume linux for ARM devices?
isArm = osArch.contains("arm");
path = isArm ? nativeLibPath + "arm7" : nativeLibPath + "linux" + bitsJVM;
// armv6hf as found on the Raspberry Pi is the lowest architecture supported by Processing
// in the future we'll have runtime-detection of armv7 systems, and use the optimized library on those
path = isArm ? nativeLibPath + "linux-armv6hf" : nativeLibPath + "linux" + bitsJVM;
}

// ensure the determined path exists
Expand Down

0 comments on commit 9ea975f

Please sign in to comment.