Skip to content

Commit 36dc1c1

Browse files
committed
added additional comments regarding logic for arm lib loading
1 parent 9888c6e commit 36dc1c1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/gab/opencv/OpenCV.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,12 @@ private void addLibraryPath(String path) throws Exception {
438438
String originalPath = System.getProperty("java.library.path");
439439

440440
// If this is an arm device running linux, Processing seems to include the linux32 dirs in the path,
441-
// which conflict with the arm-specific libs. So we remove the linux32 segments from the path:
441+
// which conflict with the arm-specific libs. To fix this, we remove the linux32 segments from the path.
442+
//
443+
// Alternatively, we could do one of the following:
444+
// A) prepend to the path instead of append, forcing our libs to be used
445+
// B) rename the libopencv_java245 in the arm7 dir and add logic to load it instead above in System.loadLibrary(...)
446+
442447
if (isArm) {
443448
if (originalPath.indexOf("linux32") != -1) {
444449
originalPath = originalPath.replaceAll(":[^:]*?linux32", "");

0 commit comments

Comments
 (0)