Skip to content

BridJ 0.7.0 hangs on getNativeLibrary, while BridJ 0.6.1 does just fine #76

Description

@astojanov

Hi Olivier,

It seems that BridJ 0.7.0 has troubles loading certain native libraries, while BridJ 0.6.1 does not. The same behaviour I observe in version 0.6.2 also. Note that this does not happen with all libraries, just with specific ones, particularly with the MATLAB libmx.dylib. For example:

libraryDependencies += "com.nativelibs4java" % "bridj" % "0.7.0"
import org.bridj.BridJ
import org.scalatest.FunSpec
import java.util.logging.Level

class TestBridJ extends FunSpec {

  val mxPath = "/Applications/MATLAB_R2014b.app/bin/maci64/libmx.dylib"

  describe("loading the library") {
    BridJ.setMinLogLevel(Level.ALL)
    println("Loading libMx: " + mxPath)
    BridJ.getNativeLibrary(mxPath)
    println("Loading libMx: Done. ")
  }

}

Running this code makes BridJ hangs on getNativeLibrary. Do you know why this happens? Is there any easy fix or workaround?

Greetings,
Alen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions