Skip to content

Commit 3e7c238

Browse files
committed
added some debugging println statements, to be removed
1 parent 35bf5bb commit 3e7c238

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/gab/opencv/OpenCV.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ private void initNative(){
386386

387387
String osArch = System.getProperty("os.arch");
388388

389+
System.out.println("os.arch = " + osArch);
390+
389391
String nativeLibPath = getLibPath();
390392

391393
String path = null;
@@ -401,9 +403,12 @@ private void initNative(){
401403
// attempt to detect arm architecture
402404
boolean isArm = false;
403405
if (osArch.contains("arm")) {
406+
System.out.println("OS Architecture contains ARM");
404407
isArm = true;
405408
}
406-
path = isArm ? nativeLibPath + "arm7" : nativeLibPath + "linux" + bitsJVM;
409+
410+
// path = isArm ? nativeLibPath + "arm7" : nativeLibPath + "linux" + bitsJVM;
411+
path = nativeLibPath + "arm7";
407412
}
408413

409414
// ensure the determined path exists
@@ -421,6 +426,7 @@ private void initNative(){
421426
// this check might be redundant?
422427
if((PApplet.platform == PConstants.MACOSX && bitsJVM == 64) || (PApplet.platform == PConstants.WINDOWS) || (PApplet.platform == PConstants.LINUX)){
423428
try {
429+
System.out.println("Adding native libarary path: " + nativeLibPath);
424430
addLibraryPath(nativeLibPath);
425431
} catch (Exception e) {
426432
e.printStackTrace();
@@ -435,6 +441,7 @@ private void initNative(){
435441

436442

437443
private void addLibraryPath(String path) throws Exception {
444+
System.out.println("Adding libarary path: " + path);
438445
String originalPath = System.getProperty("java.library.path");
439446
System.setProperty("java.library.path", originalPath +System.getProperty("path.separator")+ path);
440447

0 commit comments

Comments
 (0)