dlopen failed: could not load library 的问题

如下,如果rtspstreamer调用了ffmpeg一定要把 loadLibrary("ffmpeg")写在前面。

不然就会报 dlopen failed: could not load library libffmpeg.so的错误。


static {

try{

System.loadLibrary("ffmpeg");

System.loadLibrary("rtspstreamer");

}catch(UnsatisfiedLinkError e) {

System.out.println("Could not load rtspstreamer library!");

    System.out.println(e.getMessage()); 

}

}




你可能感兴趣的:(Andriod)