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
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:
Running this code makes BridJ hangs on
getNativeLibrary. Do you know why this happens? Is there any easy fix or workaround?Greetings,
Alen